Skip to content
Snippets Groups Projects
Commit 729d5da5 authored by Patrick Baudin's avatar Patrick Baudin
Browse files

[WP] some more tests

parent 9dd99c6d
No related branches found
No related tags found
No related merge requests found
......@@ -14,3 +14,8 @@ void job(void)
i ++;
}
}
void issue(int a) {
//@ check ko: \exists integer j; 0 < j < 0;
//@ check ko: (\forall integer j; 0 < j < 0 ==> \false) ==> (a == 0);
;
}
......@@ -3,6 +3,20 @@
[wp] Running WP plugin...
[wp] Loading driver 'share/wp.driver'
[wp] Warning: Missing RTE guards
------------------------------------------------------------
Function issue
------------------------------------------------------------
Goal Check 'ko' (file tests/wp_bts/issue_825.i, line 18):
Prove: false.
------------------------------------------------------------
Goal Check 'ko' (file tests/wp_bts/issue_825.i, line 19):
Assume { Type: is_sint32(a). }
Prove: a = 0.
------------------------------------------------------------
------------------------------------------------------------
Function job
------------------------------------------------------------
......
{ "prover": "Alt-Ergo:2.0.0", "verdict": "unknown" }
{ "prover": "Alt-Ergo:2.0.0", "verdict": "timeout", "time": 10. }
......@@ -3,17 +3,20 @@
[wp] Running WP plugin...
[wp] Loading driver 'share/wp.driver'
[wp] Warning: Missing RTE guards
[wp] 6 goals scheduled
[wp] 8 goals scheduled
[wp] [Alt-Ergo] Goal typed_issue_check_ko : Unsuccess
[wp] [Alt-Ergo] Goal typed_issue_check_ko_2 : Unsuccess
[wp] [Alt-Ergo] Goal typed_job_ensures : Unsuccess
[wp] [Qed] Goal typed_job_loop_invariant_preserved : Valid
[wp] [Qed] Goal typed_job_loop_invariant_established : Valid
[wp] [Qed] Goal typed_job_loop_assigns_part1 : Valid
[wp] [Alt-Ergo] Goal typed_job_loop_assigns_part2 : Unsuccess
[wp] [Qed] Goal typed_job_assigns : Valid
[wp] Proved goals: 4 / 6
[wp] Proved goals: 4 / 8
Qed: 4
Alt-Ergo: 0 (unsuccess: 2)
Alt-Ergo: 0 (unsuccess: 4)
------------------------------------------------------------
Functions WP Alt-Ergo Total Success
job 4 - 6 66.7%
issue - - 2 0.0%
------------------------------------------------------------
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