Skip to content

Commit d65b9a9

Browse files
author
Lucas Cordeiro
committed
add new test cases to goto-analyzer
Signed-off-by: Lucas Cordeiro <[email protected]>
1 parent 0f4133d commit d65b9a9

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include <assert.h>
2+
3+
int main(){
4+
int x;
5+
if (x > 0) {
6+
if (x < 20) {
7+
assert(x < -10 || x > 100);
8+
}
9+
}
10+
return 0;
11+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
intervals6.c
3+
--intervals
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^\[main.assertion.1\] file intervals6.c line 7 function main, assertion x < -10 || x > 100: UNKNOWN$
7+
--
8+
^warning: ignoring
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include <assert.h>
2+
3+
int main(){
4+
int x;
5+
if (x > 0) {
6+
if (x < 20) {
7+
assert(x < -10 && x > 100);
8+
}
9+
}
10+
return 0;
11+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
intervals7.c
3+
--intervals
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^\[main.assertion.1\] file intervals7.c line 7 function main, assertion x < -10 && x > 100: UNKNOWN$
7+
--
8+
^warning: ignoring

0 commit comments

Comments
 (0)