Skip to content
Snippets Groups Projects
Commit bdd7c6a5 authored by Allan Blanchard's avatar Allan Blanchard
Browse files

[wp] Enables more tests for Chunks typing

parent dae26b84
No related branches found
No related tags found
1 merge request!3Fixed a semantic error concerning ISO C99 Uninitialized Value Undefined Behaviour in Eva main manual
/* run.config
OPT: -wp-rte -wp-prop="-NO_CHECK,-rte"
OPT: -wp-rte
*/
/* run.config_qualif
OPT: -wp-rte -wp-prop="-NO_CHECK,-rte"
OPT: -wp-rte
*/
const char x[10];
......@@ -28,7 +28,7 @@ void function(signed char i8[10],
unsigned long long int u64[10])
{
/*@
loop invariant NO_CHECK: 0 <= i <= 10;
loop invariant 0 <= i <= 10;
loop invariant \forall integer k ; 0 <= k < i ==> i8[k] == 1 ;
loop invariant \forall integer k ; 0 <= k < i ==> u8[k] == 2 ;
loop invariant \forall integer k ; 0 <= k < i ==> i16[k] == 3 ;
......@@ -37,9 +37,9 @@ void function(signed char i8[10],
loop invariant \forall integer k ; 0 <= k < i ==> u32[k] == 6 ;
loop invariant \forall integer k ; 0 <= k < i ==> i64[k] == 7 ;
loop invariant \forall integer k ; 0 <= k < i ==> u64[k] == 8 ;
loop assigns NO_CHECK: i, i8[0..9], u8[0..9], i16[0..9], u16[0..9],
i32[0..9], u32[0..9], i64[0..9], u64[0..9] ;
loop variant NO_CHECK: 10-i;
loop assigns i, i8[0..9], u8[0..9], i16[0..9], u16[0..9],
i32[0..9], u32[0..9], i64[0..9], u64[0..9] ;
loop variant 10-i;
*/
for (int i = 0; i < 10; ++i) {
i8[i] = 1;
......
......@@ -3,7 +3,7 @@
[wp] Running WP plugin...
[wp] Loading driver 'share/wp.driver'
[rte] annotating function function
[wp] 17 goals scheduled
[wp] 39 goals scheduled
[wp] [Alt-Ergo] Goal typed_function_ensures : Valid
[wp] [Alt-Ergo] Goal typed_function_loop_invariant_preserved : Valid
[wp] [Qed] Goal typed_function_loop_invariant_established : Valid
......@@ -21,12 +21,34 @@
[wp] [Qed] Goal typed_function_loop_invariant_7_established : Valid
[wp] [Alt-Ergo] Goal typed_function_loop_invariant_8_preserved : Valid
[wp] [Qed] Goal typed_function_loop_invariant_8_established : Valid
[wp] Proved goals: 17 / 17
Qed: 8
Alt-Ergo: 9
[wp] [Alt-Ergo] Goal typed_function_loop_invariant_9_preserved : Valid
[wp] [Qed] Goal typed_function_loop_invariant_9_established : Valid
[wp] [Alt-Ergo] Goal typed_function_assert_rte_mem_access : Valid
[wp] [Alt-Ergo] Goal typed_function_assert_rte_mem_access_2 : Valid
[wp] [Alt-Ergo] Goal typed_function_assert_rte_mem_access_3 : Valid
[wp] [Alt-Ergo] Goal typed_function_assert_rte_mem_access_4 : Valid
[wp] [Alt-Ergo] Goal typed_function_assert_rte_mem_access_5 : Valid
[wp] [Alt-Ergo] Goal typed_function_assert_rte_mem_access_6 : Valid
[wp] [Alt-Ergo] Goal typed_function_assert_rte_mem_access_7 : Valid
[wp] [Alt-Ergo] Goal typed_function_assert_rte_mem_access_8 : Valid
[wp] [Alt-Ergo] Goal typed_function_assert_rte_signed_overflow : Valid
[wp] [Qed] Goal typed_function_loop_assigns_part1 : Valid
[wp] [Qed] Goal typed_function_loop_assigns_part2 : Valid
[wp] [Qed] Goal typed_function_loop_assigns_part3 : Valid
[wp] [Qed] Goal typed_function_loop_assigns_part4 : Valid
[wp] [Qed] Goal typed_function_loop_assigns_part5 : Valid
[wp] [Qed] Goal typed_function_loop_assigns_part6 : Valid
[wp] [Qed] Goal typed_function_loop_assigns_part7 : Valid
[wp] [Qed] Goal typed_function_loop_assigns_part8 : Valid
[wp] [Qed] Goal typed_function_loop_assigns_part9 : Valid
[wp] [Qed] Goal typed_function_loop_variant_decrease : Valid
[wp] [Qed] Goal typed_function_loop_variant_positive : Valid
[wp] Proved goals: 39 / 39
Qed: 20
Alt-Ergo: 19
------------------------------------------------------------
Functions WP Alt-Ergo Total Success
function 8 9 17 100%
function 20 19 39 100%
------------------------------------------------------------
[wp] Warning: Memory model hypotheses for function 'function':
/*@
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment