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
f70e887d
Commit
f70e887d
authored
3 years ago
by
Basile Desloges
Browse files
Options
Downloads
Patches
Plain Diff
[eacsl] Do not print predicate result when translating RTE
parent
1f33d5ba
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/e-acsl/src/code_generator/assert.ml
+7
-2
7 additions, 2 deletions
src/plugins/e-acsl/src/code_generator/assert.ml
with
7 additions
and
2 deletions
src/plugins/e-acsl/src/code_generator/assert.ml
+
7
−
2
View file @
f70e887d
...
@@ -89,8 +89,13 @@ let register_term ~loc kf env ?force t e adata =
...
@@ -89,8 +89,13 @@ let register_term ~loc kf env ?force t e adata =
register
~
loc
kf
env
name
?
force
e
adata
register
~
loc
kf
env
name
?
force
e
adata
let
register_pred
~
loc
kf
env
?
force
p
e
adata
=
let
register_pred
~
loc
kf
env
?
force
p
e
adata
=
let
name
=
Format
.
asprintf
"@[%a@]"
Printer
.
pp_predicate
p
in
if
Env
.
annotation_kind
env
==
Smart_stmt
.
RTE
then
register
~
loc
kf
env
name
?
force
e
adata
(* When translating RTE, we do not want to print the result of the predicate
because they should be the only predicate in an assertion clause. *)
adata
,
env
else
let
name
=
Format
.
asprintf
"@[%a@]"
Printer
.
pp_predicate
p
in
register
~
loc
kf
env
name
?
force
e
adata
let
kind_to_string
loc
k
=
let
kind_to_string
loc
k
=
Cil
.
mkString
Cil
.
mkString
...
...
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