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
c318b215
Commit
c318b215
authored
10 months ago
by
Kilyan Le Gallic
Browse files
Options
Downloads
Patches
Plain Diff
[wp] Fixed typo
parent
1539529a
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
+4
-8
4 additions, 8 deletions
src/plugins/wp/Why3Import.ml
with
4 additions
and
8 deletions
src/plugins/wp/Why3Import.ml
+
4
−
8
View file @
c318b215
...
...
@@ -59,9 +59,8 @@ let of_infix s =
let
construct_acsl_name
(
id
:
W
.
Ident
.
ident
)
=
let
(
paths
,
name
,
scopes
)
=
T
.
restore_path
id
in
match
List
.
rev
scopes
with
|
(
t
::
q
)
->
let
modscopes
=
List
.
rev_append
q
[(
of_infix
t
)]
in
String
.
concat
"::"
(
paths
@
name
::
modscopes
)
|
(
t
::
q
)
->
String
.
concat
"::"
(
paths
@
name
::
List
.
rev_append
q
[
of_infix
t
])
|
[]
->
""
...
...
@@ -128,10 +127,7 @@ let tvars_of_txs (txs: W.Ty.tvsymbol list) : string list * tvars =
List
.
fold_right
(
fun
(
tv
:
W
.
Ty
.
tvsymbol
)
(
txs
,
tvs
)
->
let
x
=
tv
.
tv_name
.
id_string
in
match
x
with
|
"int"
->
x
::
txs
,
W
.
Ty
.
Mtv
.
add
tv
(
C
.
Linteger
)
tvs
|
"real"
->
x
::
txs
,
W
.
Ty
.
Mtv
.
add
tv
(
C
.
Lreal
)
tvs
|
_
->
x
::
txs
,
W
.
Ty
.
Mtv
.
add
tv
(
C
.
Lvar
x
)
tvs
x
::
txs
,
W
.
Ty
.
Mtv
.
add
tv
(
C
.
Lvar
x
)
tvs
)
txs
([]
,
W
.
Ty
.
Mtv
.
empty
)
...
...
@@ -230,7 +226,7 @@ let import_theory env (tenv:tenv) (lenv:lenv) thname =
let
li
=
li_of_ls
tenv
ls
lenv
in
L
.
debug
~
level
:
2
"Corresponding dlogic LTI %a"
pp_li
li
;
)
dlogics
|
_
->
L
.
debug
~
level
:
2
"Decl
but
whatever"
|
_
->
L
.
debug
~
level
:
2
"Decl
and
whatever"
end
|
Use
_
|
Clone
_
|
Meta
_
->
L
.
debug
~
level
:
2
""
)
theory
.
th_decls
...
...
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