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
a393edfb
Commit
a393edfb
authored
5 years ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[WP] Updates a test in qualif
parent
b1c9dbc6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/wp/tests/wp_plugin/model.i
+1
-1
1 addition, 1 deletion
src/plugins/wp/tests/wp_plugin/model.i
src/plugins/wp/tests/wp_plugin/oracle_qualif/model.res.oracle
+87
-0
87 additions, 0 deletions
...plugins/wp/tests/wp_plugin/oracle_qualif/model.res.oracle
with
88 additions
and
1 deletion
src/plugins/wp/tests/wp_plugin/model.i
+
1
−
1
View file @
a393edfb
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
*/
*/
/* run.config_qualif
/* run.config_qualif
OPT: -wp-msg-key
cluster
-wp-model Typed -wp-check -then -wp -wp-model Typed+ref -wp-check
OPT: -wp-msg-key
print-generated
-wp-model Typed -wp-check -then -wp -wp-model Typed+ref -wp-check
*/
*/
//@ predicate P(integer a);
//@ predicate P(integer a);
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/tests/wp_plugin/oracle_qualif/model.res.oracle
+
87
−
0
View file @
a393edfb
...
@@ -48,6 +48,35 @@ theory Axiomatic
...
@@ -48,6 +48,35 @@ theory Axiomatic
predicate P_P int
predicate P_P int
end
end
[wp:print-generated]
theory WP
(* use why3.BuiltIn.BuiltIn *)
(* use bool.Bool *)
(* use int.Int *)
(* use int.ComputerDivision *)
(* use real.RealInfix *)
(* use frama_c_wp.qed.Qed *)
(* use map.Map *)
(* use frama_c_wp.memory.Memory *)
(* use frama_c_wp.cint.Cint *)
(* use Compound *)
(* use Axiomatic *)
goal wp_goal :
forall t:addr -> int, i:int, a:addr.
let x = get t (shift_sint32 a i) in
region (base a) <= 0 -> is_sint32 i -> is_sint32 x -> P_P x
end
[wp] [Alt-Ergo 2.0.0] Goal typed_f_ensures : Typechecked
[wp] [Alt-Ergo 2.0.0] Goal typed_f_ensures : Typechecked
[wp] Proved goals: 0 / 1
[wp] Proved goals: 0 / 1
Alt-Ergo 2.0.0: 0 (unsuccess: 1)
Alt-Ergo 2.0.0: 0 (unsuccess: 1)
...
@@ -57,6 +86,35 @@ end
...
@@ -57,6 +86,35 @@ end
------------------------------------------------------------
------------------------------------------------------------
[wp] Running WP plugin...
[wp] Running WP plugin...
[wp] 2 goals scheduled
[wp] 2 goals scheduled
[wp:print-generated]
theory WP1
(* use why3.BuiltIn.BuiltIn *)
(* use bool.Bool *)
(* use int.Int *)
(* use int.ComputerDivision *)
(* use real.RealInfix *)
(* use frama_c_wp.qed.Qed *)
(* use map.Map *)
(* use frama_c_wp.memory.Memory *)
(* use frama_c_wp.cint.Cint *)
(* use Compound *)
(* use Axiomatic *)
goal wp_goal :
forall t:addr -> int, i:int, a:addr.
let x = get t (shift_sint32 a i) in
region (base a) <= 0 -> is_sint32 i -> is_sint32 x -> P_P x
end
[wp] [Alt-Ergo 2.0.0] Goal typed_f_ensures : Typechecked
[wp] [Alt-Ergo 2.0.0] Goal typed_f_ensures : Typechecked
---------------------------------------------
---------------------------------------------
--- Context 'typed_ref_f' Cluster 'Compound'
--- Context 'typed_ref_f' Cluster 'Compound'
...
@@ -100,6 +158,35 @@ theory Axiomatic1
...
@@ -100,6 +158,35 @@ theory Axiomatic1
predicate P_P1 int
predicate P_P1 int
end
end
[wp:print-generated]
theory WP2
(* use why3.BuiltIn.BuiltIn *)
(* use bool.Bool1 *)
(* use int.Int1 *)
(* use int.ComputerDivision1 *)
(* use real.RealInfix1 *)
(* use frama_c_wp.qed.Qed1 *)
(* use map.Map1 *)
(* use frama_c_wp.memory.Memory1 *)
(* use frama_c_wp.cint.Cint1 *)
(* use Compound1 *)
(* use Axiomatic1 *)
goal wp_goal :
forall t:addr1 -> int, i:int, a:addr1.
let x = get1 t (shift_sint321 a i) in
region1 (base1 a) <=' 0 -> is_sint321 i -> is_sint321 x -> P_P1 x
end
[wp] [Alt-Ergo 2.0.0] Goal typed_ref_f_ensures : Typechecked
[wp] [Alt-Ergo 2.0.0] Goal typed_ref_f_ensures : Typechecked
[wp] Proved goals: 0 / 2
[wp] Proved goals: 0 / 2
Alt-Ergo 2.0.0: 0 (unsuccess: 2)
Alt-Ergo 2.0.0: 0 (unsuccess: 2)
...
...
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