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
792aeaac
Commit
792aeaac
authored
4 years ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[logic] fix some missing ~keep_empty:false
parent
d4853948
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/kernel_internals/typing/allocates.ml
+1
-1
1 addition, 1 deletion
src/kernel_internals/typing/allocates.ml
src/plugins/aorai/aorai_visitors.ml
+4
-1
4 additions, 1 deletion
src/plugins/aorai/aorai_visitors.ml
with
5 additions
and
2 deletions
src/kernel_internals/typing/allocates.ml
+
1
−
1
View file @
792aeaac
...
@@ -35,7 +35,7 @@ let add_allocates_loop stmt =
...
@@ -35,7 +35,7 @@ let add_allocates_loop stmt =
let
all_default
=
Annotations
.
fold_code_annot
all_default
stmt
true
in
let
all_default
=
Annotations
.
fold_code_annot
all_default
stmt
true
in
if
all_default
then
if
all_default
then
let
ca
=
AAllocation
([]
,
FreeAlloc
([]
,
[]
))
in
let
ca
=
AAllocation
([]
,
FreeAlloc
([]
,
[]
))
in
Annotations
.
add_code_annot
Emitter
.
kernel
stmt
Annotations
.
add_code_annot
~
keep_empty
:
false
Emitter
.
kernel
stmt
(
Logic_const
.
new_code_annotation
ca
)
(
Logic_const
.
new_code_annotation
ca
)
let
add_allocates_nothing_funspec
kf
=
let
add_allocates_nothing_funspec
kf
=
...
...
This diff is collapsed.
Click to expand it.
src/plugins/aorai/aorai_visitors.ml
+
4
−
1
View file @
792aeaac
...
@@ -272,7 +272,10 @@ let update_loop_assigns kf stmt state vi code_annot =
...
@@ -272,7 +272,10 @@ let update_loop_assigns kf stmt state vi code_annot =
(
AAssigns
(
bhvs
,
Logic_utils
.
concat_assigns
old_assigns
assigns
))
(
AAssigns
(
bhvs
,
Logic_utils
.
concat_assigns
old_assigns
assigns
))
|
_
->
Aorai_option
.
fatal
"Expecting an assigns clause here"
|
_
->
Aorai_option
.
fatal
"Expecting an assigns clause here"
in
in
Annotations
.
add_code_annot
Aorai_option
.
emitter
~
kf
stmt
new_assigns
(* we're putting the annotation on a new statement, with an empty
loop assigns by construction. Don't keep_empty *)
Annotations
.
add_code_annot
~
keep_empty
:
false
Aorai_option
.
emitter
~
kf
stmt
new_assigns
let
get_action_post_cond
kf
?
init_trans
return_states
=
let
get_action_post_cond
kf
?
init_trans
return_states
=
let
to_consider
pre_state
int_states
=
let
to_consider
pre_state
int_states
=
...
...
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