Skip to content

Commit 6d9385c

Browse files
Natasha Yogananda Jeppudanielsn
Natasha Yogananda Jeppu
authored andcommitted
Regression test for --show-array-constraints --json-ui
1 parent bdca10c commit 6d9385c

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#include<stdlib.h>
2+
int main()
3+
{
4+
size_t array_size;
5+
int a[array_size];
6+
7+
unsigned int index;
8+
a[index] = 1;
9+
10+
assert(a[index] == 1);
11+
return 0;
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CORE
2+
main.c
3+
--show-array-constraints --json-ui
4+
activate-multi-line-match
5+
^EXIT=0$
6+
^SIGNAL=0$
7+
\{\n\s*"arrayConstraints": \{\n\s*"arrayEquality": \[.*\],\n\s*"arrayWith": \[.*\]\n\s*\},\n\s*"numOfConstraints": 4\n\s*\}
8+
--
9+
--
10+
To test output for --show-array-constraints option that displays the count and list of all array constraints added during post processing in json format.

0 commit comments

Comments
 (0)