Coverage Report

Created: 2026-08-14 06:04

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/asn1c/s1ap/S1AP_Pre-emptionVulnerability.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_Pre-emptionVulnerability.h"
9
10
/*
11
 * This type is implemented using NativeEnumerated,
12
 * so here we adjust the DEF accordingly.
13
 */
14
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
15
asn_per_constraints_t asn_PER_type_S1AP_Pre_emptionVulnerability_constr_1 CC_NOTUSED = {
16
  { APC_CONSTRAINED,   1,  1,  0,  1 }  /* (0..1) */,
17
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
18
  0, 0  /* No PER value map */
19
};
20
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
21
static const asn_INTEGER_enum_map_t asn_MAP_S1AP_Pre_emptionVulnerability_value2enum_1[] = {
22
  { 0,  16, "not-pre-emptable" },
23
  { 1,  12, "pre-emptable" }
24
};
25
static int asn_validate_S1AP_Pre_emptionVulnerability_1(const asn_TYPE_descriptor_t *td,
26
                       const void *sptr,
27
                       asn_app_constraint_failed_f *ctfailcb,
28
0
                       void* app_key) {
29
0
    if(! sptr) { return -1; }
30
0
    e_S1AP_Pre_emptionVulnerability value = *(e_S1AP_Pre_emptionVulnerability*)sptr;
31
0
    switch(value) {
32
0
    case S1AP_Pre_emptionVulnerability_not_pre_emptable:
33
0
    case S1AP_Pre_emptionVulnerability_pre_emptable:
34
0
        return 0;
35
0
    }
36
0
    return -1;
37
0
}
38
static const unsigned int asn_MAP_S1AP_Pre_emptionVulnerability_enum2value_1[] = {
39
  0,  /* not-pre-emptable(0) */
40
  1 /* pre-emptable(1) */
41
};
42
const asn_INTEGER_specifics_t asn_SPC_S1AP_Pre_emptionVulnerability_specs_1 = {
43
  asn_MAP_S1AP_Pre_emptionVulnerability_value2enum_1, /* "tag" => N; sorted by tag */
44
  asn_MAP_S1AP_Pre_emptionVulnerability_enum2value_1, /* N => "tag"; sorted by N */
45
  2,  /* Number of elements in the maps */
46
  0,  /* Enumeration is not extensible */
47
  1,  /* Strict enumeration */
48
  0,  /* Native long size */
49
  0
50
};
51
static const ber_tlv_tag_t asn_DEF_S1AP_Pre_emptionVulnerability_tags_1[] = {
52
  (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
53
};
54
asn_TYPE_descriptor_t asn_DEF_S1AP_Pre_emptionVulnerability = {
55
  "Pre-emptionVulnerability",
56
  "Pre-emptionVulnerability",
57
  &asn_OP_NativeEnumerated,
58
  asn_DEF_S1AP_Pre_emptionVulnerability_tags_1,
59
  sizeof(asn_DEF_S1AP_Pre_emptionVulnerability_tags_1)
60
    /sizeof(asn_DEF_S1AP_Pre_emptionVulnerability_tags_1[0]), /* 1 */
61
  asn_DEF_S1AP_Pre_emptionVulnerability_tags_1, /* Same as above */
62
  sizeof(asn_DEF_S1AP_Pre_emptionVulnerability_tags_1)
63
    /sizeof(asn_DEF_S1AP_Pre_emptionVulnerability_tags_1[0]), /* 1 */
64
  {
65
#if !defined(ASN_DISABLE_OER_SUPPORT)
66
    0,
67
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
68
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
69
    &asn_PER_type_S1AP_Pre_emptionVulnerability_constr_1,
70
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
71
#if !defined(ASN_DISABLE_JER_SUPPORT)
72
    0,
73
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
74
    asn_validate_S1AP_Pre_emptionVulnerability_1
75
  },
76
  0, 0, /* Defined elsewhere */
77
  &asn_SPC_S1AP_Pre_emptionVulnerability_specs_1  /* Additional specs */
78
};
79