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
49e355e8
Commit
49e355e8
authored
3 years ago
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[Eva] Fixes a crash on INFINITY with option -eva-all-rounding-modes-constants.
parent
9fdd9961
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/value/values/cvalue_forward.ml
+3
-2
3 additions, 2 deletions
src/plugins/value/values/cvalue_forward.ml
with
3 additions
and
2 deletions
src/plugins/value/values/cvalue_forward.ml
+
3
−
2
View file @
49e355e8
...
@@ -528,9 +528,10 @@ let eval_float_constant f fkind fstring =
...
@@ -528,9 +528,10 @@ let eval_float_constant f fkind fstring =
if
Fc_float
.
is_nan
f
if
Fc_float
.
is_nan
f
then
V
.
inject_float
Fval
.
nan
then
V
.
inject_float
Fval
.
nan
else
else
let
all_rounding
=
Value_parameters
.
AllRoundingModesConstants
.
get
in
let
fl
,
fu
=
match
fstring
with
let
fl
,
fu
=
match
fstring
with
|
Some
string
when
fkind
=
Cil_types
.
FLongDouble
||
|
Some
"INFINITY"
->
f
,
f
(* Special case for the INFINITY macro. *)
Value_parameters
.
AllRoundingModesConstants
.
get
()
->
|
Some
string
when
fkind
=
Cil_types
.
FLongDouble
||
all_rounding
()
->
let
open
Floating_point
in
let
open
Floating_point
in
let
{
f_lower
;
f_upper
}
=
snd
(
parse
string
)
in
let
{
f_lower
;
f_upper
}
=
snd
(
parse
string
)
in
(* Computations are done in double. For long double constants, if we
(* Computations are done in double. For long double constants, if we
...
...
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