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
61ca2ff3
Commit
61ca2ff3
authored
1 year ago
by
Kilyan Le Gallic
Browse files
Options
Downloads
Patches
Plain Diff
[wp] Cleaned code
parent
cf3b5135
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/wp/Why3Import.ml
+0
-43
0 additions, 43 deletions
src/plugins/wp/Why3Import.ml
with
0 additions
and
43 deletions
src/plugins/wp/Why3Import.ml
+
0
−
43
View file @
61ca2ff3
...
...
@@ -49,27 +49,6 @@ let pp_id_loc fmt (id : W.Ident.ident) =
|
Some
loc
->
W
.
Loc
.
pp_position
fmt
loc
|
None
->
L
.
debug
~
level
:
0
"No location found"
(* logic_type =
| Ctype of typ (** a C type *)
| Ltype of logic_type_info * logic_type list
(** an user-defined logic type with its parameters *)
| Lvar of string (** a type variable. *)
| Linteger (** mathematical integers, {i i.e.} Z *)
| Lreal (** mathematical reals, {i i.e.} R *)
| Larrow of logic_type list * logic_type (** (n-ary) function type *)*)
(*logic_type_info = {
mutable lt_name: string;
lt_params : string list; (** type parameters*)
mutable lt_def: logic_type_def option;
(** definition of the type. None for abstract types. *)
mutable lt_attr: attributes;
(** attributes associated to the logic type.
@since Phosphorus-20170501-beta1 *)
}*)
type
tenv
=
C
.
logic_type_info
W
.
Ty
.
Hts
.
t
type
tvars
=
C
.
logic_type
W
.
Ty
.
Mtv
.
t
...
...
@@ -104,28 +83,6 @@ and ls_of_ts (tenv : tenv) (ts : W.Ty.tysymbol): C.logic_type_info =
}
in
W
.
Ty
.
Hts
.
add
tenv
ts
lti
;
lti
let
rec
_lt_of_ts
(
ty
:
W
.
Ty
.
ty
)
=
match
ty
.
ty_node
with
|
W
.
Ty
.
Tyvar
tvs
->
(* Tvs *)
L
.
debug
~
level
:
0
"Tvsymbol %a.@"
pp_id
tvs
.
tv_name
;
L
.
debug
~
level
:
0
"Tvsymbol location %a.@"
pp_id_loc
tvs
.
tv_name
;
(* Cil_types.Linteger *)
|
W
.
Ty
.
Tyapp
(
tys
,
tyl
)
->
L
.
debug
~
level
:
0
"Tysymbol %a.@"
pp_id
tys
.
ts_name
;
L
.
debug
~
level
:
0
"Tysymbol location %a.@"
pp_id_loc
tys
.
ts_name
;
(*lti_of_ls (?)*)
List
.
iter
(
fun
ty
->
_lt_of_ts
ty
)
tyl
;
(* Cil_types.Lreal *)
and
_lti_of_ls
(
tys
:
W
.
Ty
.
tysymbol
)
:
Cil_types
.
logic_type_info
=
{
lt_name
=
tys
.
ts_name
.
id_string
;
lt_params
=
List
.
map
(
fun
(
tvs
:
W
.
Ty
.
tvsymbol
)
->
tvs
.
tv_name
.
id_string
)
tys
.
ts_args
;
lt_def
=
None
;
lt_attr
=
[]
;
}
let
import_theory
env
thname
=
let
theory_name
,
theory_path
=
extract_path
thname
in
...
...
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