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
78e8530b
Commit
78e8530b
authored
7 months ago
by
Kilyan Le Gallic
Committed by
Allan Blanchard
5 months ago
Browse files
Options
Downloads
Patches
Plain Diff
[wp] Fixed l_result
parent
3b710bd5
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
+6
-3
6 additions, 3 deletions
src/plugins/wp/Why3Import.ml
with
6 additions
and
3 deletions
src/plugins/wp/Why3Import.ml
+
6
−
3
View file @
78e8530b
...
...
@@ -285,11 +285,11 @@ let rec parse_theory (env) (theory:W.Theory.theory) (menv) =
)
dlogics
|
Dind
(
_
,
dec
)
->
List
.
iter
(
fun
((
ls
,_
)
:
W
.
Decl
.
ind_decl
)
->
L
.
result
"Dind with ls %s"
ls
.
ls_name
.
id_string
;
L
.
debug
~
dkey
"Dind with ls %s"
ls
.
ls_name
.
id_string
;
)
dec
;
|
Dprop
(
_
,
prsymbol
,_
)
->
L
.
result
"Dprop with prsymbol %s"
prsymbol
.
pr_name
.
id_string
;
L
.
debug
~
dkey
"Dprop with prsymbol %s"
prsymbol
.
pr_name
.
id_string
;
end
|
Use
exth
->
L
.
debug
~
dkey
"Parsing use of external theories %s"
exth
.
th_name
.
id_string
;
...
...
@@ -331,7 +331,10 @@ let register_builtin env thname =
let
ls
=
Logic_info
.
Hashtbl
.
find
env
.
lils
li
in
let
(
package
,
theory
,
name
)
=
T
.
restore_path
ls
.
ls_name
in
let
params
=
List
.
map
(
sort_of_lv
)
li
.
l_profile
in
let
result
=
sort_of_lt
@@
Option
.
get
(
li
.
l_type
)
in
let
result
=
match
li
.
l_type
with
|
Some
a
->
sort_of_lt
a
|
None
->
Qed
.
Logic
.
Sprop
in
LB
.
add_builtin
li
.
l_var_info
.
lv_name
(
List
.
map
(
kind_of_lv
)
li
.
l_profile
)
@@
Lang
.
imported_f
~
package
~
theory
~
name
~
params
~
result
()
;
L
.
result
"Imported logic ! %a"
pp_li
li
;
...
...
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