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
d91eb3c8
Commit
d91eb3c8
authored
3 years ago
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[Eva] Minor simplification to catch exceptions when reading loop unroll limits.
parent
3adfcc67
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/plugins/value/partitioning/partitioning_parameters.ml
+7
-16
7 additions, 16 deletions
src/plugins/value/partitioning/partitioning_parameters.ml
tests/syntax/oracle/very_large_integers.11.res.oracle
+1
-1
1 addition, 1 deletion
tests/syntax/oracle/very_large_integers.11.res.oracle
with
8 additions
and
17 deletions
src/plugins/value/partitioning/partitioning_parameters.ml
+
7
−
16
View file @
d91eb3c8
...
@@ -93,22 +93,13 @@ struct
...
@@ -93,22 +93,13 @@ struct
let
t
=
let
t
=
Cil
.
visitCilTerm
(
new
Logic_utils
.
simplify_const_lval
global_init
)
t
Cil
.
visitCilTerm
(
new
Logic_utils
.
simplify_const_lval
global_init
)
t
in
in
match
Logic_utils
.
constFoldTermToInt
t
with
try
|
Some
n
->
match
Logic_utils
.
constFoldTermToInt
t
with
begin
|
Some
n
->
Partition
.
IntLimit
(
Integer
.
to_int_exn
n
)
match
Integer
.
to_int_opt
n
with
|
None
->
Partition
.
ExpLimit
(
term_to_exp
t
)
|
Some
n'
->
Partition
.
IntLimit
n'
with
Z
.
Overflow
|
Db
.
Properties
.
Interp
.
No_conversion
->
|
None
->
warn
"invalid loop unrolling parameter; ignoring"
;
warn
"invalid loop unrolling parameter (%a); ignoring"
default
(
Integer
.
pretty
~
hexa
:
false
)
n
;
default
end
|
None
->
try
Partition
.
ExpLimit
(
term_to_exp
t
)
with
Db
.
Properties
.
Interp
.
No_conversion
->
warn
"loop unrolling parameters must be valid expressions; \
ignoring"
;
default
end
end
|
_
->
|
_
->
warn
"invalid unroll annotation; ignoring"
;
warn
"invalid unroll annotation; ignoring"
;
...
...
This diff is collapsed.
Click to expand it.
tests/syntax/oracle/very_large_integers.11.res.oracle
+
1
−
1
View file @
d91eb3c8
...
@@ -10,6 +10,6 @@
...
@@ -10,6 +10,6 @@
[eva:initial-state] Values of globals at initialization
[eva:initial-state] Values of globals at initialization
nondet ∈ [--..--]
nondet ∈ [--..--]
[kernel:annot-error] tests/syntax/very_large_integers.c:92: Warning:
[kernel:annot-error] tests/syntax/very_large_integers.c:92: Warning:
invalid loop unrolling parameter
(-9999999999999999999)
; ignoring
invalid loop unrolling parameter; ignoring
[kernel] User Error: warning annot-error treated as fatal error.
[kernel] User Error: warning annot-error treated as fatal error.
[kernel] Frama-C aborted: invalid user input.
[kernel] Frama-C aborted: invalid user input.
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