File tree 5 files changed +7
-4
lines changed
5 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 3
3
--cover branch --unwind 6
4
4
^EXIT=0$
5
5
^SIGNAL=0$
6
- ^\*\* .* of .* covered \(100.0% \)$
6
+ ^\*\* .* of .* covered \(.* \)$
7
7
--
8
8
^warning: ignoring
9
+ ^\[main.coverage.*\] file main.c line .* function main block .* branch .*: FAILED$
Original file line number Diff line number Diff line change 3
3
--cover location --unwind 1
4
4
^EXIT=0$
5
5
^SIGNAL=0$
6
- ^\*\* 4 of 7 covered
6
+ ^\*\* 5 of 8 covered
7
7
--
8
8
^warning: ignoring
9
9
^\[.*<builtin-library-
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ int main()
5
5
const char * s = "test" ;
6
6
int ret = puts (s ); //return value is nondet (internal to built-in, thus non-controllable)
7
7
8
+ __CPROVER_input ("return value puts" , ret );
9
+
8
10
if (ret < 0 )
9
11
{
10
12
return 1 ;
Original file line number Diff line number Diff line change 3
3
--cover location --unwind 10
4
4
^EXIT=0$
5
5
^SIGNAL=0$
6
- ^\*\* 4 of 4 covered
6
+ ^\*\* 5 of .* covered
7
7
--
8
8
^warning: ignoring
9
9
^\[.*<builtin-library-
Original file line number Diff line number Diff line change 3
3
--cover branch
4
4
^EXIT=0$
5
5
^SIGNAL=0$
6
- ^\[main.coverage.1\] file main.c line 13 function main entry point: SATISFIED$
6
+ ^\[main.coverage.1\] file main.c line 15 function main entry point: SATISFIED$
7
7
^\[my_func.coverage.1\] file main.c line 5 function my_func entry point: SATISFIED$
8
8
^\[my_func.coverage.2\] file main.c line 5 function my_func block 1 branch false: SATISFIED$
9
9
^\[my_func.coverage.3\] file main.c line 5 function my_func block 1 branch true: SATISFIED$
You can’t perform that action at this time.
0 commit comments