Skip to content

Commit cd6db0d

Browse files
author
kroening
committed
assumptions are not retro-active
git-svn-id: svn+ssh://svn.cprover.org/srv/svn/cbmc/trunk@4140 6afb6bc1-c8e4-404c-8f48-9ae832c5b171
1 parent 4f55b50 commit cd6db0d

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

regression/cbmc/Assumption1/main.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
int main()
2+
{
3+
int x;
4+
5+
__CPROVER_assume(x>=0);
6+
assert(x!=-1);
7+
8+
// assumptions are not retro-active
9+
assert(x==1); // fails
10+
__CPROVER_assume(x==1);
11+
assert(x==1); // passes
12+
}
13+

regression/cbmc/Assumption1/test.desc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
main.c
3+
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
^VERIFICATION FAILED$
7+
--

0 commit comments

Comments
 (0)