Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
7d8c60d7
Commit
7d8c60d7
authored
5 years ago
by
Patrick Baudin
Browse files
Options
Downloads
Patches
Plain Diff
[wp] more tests for issue 751
parent
6a3d36ae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/wp/tests/wp_bts/oracle/issue_751.res.oracle
+307
-0
307 additions, 0 deletions
src/plugins/wp/tests/wp_bts/oracle/issue_751.res.oracle
src/plugins/wp/tests/wp_bts/oracle_qualif/issue_751.res.oracle
+41
-4
41 additions, 4 deletions
...lugins/wp/tests/wp_bts/oracle_qualif/issue_751.res.oracle
with
348 additions
and
4 deletions
src/plugins/wp/tests/wp_bts/oracle/issue_751.res.oracle
+
307
−
0
View file @
7d8c60d7
...
...
@@ -56,3 +56,310 @@ Assume {
Prove: j <= 7.
------------------------------------------------------------
------------------------------------------------------------
Function issue_751
------------------------------------------------------------
Goal Check (file tests/wp_bts/issue_751.i, line 32):
Prove: true.
------------------------------------------------------------
Goal Check (file tests/wp_bts/issue_751.i, line 33):
Prove: true.
------------------------------------------------------------
Goal Check (file tests/wp_bts/issue_751.i, line 34):
Prove: true.
------------------------------------------------------------
Goal Check (file tests/wp_bts/issue_751.i, line 35):
Prove: true.
------------------------------------------------------------
Goal Instance of 'Pre-condition 'pos_max' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 37)
:
Prove: true.
------------------------------------------------------------
Goal Instance of 'Pre-condition 'neg_max' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 37)
:
Prove: true.
------------------------------------------------------------
Goal Instance of 'Pre-condition 'pos_min' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 37)
:
Prove: true.
------------------------------------------------------------
Goal Instance of 'Pre-condition 'neg_min' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 37)
:
Prove: true.
------------------------------------------------------------
Goal Instance of 'Pre-condition 'strict_pos_max' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 37)
:
Prove: true.
------------------------------------------------------------
Goal Instance of 'Pre-condition 'strict_neg_max' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 37)
:
Prove: true.
------------------------------------------------------------
Goal Instance of 'Pre-condition 'strict_pos_min' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 37)
:
Prove: true.
------------------------------------------------------------
Goal Instance of 'Pre-condition 'strict_neg_min' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 37)
:
Prove: true.
------------------------------------------------------------
Goal Instance of 'Pre-condition 'pos_max' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 38)
:
Assume { Type: is_sint32(V). (* Goal *) When: 0 <= V. }
Prove: ((-3) <= V) <-> ((-4) <= V).
------------------------------------------------------------
Goal Instance of 'Pre-condition 'neg_max' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 38)
:
Prove: true.
------------------------------------------------------------
Goal Instance of 'Pre-condition 'pos_min' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 38)
:
Assume { Type: is_sint32(V). (* Goal *) When: 0 < V. }
Prove: (V <= (-3)) <-> (V <= (-4)).
------------------------------------------------------------
Goal Instance of 'Pre-condition 'neg_min' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 38)
:
Prove: true.
------------------------------------------------------------
Goal Instance of 'Pre-condition 'strict_pos_max' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 38)
:
Assume { Type: is_sint32(V). (* Goal *) When: 0 < V. }
Prove: ((-2) <= V) <-> ((-3) <= V).
------------------------------------------------------------
Goal Instance of 'Pre-condition 'strict_neg_max' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 38)
:
Prove: true.
------------------------------------------------------------
Goal Instance of 'Pre-condition 'strict_pos_min' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 38)
:
Assume { Type: is_sint32(V). (* Goal *) When: 0 <= V. }
Prove: (V <= (-4)) <-> (V <= (-5)).
------------------------------------------------------------
Goal Instance of 'Pre-condition 'strict_neg_min' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 38)
:
Prove: true.
------------------------------------------------------------
Goal Instance of 'Pre-condition 'pos_max' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 40)
:
Prove: true.
------------------------------------------------------------
Goal Instance of 'Pre-condition 'neg_max' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 40)
:
Assume {
Type: is_sint32(V).
(* Goal *)
When: V <= 0.
(* Call 'checks' *)
Have: (((0 <= V) -> (((-3) <= V) <-> ((-4) <= V)))) /\
(((0 <= V) -> ((V <= (-4)) <-> (V <= (-5))))).
}
Prove: (V <= 113) <-> (V <= 95).
------------------------------------------------------------
Goal Instance of 'Pre-condition 'pos_min' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 40)
:
Prove: true.
------------------------------------------------------------
Goal Instance of 'Pre-condition 'neg_min' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 40)
:
Assume {
Type: is_sint32(V).
(* Goal *)
When: V <= 0.
(* Call 'checks' *)
Have: (((0 <= V) -> (((-3) <= V) <-> ((-4) <= V)))) /\
(((0 <= V) -> ((V <= (-4)) <-> (V <= (-5))))).
}
Prove: (95 <= V) <-> (77 <= V).
------------------------------------------------------------
Goal Instance of 'Pre-condition 'strict_pos_max' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 40)
:
Prove: true.
------------------------------------------------------------
Goal Instance of 'Pre-condition 'strict_neg_max' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 40)
:
Assume {
Type: is_sint32(V).
(* Goal *)
When: V <= 0.
(* Call 'checks' *)
Have: (((0 <= V) -> (((-3) <= V) <-> ((-4) <= V)))) /\
(((0 <= V) -> ((V <= (-4)) <-> (V <= (-5))))).
}
Prove: (V <= 94) <-> (V <= 76).
------------------------------------------------------------
Goal Instance of 'Pre-condition 'strict_pos_min' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 40)
:
Prove: true.
------------------------------------------------------------
Goal Instance of 'Pre-condition 'strict_neg_min' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 40)
:
Assume {
Type: is_sint32(V).
(* Goal *)
When: V <= 0.
(* Call 'checks' *)
Have: (((0 <= V) -> (((-3) <= V) <-> ((-4) <= V)))) /\
(((0 <= V) -> ((V <= (-4)) <-> (V <= (-5))))).
}
Prove: (114 <= V) <-> (96 <= V).
------------------------------------------------------------
Goal Instance of 'Pre-condition 'pos_max' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 41)
:
Assume {
Type: is_sint32(V).
(* Goal *)
When: 0 <= V.
(* Call 'checks' *)
Have: (((-3) <= V) <-> ((-4) <= V)) /\ ((V <= (-4)) <-> (V <= (-5))) /\
(((0 < V) -> (((-2) <= V) <-> ((-3) <= V)))) /\
(((0 < V) -> ((V <= (-3)) <-> (V <= (-4))))).
(* Call 'checks' *)
Have: (((V <= 0) -> ((95 <= V) <-> (77 <= V)))) /\
(((V <= 0) -> ((114 <= V) <-> (96 <= V)))) /\
(((V <= 0) -> ((V <= 94) <-> (V <= 76)))) /\
(((V <= 0) -> ((V <= 113) <-> (V <= 95)))).
}
Prove: (V <= (-139)) <-> (V <= (-161)).
------------------------------------------------------------
Goal Instance of 'Pre-condition 'neg_max' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 41)
:
Prove: true.
------------------------------------------------------------
Goal Instance of 'Pre-condition 'pos_min' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 41)
:
Assume {
Type: is_sint32(V).
(* Goal *)
When: 0 <= V.
(* Call 'checks' *)
Have: (((-3) <= V) <-> ((-4) <= V)) /\ ((V <= (-4)) <-> (V <= (-5))) /\
(((0 < V) -> (((-2) <= V) <-> ((-3) <= V)))) /\
(((0 < V) -> ((V <= (-3)) <-> (V <= (-4))))).
(* Call 'checks' *)
Have: (((V <= 0) -> ((95 <= V) <-> (77 <= V)))) /\
(((V <= 0) -> ((114 <= V) <-> (96 <= V)))) /\
(((V <= 0) -> ((V <= 94) <-> (V <= 76)))) /\
(((V <= 0) -> ((V <= 113) <-> (V <= 95)))).
}
Prove: ((-161) <= V) <-> ((-183) <= V).
------------------------------------------------------------
Goal Instance of 'Pre-condition 'neg_min' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 41)
:
Prove: true.
------------------------------------------------------------
Goal Instance of 'Pre-condition 'strict_pos_max' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 41)
:
Assume {
Type: is_sint32(V).
(* Goal *)
When: 0 <= V.
(* Call 'checks' *)
Have: (((-3) <= V) <-> ((-4) <= V)) /\ ((V <= (-4)) <-> (V <= (-5))) /\
(((0 < V) -> (((-2) <= V) <-> ((-3) <= V)))) /\
(((0 < V) -> ((V <= (-3)) <-> (V <= (-4))))).
(* Call 'checks' *)
Have: (((V <= 0) -> ((95 <= V) <-> (77 <= V)))) /\
(((V <= 0) -> ((114 <= V) <-> (96 <= V)))) /\
(((V <= 0) -> ((V <= 94) <-> (V <= 76)))) /\
(((V <= 0) -> ((V <= 113) <-> (V <= 95)))).
}
Prove: (V <= (-162)) <-> (V <= (-184)).
------------------------------------------------------------
Goal Instance of 'Pre-condition 'strict_neg_max' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 41)
:
Prove: true.
------------------------------------------------------------
Goal Instance of 'Pre-condition 'strict_pos_min' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 41)
:
Assume {
Type: is_sint32(V).
(* Goal *)
When: 0 <= V.
(* Call 'checks' *)
Have: (((-3) <= V) <-> ((-4) <= V)) /\ ((V <= (-4)) <-> (V <= (-5))) /\
(((0 < V) -> (((-2) <= V) <-> ((-3) <= V)))) /\
(((0 < V) -> ((V <= (-3)) <-> (V <= (-4))))).
(* Call 'checks' *)
Have: (((V <= 0) -> ((95 <= V) <-> (77 <= V)))) /\
(((V <= 0) -> ((114 <= V) <-> (96 <= V)))) /\
(((V <= 0) -> ((V <= 94) <-> (V <= 76)))) /\
(((V <= 0) -> ((V <= 113) <-> (V <= 95)))).
}
Prove: ((-138) <= V) <-> ((-160) <= V).
------------------------------------------------------------
Goal Instance of 'Pre-condition 'strict_neg_min' in 'checks'' in 'issue_751' at call 'checks' (file tests/wp_bts/issue_751.i, line 41)
:
Prove: true.
------------------------------------------------------------
This diff is collapsed.
Click to expand it.
src/plugins/wp/tests/wp_bts/oracle_qualif/issue_751.res.oracle
+
41
−
4
View file @
7d8c60d7
...
...
@@ -3,15 +3,52 @@
[wp] Running WP plugin...
[wp] Loading driver 'share/wp.driver'
[wp] Warning: Missing RTE guards
[wp] 4 goals scheduled
[wp] 4
0
goals scheduled
[wp] [Alt-Ergo 2.0.0] Goal typed_acquire_loop_invariant_RANGE_preserved : Valid
[wp] [Qed] Goal typed_acquire_loop_invariant_RANGE_established : Valid
[wp] [Qed] Goal typed_acquire_loop_assigns_part1 : Valid
[wp] [Alt-Ergo 2.0.0] Goal typed_acquire_loop_assigns_part2 : Valid
[wp] Proved goals: 4 / 4
Qed: 2
Alt-Ergo 2.0.0: 2
[wp] [Qed] Goal typed_issue_751_check : Valid
[wp] [Qed] Goal typed_issue_751_check_2 : Valid
[wp] [Qed] Goal typed_issue_751_check_3 : Valid
[wp] [Qed] Goal typed_issue_751_check_4 : Valid
[wp] [Qed] Goal typed_issue_751_call_checks_requires_pos_max : Valid
[wp] [Qed] Goal typed_issue_751_call_checks_requires_neg_max : Valid
[wp] [Qed] Goal typed_issue_751_call_checks_requires_pos_min : Valid
[wp] [Qed] Goal typed_issue_751_call_checks_requires_neg_min : Valid
[wp] [Qed] Goal typed_issue_751_call_checks_requires_strict_pos_max : Valid
[wp] [Qed] Goal typed_issue_751_call_checks_requires_strict_neg_max : Valid
[wp] [Qed] Goal typed_issue_751_call_checks_requires_strict_pos_min : Valid
[wp] [Qed] Goal typed_issue_751_call_checks_requires_strict_neg_min : Valid
[wp] [Alt-Ergo 2.0.0] Goal typed_issue_751_call_checks_2_requires_pos_max : Valid
[wp] [Qed] Goal typed_issue_751_call_checks_2_requires_neg_max : Valid
[wp] [Alt-Ergo 2.0.0] Goal typed_issue_751_call_checks_2_requires_pos_min : Valid
[wp] [Qed] Goal typed_issue_751_call_checks_2_requires_neg_min : Valid
[wp] [Alt-Ergo 2.0.0] Goal typed_issue_751_call_checks_2_requires_strict_pos_max : Valid
[wp] [Qed] Goal typed_issue_751_call_checks_2_requires_strict_neg_max : Valid
[wp] [Alt-Ergo 2.0.0] Goal typed_issue_751_call_checks_2_requires_strict_pos_min : Valid
[wp] [Qed] Goal typed_issue_751_call_checks_2_requires_strict_neg_min : Valid
[wp] [Qed] Goal typed_issue_751_call_checks_3_requires_pos_max : Valid
[wp] [Alt-Ergo 2.0.0] Goal typed_issue_751_call_checks_3_requires_neg_max : Valid
[wp] [Qed] Goal typed_issue_751_call_checks_3_requires_pos_min : Valid
[wp] [Alt-Ergo 2.0.0] Goal typed_issue_751_call_checks_3_requires_neg_min : Valid
[wp] [Qed] Goal typed_issue_751_call_checks_3_requires_strict_pos_max : Valid
[wp] [Alt-Ergo 2.0.0] Goal typed_issue_751_call_checks_3_requires_strict_neg_max : Valid
[wp] [Qed] Goal typed_issue_751_call_checks_3_requires_strict_pos_min : Valid
[wp] [Alt-Ergo 2.0.0] Goal typed_issue_751_call_checks_3_requires_strict_neg_min : Valid
[wp] [Alt-Ergo 2.0.0] Goal typed_issue_751_call_checks_4_requires_pos_max : Valid
[wp] [Qed] Goal typed_issue_751_call_checks_4_requires_neg_max : Valid
[wp] [Alt-Ergo 2.0.0] Goal typed_issue_751_call_checks_4_requires_pos_min : Valid
[wp] [Qed] Goal typed_issue_751_call_checks_4_requires_neg_min : Valid
[wp] [Alt-Ergo 2.0.0] Goal typed_issue_751_call_checks_4_requires_strict_pos_max : Valid
[wp] [Qed] Goal typed_issue_751_call_checks_4_requires_strict_neg_max : Valid
[wp] [Alt-Ergo 2.0.0] Goal typed_issue_751_call_checks_4_requires_strict_pos_min : Valid
[wp] [Qed] Goal typed_issue_751_call_checks_4_requires_strict_neg_min : Valid
[wp] Proved goals: 40 / 40
Qed: 26
Alt-Ergo 2.0.0: 14
------------------------------------------------------------
Functions WP Alt-Ergo Total Success
acquire 2 2 4 100%
issue_751 24 12 36 100%
------------------------------------------------------------
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment