Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pub
frama-c
Commits
9a6d9a9a
Commit
9a6d9a9a
authored
Aug 31, 2020
by
David Bühler
Browse files
[Eva] Fixes the automatic loop unrolling on loops with no counter increment.
parent
8197fa33
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/value/partitioning/auto_loop_unroll.ml
View file @
9a6d9a9a
...
...
@@ -415,7 +415,8 @@ module Make (Abstract: Abstractions.Eva) = struct
try
let
zero_delta
=
{
current
=
`Value
Val
.
zero
;
final
=
`Bottom
;
}
in
let
delta
=
delta_block
zero_delta
loop
in
final_delta
delta
>>
fun
d
->
Some
d
final_delta
delta
>>
fun
d
->
if
is_true
(
Val
.
assume_non_zero
d
)
then
Some
d
else
None
with
NoIncrement
->
None
(* If in the block [loop], [lval] is assigned once to the value of another
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment