Skip to content

Commit cec8faa

Browse files
committed
Finished modifying the tests.
1 parent b073387 commit cec8faa

File tree

5 files changed

+23
-12
lines changed
  • regression
    • cbmc/wrap_entry_point_in_while_true_custom_entry_point
    • goto-analyzer

5 files changed

+23
-12
lines changed
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
int skipWhitespace()
1+
int g = 0;
2+
3+
int skipWhitespace(void)
24
{
3-
return 120;
5+
assert(g == 0);
6+
g = (g == 0) ? 1 : 0;
47
}
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
CORE
22
main.c
3-
--show-goto-functions --wrap-entry-point-in-while --function skipWhitespace
4-
^EXIT=0$
3+
--wrap-entry-point-in-while --unwind 100 --function skipWhitespace
4+
^EXIT=10$
55
^SIGNAL=0$
6-
^ 1: skipWhitespace\(\);$
7-
^ GOTO 1$
6+
^\[skipWhitespace.assertion.1\] assertion g == 0: FAILURE$
7+
^VERIFICATION FAILED$
8+
--
9+
^VERIFICATION SUCCESSFUL$
810
--
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
int main(int argc, char **argv)
1+
int g = 0;
2+
3+
int main(void)
24
{
3-
return 0;
5+
assert(g == 0);
6+
g = (g == 0) ? 1 : 0;
47
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
CORE
22
main.c
3-
--show-goto-functions --wrap-entry-point-in-while
3+
--wrap-entry-point-in-while --show-goto-functions
44
^EXIT=6$
55
^SIGNAL=0$
66
^ 1: IF FALSE THEN GOTO 2$
7-
^ main\(argc', argv'\);$
7+
^ main\(\);$
88
^ GOTO 1$
99
--
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
int skipWhitespace()
1+
int g = 0;
2+
3+
int skipWhitespace(void)
24
{
3-
return 120;
5+
assert(g == 0);
6+
g = (g == 0) ? 1 : 0;
47
}

0 commit comments

Comments
 (0)