File tree Expand file tree Collapse file tree 4 files changed +41
-0
lines changed
Expand file tree Collapse file tree 4 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ int func (int a )
2+ {
3+ __CPROVER_precondition (a > 10 , "Argument should be larger than 10" );
4+ int rval = a - 10 ;
5+ __CPROVER_postcondition (rval > 1 , "Return value should be positive" );
6+ return rval ;
7+ }
8+
9+ int main ()
10+ {
11+ int a = 11 ;
12+ int rval = func (a );
13+ return 0 ;
14+ }
Original file line number Diff line number Diff line change 1+ CORE
2+ main.c
3+
4+ ^EXIT=10$
5+ ^SIGNAL=0$
6+ ^VERIFICATION FAILED$
7+ --
Original file line number Diff line number Diff line change 1+ void func (int a )
2+ {
3+ __CPROVER_precondition (a > 10 , "Argument should be larger than 10." );
4+ }
5+
6+ int main ()
7+ {
8+ int a = 10 ;
9+
10+ func (a );
11+
12+ return 0 ;
13+ }
Original file line number Diff line number Diff line change 1+ CORE
2+ main.c
3+
4+ ^EXIT=10$
5+ ^SIGNAL=0$
6+ ^VERIFICATION FAILED$
7+ --
You can’t perform that action at this time.
0 commit comments