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
c54017e6
Commit
c54017e6
authored
1 year ago
by
Kilyan Le Gallic
Browse files
Options
Downloads
Patches
Plain Diff
[wp] Clarified vars and functions name
parent
c99f4348
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
+20
-20
20 additions, 20 deletions
src/plugins/wp/Why3Import.ml
with
20 additions
and
20 deletions
src/plugins/wp/Why3Import.ml
+
20
−
20
View file @
c54017e6
...
...
@@ -48,15 +48,15 @@ let get_name_from_ident (ident) =
W
.
Ident
.
id_unique
(
ident_printer
)
ident
let
open_theor
y
(
env
)
(
theories
)
=
let
open_theor
ies_of_user
(
env
)
(
theories
)
=
List
.
iter
(
fun
(
th
y_n
,
thy_p
)
->
(
fun
(
th
eory_name
,
theory_path
)
->
try
let
theory
=
(
W
.
Env
.
read_theory
env
(
th
y_p
)
(
thy_n
))
in
let
theory
=
(
W
.
Env
.
read_theory
env
(
th
eory_path
)
(
theory_name
))
in
List
.
iter
(
fun
(
tdecl
:
T
.
tdecl
)
->
match
tdecl
.
td_node
with
|
Decl
d
->
(
match
(
d
.
d_node
:
W
.
Decl
.
decl_node
)
with
|
Decl
d
ecl
->
(
match
(
d
ecl
.
d_node
:
W
.
Decl
.
decl_node
)
with
|
Dtype
dtype
->
L
.
debug
~
level
:
0
"Decl and type, named : %s.@"
(
get_name_from_ident
dtype
.
ts_name
);
|
Ddata
_
->
L
.
debug
~
level
:
0
"Decl and ddata"
|
Dparam
_
->
L
.
debug
~
level
:
0
"Decl and dparam"
...
...
@@ -68,28 +68,28 @@ let open_theory (env) (theories) =
)
theory
.
th_decls
;
with
W
.
Env
.
LibraryNotFound
paths
->
L
.
debug
~
level
:
0
"Library %s not found at %s "
th
y_n
(
String
.
concat
"."
paths
);
L
.
debug
~
level
:
0
"Library %s not found at %s "
th
eory_name
(
String
.
concat
"."
paths
);
)
(
extract_last_segments
theories
)
let
()
=
Boot
.
Main
.
extend
begin
fun
()
->
let
lib
s
=
L
.
Library
.
get
()
in
List
.
iter
(
fun
dir
->
L
.
debug
~
level
:
0
" + LIBS %s@."
dir
)
(
F
.
to_string_list
lib
s
)
;
let
thys
=
L
.
Import
.
get
()
in
List
.
iter
(
fun
thy
->
L
.
debug
~
level
:
0
" + THY %s@."
thy
)
thy
s
;
let
user_librarie
s
=
L
.
Library
.
get
()
in
(* DEBUG ONLY *)
List
.
iter
(
fun
dir
->
L
.
debug
~
level
:
0
" + LIBS %s@."
dir
)
(
F
.
to_string_list
user_librarie
s
)
;
(* DEBUG ONLY *)
let
user_theories
=
L
.
Import
.
get
()
in
List
.
iter
(
fun
thy
->
L
.
debug
~
level
:
0
" + THY %s@."
thy
)
user_theorie
s
;
let
lib
s
=
L
.
Library
.
get
()
in
let
thy
s
=
L
.
Import
.
get
()
in
let
env
=
create_why3_env
(
F
.
to_string_list
lib
s
)
in
open_theor
y
(
env
)
(
thy
s
);
let
user_librarie
s
=
L
.
Library
.
get
()
in
let
user_theorie
s
=
L
.
Import
.
get
()
in
let
env
=
create_why3_env
(
F
.
to_string_list
user_librarie
s
)
in
open_theor
ies_of_user
(
env
)
(
user_theorie
s
);
end
...
...
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