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
379e0af8
Commit
379e0af8
authored
4 years ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[wp] introduce weak int model for lemmas
parent
bffdb276
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/plugins/wp/LogicCompiler.ml
+3
-1
3 additions, 1 deletion
src/plugins/wp/LogicCompiler.ml
src/plugins/wp/wp_parameters.ml
+8
-0
8 additions, 0 deletions
src/plugins/wp/wp_parameters.ml
src/plugins/wp/wp_parameters.mli
+1
-0
1 addition, 0 deletions
src/plugins/wp/wp_parameters.mli
with
12 additions
and
1 deletion
src/plugins/wp/LogicCompiler.ml
+
3
−
1
View file @
379e0af8
...
...
@@ -496,6 +496,8 @@ struct
let
xs
,
tgs
,
domain
,
prop
,_
=
let
cc_pred
=
pred
`Positive
in
compile_step
name
types
qs
labels
cc_pred
in_pred
prop
in
let
weak
=
Wp_parameters
.
WeakIntModel
.
get
()
in
let
lemma
=
if
weak
then
prop
else
F
.
p_hyps
domain
prop
in
{
l_name
=
name
;
l_types
=
List
.
length
types
;
...
...
@@ -503,7 +505,7 @@ struct
l_triggers
=
[
tgs
]
;
l_forall
=
xs
;
l_cluster
=
cluster
;
l_lemma
=
F
.
p_hyps
domain
prop
;
l_lemma
=
lemma
;
}
(* -------------------------------------------------------------------------- *)
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/wp_parameters.ml
+
8
−
0
View file @
379e0af8
...
...
@@ -248,6 +248,14 @@ module Overflows =
(incompatible with RTE generator plug-in)"
end
)
let
()
=
Parameter_customize
.
set_group
wp_model
module
WeakIntModel
=
False
(
struct
let
option_name
=
"-wp-weak-int-model"
let
help
=
"Suppress integral type side conditions within lemmas
\n
\
(possibly unsound)"
end
)
let
()
=
Parameter_customize
.
set_group
wp_model
module
Literals
=
False
(
struct
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/wp_parameters.mli
+
1
−
0
View file @
379e0af8
...
...
@@ -61,6 +61,7 @@ module InCtxt : Parameter_sig.String_set
module
ExternArrays
:
Parameter_sig
.
Bool
module
Literals
:
Parameter_sig
.
Bool
module
Volatile
:
Parameter_sig
.
Bool
module
WeakIntModel
:
Parameter_sig
.
Bool
module
Region
:
Parameter_sig
.
Bool
module
Region_rw
:
Parameter_sig
.
Bool
...
...
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