Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
5861e8a0
Commit
5861e8a0
authored
Jul 31, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better constraint recognition (fix F-inv though)
parent
ed1ce785
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1623 additions
and
237 deletions
+1623
-237
tests/118-per-constraint-OK.asn1.-EFprint-constraints
tests/118-per-constraint-OK.asn1.-EFprint-constraints
+0
-0
tests/136-oer-long-OK.asn1.-Pgen-OER
tests/136-oer-long-OK.asn1.-Pgen-OER
+3
-3
tests/137-oer-string-OK.asn1.-Pgen-OER
tests/137-oer-string-OK.asn1.-Pgen-OER
+1
-1
tests/138-oer-constraints-OK.asn1
tests/138-oer-constraints-OK.asn1
+14
-4
tests/138-oer-constraints-OK.asn1.-Pgen-OER
tests/138-oer-constraints-OK.asn1.-Pgen-OER
+1604
-228
tests/50-constraint-OK.asn1.-EFprint-constraints
tests/50-constraint-OK.asn1.-EFprint-constraints
+0
-0
tests/90-cond-int-type-OK.asn1.-EFprint-constraints
tests/90-cond-int-type-OK.asn1.-EFprint-constraints
+1
-1
No files found.
tests/118-per-constraint-OK.asn1.-EFprint-constraints
View file @
5861e8a0
No preview for this file type
tests/136-oer-long-OK.asn1.-Pgen-OER
View file @
5861e8a0
...
@@ -354,7 +354,7 @@ static asn_oer_constraints_t asn_OER_memb_unsigned16stack_constr_4 GCC_NOTUSED =
...
@@ -354,7 +354,7 @@ static asn_oer_constraints_t asn_OER_memb_unsigned16stack_constr_4 GCC_NOTUSED =
{ AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 0, 255 } /* (0..255) */,
{ AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 0, 255 } /* (0..255) */,
{ 0, 0, 0 }};
{ 0, 0, 0 }};
static asn_oer_constraints_t asn_OER_memb_unsigned16stack_ext_constr_5 GCC_NOTUSED = {
static asn_oer_constraints_t asn_OER_memb_unsigned16stack_ext_constr_5 GCC_NOTUSED = {
{ AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 0,
255 } /* (0..255,...
) */,
{ AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 0,
32767 } /* (0..32767
) */,
{ 0, 0, 0 }};
{ 0, 0, 0 }};
static asn_oer_constraints_t asn_OER_memb_unsigned33_constr_6 GCC_NOTUSED = {
static asn_oer_constraints_t asn_OER_memb_unsigned33_constr_6 GCC_NOTUSED = {
{ AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 0, 5000000000 } /* (0..5000000000) */,
{ AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 0, 5000000000 } /* (0..5000000000) */,
...
@@ -372,13 +372,13 @@ static asn_oer_constraints_t asn_OER_memb_signed16stack_constr_11 GCC_NOTUSED =
...
@@ -372,13 +372,13 @@ static asn_oer_constraints_t asn_OER_memb_signed16stack_constr_11 GCC_NOTUSED =
{ AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, -128, 127 } /* (-128..127) */,
{ AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, -128, 127 } /* (-128..127) */,
{ 0, 0, 0 }};
{ 0, 0, 0 }};
static asn_oer_constraints_t asn_OER_memb_signed16stack_ext_constr_12 GCC_NOTUSED = {
static asn_oer_constraints_t asn_OER_memb_signed16stack_ext_constr_12 GCC_NOTUSED = {
{ AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, -
128, 127 } /* (-128..127,...
) */,
{ AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, -
32768, 32767 } /* (-32768..32767
) */,
{ 0, 0, 0 }};
{ 0, 0, 0 }};
static asn_oer_constraints_t asn_OER_memb_signed32_constr_13 GCC_NOTUSED = {
static asn_oer_constraints_t asn_OER_memb_signed32_constr_13 GCC_NOTUSED = {
{ AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, -2000000000, 2000000000 } /* (-2000000000..2000000000) */,
{ AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, -2000000000, 2000000000 } /* (-2000000000..2000000000) */,
{ 0, 0, 0 }};
{ 0, 0, 0 }};
static asn_oer_constraints_t asn_OER_memb_signed33ext_constr_14 GCC_NOTUSED = {
static asn_oer_constraints_t asn_OER_memb_signed33ext_constr_14 GCC_NOTUSED = {
{
AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, -4000000000, 4000000000 } /* (-4000000000..4000000000,...) */
,
{
0, 0, 0 }
,
{ 0, 0, 0 }};
{ 0, 0, 0 }};
/*** <<< STAT-DEFS [T] >>> ***/
/*** <<< STAT-DEFS [T] >>> ***/
...
...
tests/137-oer-string-OK.asn1.-Pgen-OER
View file @
5861e8a0
...
@@ -163,7 +163,7 @@ static asn_oer_constraints_t asn_OER_memb_con_ia5_constr_7 GCC_NOTUSED = {
...
@@ -163,7 +163,7 @@ static asn_oer_constraints_t asn_OER_memb_con_ia5_constr_7 GCC_NOTUSED = {
{ AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 2, 2 } /* (SIZE(2..2)) */};
{ AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 2, 2 } /* (SIZE(2..2)) */};
static asn_oer_constraints_t asn_OER_memb_con_utf8_constr_8 GCC_NOTUSED = {
static asn_oer_constraints_t asn_OER_memb_con_utf8_constr_8 GCC_NOTUSED = {
{ 0, 0, 0 },
{ 0, 0, 0 },
{ 0, 0, 0 } /* (SIZE(
2..2
)) */};
{ 0, 0, 0 } /* (SIZE(
0..MAX
)) */};
static asn_oer_constraints_t asn_OER_memb_con_universal_constr_9 GCC_NOTUSED = {
static asn_oer_constraints_t asn_OER_memb_con_universal_constr_9 GCC_NOTUSED = {
{ 0, 0, 0 },
{ 0, 0, 0 },
{ AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 2, 2 } /* (SIZE(2..2)) */};
{ AOC_HAS_LOWER_BOUND | AOC_HAS_UPPER_BOUND, 2, 2 } /* (SIZE(2..2)) */};
...
...
tests/138-oer-constraints-OK.asn1
View file @
5861e8a0
...
@@ -12,11 +12,21 @@ ModuleOERConstraints
...
@@ -12,11 +12,21 @@ ModuleOERConstraints
BEGIN
BEGIN
A-noc ::= INTEGER -- No constraints
A-noc ::= INTEGER -- No constraints
B-
vis
::= INTEGER (0) -- Value constraint
B-
0-0
::= INTEGER (0) -- Value constraint
C-
vis ::= INTEGER (-1..1)
-- Value range constraint
C-
1-2 ::= INTEGER (1..2)
-- Value range constraint
D-inv ::= INTEGER (0..10,...) -- Extensible, not OER-visible
D-inv ::= INTEGER (0..10,...) -- Extensible, not OER-visible
E-
vis
::= INTEGER (0..10,...)(2..5) -- OER-visible constraint 2..5
E-
2-5
::= INTEGER (0..10,...)(2..5) -- OER-visible constraint 2..5
F-inv ::= INTEGER (0..10,...)(2..5,...) -- Not OER-visible
F-inv ::= INTEGER (0..10,...)(2..5,...) -- Not OER-visible
G-vis ::= INTEGER (0..10,...)(2..5,...)(3) -- OER-visible constraint 3
G-3-3 ::= INTEGER (0..10,...)(2..5,...)(3) -- OER-visible constraint 3
-- X.696 #8.2.4 Not OER-visible parts of INTERSECTION are ignored
H-4-5 ::= INTEGER ((0..5) ^ (4..9)) -- OER-visible constraint 4..5
I-0-5 ::= INTEGER ((0..5) ^ (4..12,...)) -- OER-visible constraint 0..5
J-4-9 ::= INTEGER ((0..5,...) ^ (4..9)) -- OER-visible constraint 4..9
K-inv ::= INTEGER ((0..5,...) ^ (4..9,...)) -- Not OER-visible
-- X.696 #8.2.5 UNION with exeptions are ignored
L-0-5 ::= INTEGER ((0) | (5)) -- OER-visible constraint 0..5
M-inv ::= INTEGER ((0) | (5,...)) -- Not OER-visible
N-inv ::= INTEGER ((0..4,...) | (5)) -- Not OER-visible
O-inv ::= INTEGER ((0..4,...) | (5,...)) -- Not OER-visible
END
END
tests/138-oer-constraints-OK.asn1.-Pgen-OER
View file @
5861e8a0
This diff is collapsed.
Click to expand it.
tests/50-constraint-OK.asn1.-EFprint-constraints
View file @
5861e8a0
No preview for this file type
tests/90-cond-int-type-OK.asn1.-EFprint-constraints
View file @
5861e8a0
...
@@ -89,7 +89,7 @@ OK-IntegerInRange4 ::= INTEGER (-2147483648 | 2147483647)
...
@@ -89,7 +89,7 @@ OK-IntegerInRange4 ::= INTEGER (-2147483648 | 2147483647)
OK-IntegerInRange5 ::= INTEGER (-2147483648 | 2147483647,...)
OK-IntegerInRange5 ::= INTEGER (-2147483648 | 2147483647,...)
-- Combined constraints: (-2147483648 | 2147483647,...)
-- Combined constraints: (-2147483648 | 2147483647,...)
-- Practical constraints (OK-IntegerInRange5): (-2147483648 | 2147483647,...)
-- Practical constraints (OK-IntegerInRange5): (-2147483648 | 2147483647,...)
-- OER-visible constraints (OK-IntegerInRange5): (
-2147483648 | 2147483647,...
)
-- OER-visible constraints (OK-IntegerInRange5): (
MIN..MAX
)
-- PER-visible constraints (OK-IntegerInRange5): (-2147483648 | 2147483647,...)
-- PER-visible constraints (OK-IntegerInRange5): (-2147483648 | 2147483647,...)
NO-IntegerInRange6 ::= INTEGER (0..4294967295)
NO-IntegerInRange6 ::= INTEGER (0..4294967295)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment