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
45c4a1f9
Commit
45c4a1f9
authored
9 months ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[wp] cleanup vset.mlw
parent
3855869e
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/Vset.ml
+1
-1
1 addition, 1 deletion
src/plugins/wp/Vset.ml
src/plugins/wp/share/why3/frama_c_wp/vset.mlw
+7
-12
7 additions, 12 deletions
src/plugins/wp/share/why3/frama_c_wp/vset.mlw
with
8 additions
and
13 deletions
src/plugins/wp/Vset.ml
+
1
−
1
View file @
45c4a1f9
...
...
@@ -110,7 +110,7 @@ let typecheck_singleton (params:tau option list) : tau =
let
typecheck_range
(
_
:
tau
option
list
)
:
tau
=
tau_of_set
Logic
.
Int
let
p_member
=
Lang
.
extern_p
~
library
~
bool
:
"memb
er_bool
"
~
prop
:
"mem"
()
let
p_member
=
Lang
.
extern_p
~
library
~
bool
:
"memb"
~
prop
:
"mem"
()
let
f_empty
=
Lang
.
extern_f
~
library
"empty"
let
f_union
=
Lang
.
extern_f
~
library
~
typecheck
:
typecheck_binop
"union"
let
f_inter
=
Lang
.
extern_f
~
library
~
typecheck
:
typecheck_binop
"inter"
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/share/why3/frama_c_wp/vset.mlw
+
7
−
12
View file @
45c4a1f9
...
...
@@ -21,32 +21,27 @@
(**************************************************************************)
(* -------------------------------------------------------------------------- *)
(* ---
Sets for Why-3
--- *)
(* ---
Additional Sets Symbols for WP
--- *)
(* -------------------------------------------------------------------------- *)
theory Vset
use bool.Bool
use int.Int
use map.
Map
use map.
Const
use export set.Set
(* -------------------------------------------------------------------------- *)
(* --- Classical Sets for Alt-Ergo --- *)
(* -------------------------------------------------------------------------- *)
function member_bool (x:'a) (s:set 'a) : bool = s x
function memb (x:'a) (s:set 'a) : bool = s x
let function range (inf sup:int) : set int (* [a..b] *) =
fun elt ->
if
inf <= elt <= sup
then true else false
fun elt -> inf <= elt <= sup
function range_sup (sup:int) : set int (* [a..] *) =
fun elt ->
if
elt <= sup
then true else false
fun elt -> elt <= sup
function range_inf (inf:int) : set int (* [..b] *) =
fun elt ->
if
inf <= elt
then true else false
fun elt -> inf <= elt
function range_all : set int (* [..] *) =
fun _ ->
true
function range_all : set int (* [..] *) =
const
true
(* -------------------------------------------------------------------------- *)
...
...
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