Coverage Report

Created: 2026-06-30 06:14

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/asn1c/s1ap/S1AP_RecommendedCellItem.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 "S1AP-IEs"
4
 *  found in "../support/s1ap-r19.1.0/36413-j10.asn"
5
 *  `asn1c -pdu=all -fprefix=S1AP_ -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 "S1AP_RecommendedCellItem.h"
9
10
#include "S1AP_EUTRAN-CGI.h"
11
#include "S1AP_ProtocolExtensionContainer.h"
12
static int
13
memb_S1AP_timeStayedInCell_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
14
0
      asn_app_constraint_failed_f *ctfailcb, void *app_key) {
15
0
  long value;
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
  value = *(const long *)sptr;
25
  
26
0
  if((value >= 0L && value <= 4095L)) {
27
    /* Constraint check succeeded */
28
0
    return 0;
29
0
  } else {
30
0
    ASN__CTFAIL(app_key, td, sptr,
31
0
      "%s: constraint failed (%s:%d)",
32
0
      td->name, __FILE__, __LINE__);
33
0
    return -1;
34
0
  }
35
0
}
36
37
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
38
static asn_per_constraints_t asn_PER_memb_S1AP_timeStayedInCell_constr_3 CC_NOTUSED = {
39
  { APC_CONSTRAINED,   12,  12,  0,  4095 } /* (0..4095) */,
40
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
41
  0, 0  /* No PER value map */
42
};
43
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
44
asn_TYPE_member_t asn_MBR_S1AP_RecommendedCellItem_1[] = {
45
  { ATF_POINTER, 0, offsetof(struct S1AP_RecommendedCellItem, eUTRAN_CGI),
46
    (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
47
    -1, /* IMPLICIT tag at current level */
48
    &asn_DEF_S1AP_EUTRAN_CGI,
49
    0,
50
    {
51
#if !defined(ASN_DISABLE_OER_SUPPORT)
52
      0,
53
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
54
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
55
      0,
56
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
57
#if !defined(ASN_DISABLE_JER_SUPPORT)
58
      0,
59
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
60
      0
61
    },
62
    0, 0, /* No default value */
63
    "eUTRAN-CGI"
64
    },
65
  { ATF_POINTER, 2, offsetof(struct S1AP_RecommendedCellItem, timeStayedInCell),
66
    (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
67
    -1, /* IMPLICIT tag at current level */
68
    &asn_DEF_NativeInteger,
69
    0,
70
    {
71
#if !defined(ASN_DISABLE_OER_SUPPORT)
72
      0,
73
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
74
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
75
      &asn_PER_memb_S1AP_timeStayedInCell_constr_3,
76
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
77
#if !defined(ASN_DISABLE_JER_SUPPORT)
78
      0,
79
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
80
      memb_S1AP_timeStayedInCell_constraint_1
81
    },
82
    0, 0, /* No default value */
83
    "timeStayedInCell"
84
    },
85
  { ATF_POINTER, 1, offsetof(struct S1AP_RecommendedCellItem, iE_Extensions),
86
    (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
87
    -1, /* IMPLICIT tag at current level */
88
    &asn_DEF_S1AP_ProtocolExtensionContainer_8386P117,
89
    0,
90
    {
91
#if !defined(ASN_DISABLE_OER_SUPPORT)
92
      0,
93
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
94
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
95
      0,
96
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
97
#if !defined(ASN_DISABLE_JER_SUPPORT)
98
      0,
99
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
100
      0
101
    },
102
    0, 0, /* No default value */
103
    "iE-Extensions"
104
    },
105
};
106
static const int asn_MAP_S1AP_RecommendedCellItem_oms_1[] = { 1, 2 };
107
static const ber_tlv_tag_t asn_DEF_S1AP_RecommendedCellItem_tags_1[] = {
108
  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
109
};
110
static const asn_TYPE_tag2member_t asn_MAP_S1AP_RecommendedCellItem_tag2el_1[] = {
111
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* eUTRAN-CGI */
112
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* timeStayedInCell */
113
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
114
};
115
asn_SEQUENCE_specifics_t asn_SPC_S1AP_RecommendedCellItem_specs_1 = {
116
  sizeof(struct S1AP_RecommendedCellItem),
117
  offsetof(struct S1AP_RecommendedCellItem, _asn_ctx),
118
  asn_MAP_S1AP_RecommendedCellItem_tag2el_1,
119
  3,  /* Count of tags in the map */
120
  asn_MAP_S1AP_RecommendedCellItem_oms_1, /* Optional members */
121
  2, 0, /* Root/Additions */
122
  3,  /* First extension addition */
123
};
124
asn_TYPE_descriptor_t asn_DEF_S1AP_RecommendedCellItem = {
125
  "RecommendedCellItem",
126
  "RecommendedCellItem",
127
  &asn_OP_SEQUENCE,
128
  asn_DEF_S1AP_RecommendedCellItem_tags_1,
129
  sizeof(asn_DEF_S1AP_RecommendedCellItem_tags_1)
130
    /sizeof(asn_DEF_S1AP_RecommendedCellItem_tags_1[0]), /* 1 */
131
  asn_DEF_S1AP_RecommendedCellItem_tags_1,  /* Same as above */
132
  sizeof(asn_DEF_S1AP_RecommendedCellItem_tags_1)
133
    /sizeof(asn_DEF_S1AP_RecommendedCellItem_tags_1[0]), /* 1 */
134
  {
135
#if !defined(ASN_DISABLE_OER_SUPPORT)
136
    0,
137
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
138
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
139
    0,
140
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
141
#if !defined(ASN_DISABLE_JER_SUPPORT)
142
    0,
143
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
144
    SEQUENCE_constraint
145
  },
146
  asn_MBR_S1AP_RecommendedCellItem_1,
147
  3,  /* Elements count */
148
  &asn_SPC_S1AP_RecommendedCellItem_specs_1 /* Additional specs */
149
};
150