Coverage Report

Created: 2026-08-14 06:04

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/asn1c/ngap/NGAP_UEIdentityIndexValue.c
Line
Count
Source
1
/*
2
 * Generated by asn1c-v1.4-43-gb7926896-2026-05-03 (https://github.com/mouse07410/asn1c)
3
 * From ASN.1 module "NGAP-IEs"
4
 *  found in "../support/ngap-r19.2.0/38413-j20.asn"
5
 *  `asn1c -pdu=all -fprefix=NGAP_ -fcompound-names -findirect-choice -fno-include-deps -no-gen-BER -no-gen-XER -no-gen-JER -no-gen-CBOR -no-gen-OER -no-gen-UPER`
6
 */
7
8
#include "NGAP_UEIdentityIndexValue.h"
9
10
#include "NGAP_ProtocolIE-SingleContainer.h"
11
static int
12
memb_NGAP_indexLength10_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
13
0
      asn_app_constraint_failed_f *ctfailcb, void *app_key) {
14
0
  const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
15
0
  size_t size;
16
  
17
0
  if(!sptr) {
18
0
    ASN__CTFAIL(app_key, td, sptr,
19
0
      "%s: value not given (%s:%d)",
20
0
      td->name, __FILE__, __LINE__);
21
0
    return -1;
22
0
  }
23
  
24
0
  if(st->size > 0) {
25
    /* Size in bits */
26
0
    size = 8 * st->size - (st->bits_unused & 0x07);
27
0
  } else {
28
0
    size = 0;
29
0
  }
30
  
31
0
  if((size == 10UL)) {
32
    /* Constraint check succeeded */
33
0
    return 0;
34
0
  } else {
35
0
    ASN__CTFAIL(app_key, td, sptr,
36
0
      "%s: constraint failed (%s:%d)",
37
0
      td->name, __FILE__, __LINE__);
38
0
    return -1;
39
0
  }
40
0
}
41
42
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
43
static asn_per_constraints_t asn_PER_memb_NGAP_indexLength10_constr_2 CC_NOTUSED = {
44
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
45
  { APC_CONSTRAINED,   0,  0,  10,  10 }  /* (SIZE(10..10)) */,
46
  0, 0  /* No PER value map */
47
};
48
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
49
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
50
asn_per_constraints_t asn_PER_type_NGAP_UEIdentityIndexValue_constr_1 CC_NOTUSED = {
51
  { APC_CONSTRAINED,   1,  1,  0,  1 }  /* (0..1) */,
52
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
53
  0, 0  /* No PER value map */
54
};
55
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
56
asn_TYPE_member_t asn_MBR_NGAP_UEIdentityIndexValue_1[] = {
57
  { ATF_NOFLAGS, 0, offsetof(struct NGAP_UEIdentityIndexValue, choice.indexLength10),
58
    (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
59
    -1, /* IMPLICIT tag at current level */
60
    &asn_DEF_BIT_STRING,
61
    0,
62
    {
63
#if !defined(ASN_DISABLE_OER_SUPPORT)
64
      0,
65
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
66
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
67
      &asn_PER_memb_NGAP_indexLength10_constr_2,
68
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
69
#if !defined(ASN_DISABLE_JER_SUPPORT)
70
      0,
71
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
72
      memb_NGAP_indexLength10_constraint_1
73
    },
74
    0, 0, /* No default value */
75
    "indexLength10"
76
    },
77
  { ATF_POINTER, 0, offsetof(struct NGAP_UEIdentityIndexValue, choice.choice_Extensions),
78
    (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
79
    -1, /* IMPLICIT tag at current level */
80
    &asn_DEF_NGAP_ProtocolIE_SingleContainer_14665P68,
81
    0,
82
    {
83
#if !defined(ASN_DISABLE_OER_SUPPORT)
84
      0,
85
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
86
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
87
      0,
88
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
89
#if !defined(ASN_DISABLE_JER_SUPPORT)
90
      0,
91
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
92
      0
93
    },
94
    0, 0, /* No default value */
95
    "choice-Extensions"
96
    },
97
};
98
static const asn_TYPE_tag2member_t asn_MAP_NGAP_UEIdentityIndexValue_tag2el_1[] = {
99
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* indexLength10 */
100
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* choice-Extensions */
101
};
102
asn_CHOICE_specifics_t asn_SPC_NGAP_UEIdentityIndexValue_specs_1 = {
103
  sizeof(struct NGAP_UEIdentityIndexValue),
104
  offsetof(struct NGAP_UEIdentityIndexValue, _asn_ctx),
105
  offsetof(struct NGAP_UEIdentityIndexValue, present),
106
  sizeof(((struct NGAP_UEIdentityIndexValue *)0)->present),
107
  asn_MAP_NGAP_UEIdentityIndexValue_tag2el_1,
108
  2,  /* Count of tags in the map */
109
  0, 0,
110
  -1  /* Extensions start */
111
};
112
asn_TYPE_descriptor_t asn_DEF_NGAP_UEIdentityIndexValue = {
113
  "UEIdentityIndexValue",
114
  "UEIdentityIndexValue",
115
  &asn_OP_CHOICE,
116
  0,  /* No effective tags (pointer) */
117
  0,  /* No effective tags (count) */
118
  0,  /* No tags (pointer) */
119
  0,  /* No tags (count) */
120
  {
121
#if !defined(ASN_DISABLE_OER_SUPPORT)
122
    0,
123
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
124
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
125
    &asn_PER_type_NGAP_UEIdentityIndexValue_constr_1,
126
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
127
#if !defined(ASN_DISABLE_JER_SUPPORT)
128
    0,
129
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
130
    CHOICE_constraint
131
  },
132
  asn_MBR_NGAP_UEIdentityIndexValue_1,
133
  2,  /* Elements count */
134
  &asn_SPC_NGAP_UEIdentityIndexValue_specs_1  /* Additional specs */
135
};
136