Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
meta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
meta
Commits
fe0c10a8
Commit
fe0c10a8
authored
3 years ago
by
Virgile Robles
Browse files
Options
Downloads
Patches
Plain Diff
[deduction] Emit clearer model files
parent
a431aec1
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
meta_deduce.ml
+10
-4
10 additions, 4 deletions
meta_deduce.ml
with
10 additions
and
4 deletions
meta_deduce.ml
+
10
−
4
View file @
fe0c10a8
...
...
@@ -234,8 +234,8 @@ let pp_property preds globals mp =
let
generate_mp
prefix
preds
globals
fmt
(
mp
,
tset
)
=
let
print
,
preds
=
pp_property
preds
globals
mp
in
Format
.
fprintf
fmt
"meta_%s(
\"
%s
\"
, %a, {%a}).
%% %s
@."
prefix
Format
.
fprintf
fmt
"
%% Export of HILARE %s@.
meta_%s(
\"
%s
\"
, %a, {%a}).@."
mp
.
mp_name
prefix
(
match
mp
.
mp_context
with
|
Weak_invariant
->
"Weak invariant"
|
Strong_invariant
->
"Strong invariant"
...
...
@@ -247,8 +247,7 @@ let generate_mp prefix preds globals fmt (mp, tset) =
|
Calling
->
"Calling"
)
print
()
(
print_set
pp_ta
)
tset
mp
.
mp_name
;
(
print_set
pp_ta
)
tset
;
preds
let
all_preds
=
ref
None
...
...
@@ -297,12 +296,19 @@ let deduce flags mp ip mps =
in
Format
.
fprintf
fmt
{
|
%%
This
file
is
automatically
generated
by
MetAcsl
.
%%
It
is
provided
as
an
input
to
run
.
pl
in
order
to
attempt
HILARE
deduction
.
%%
==
Export
of
the
list
of
functions
==
targets
({
%
a
})
.
%%
==
Export
of
the
call
graph's
edges
==
%
a
%%
==
Export
already
established
HILAREs
==
%
a
%%
This
is
the
HILARE
we
want
to
prove
go
:-
%
a
|
}
(
print_setlist
pp_ta
)
targets
...
...
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