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
6d123755
Commit
6d123755
authored
10 months ago
by
Kilyan Le Gallic
Committed by
Loïc Correnson
8 months ago
Browse files
Options
Downloads
Patches
Plain Diff
[wp] Added why3module definition for module-scoped envs
parent
54a7dd39
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/wp/Why3Import.ml
+7
-11
7 additions, 11 deletions
src/plugins/wp/Why3Import.ml
with
7 additions
and
11 deletions
src/plugins/wp/Why3Import.ml
+
7
−
11
View file @
6d123755
...
...
@@ -105,13 +105,19 @@ let pp_lvs fmt (lvs : C.logic_var list) =
type
tvars
=
C
.
logic_type
W
.
Ty
.
Mtv
.
t
type
why3module
=
{
paths
:
string
list
;
types
:
C
.
logic_type_info
list
;
logics
:
C
.
logic_info
list
;
}
type
env
=
{
wenv
:
W
.
Env
.
env
;
tenv
:
C
.
logic_type_info
W
.
Ty
.
Hts
.
t
;
lenv
:
C
.
logic_info
W
.
Term
.
Hls
.
t
;
lils
:
W
.
Term
.
lsymbol
Logic_info
.
Hashtbl
.
t
;
ltits
:
W
.
Ty
.
tysymbol
Logic_type_info
.
Hashtbl
.
t
;
_menv
:
(
list
C
.
global_annotation
)
Datatype
.
String
.
Hashtbl
.
t
_menv
:
why3module
Datatype
.
String
.
Hashtbl
.
t
}
...
...
@@ -178,16 +184,6 @@ and lti_of_ts (env : env) (ts : W.Ty.tysymbol) : C.logic_type_info =
}
in
W
.
Ty
.
Hts
.
add
env
.
tenv
ts
lti
;
Logic_type_info
.
Hashtbl
.
add
env
.
ltits
lti
ts
;
let
_gtype
:
C
.
typeinfo
=
C
.{
torig_name
=
ts
.
ts_name
.
id_string
;
}
(* Datatype.String.Hashtbl.add env._menv (construct_acsl_name ts.ts_name)
C.GType (
C.{
torig_name = ts.ts_name.id_string;
tname = ts.ts_name.id_string;
}
); *)
lti
...
...
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