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
db2c36f7
Commit
db2c36f7
authored
2 years ago
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[Eva] Multidim domain: ignores assignments of size zero (empty structs or unions).
parent
558c6e4c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/value/domains/multidim/multidim_domain.ml
+7
-4
7 additions, 4 deletions
src/plugins/value/domains/multidim/multidim_domain.ml
tests/value/oracle_multidim/empty_union.res.oracle
+0
-65
0 additions, 65 deletions
tests/value/oracle_multidim/empty_union.res.oracle
with
7 additions
and
69 deletions
src/plugins/value/domains/multidim/multidim_domain.ml
+
7
−
4
View file @
db2c36f7
...
...
@@ -726,10 +726,13 @@ struct
|
`Value
src
->
overwrite
~
oracle
state
dst
src
let
assign
_kinstr
{
lval
=
dst
}
src
assigned_value
valuation
state
=
let
+
state
=
assume_valuation
valuation
state
in
let
oracle
=
valuation_to_oracle
state
valuation
in
assign'
~
oracle
~
value
:
assigned_value
dst
(
Some
src
)
state
let
assign
_kinstr
{
lval
=
dst
;
ltyp
}
src
assigned_value
valuation
state
=
if
Int_Base
.
is_zero
(
Bit_utils
.
sizeof
ltyp
)
then
`Value
state
else
let
+
state
=
assume_valuation
valuation
state
in
let
oracle
=
valuation_to_oracle
state
valuation
in
assign'
~
oracle
~
value
:
assigned_value
dst
(
Some
src
)
state
let
assume
_stmt
_expr
_pos
valuation
state
=
assume_valuation
valuation
state
...
...
This diff is collapsed.
Click to expand it.
tests/value/oracle_multidim/empty_union.res.oracle
deleted
100644 → 0
+
0
−
65
View file @
558c6e4c
37a38,41
> [eva] empty_union.c:30:
> The evaluation of the expression s.b + 10
> led to bottom without alarms:
> at this point the product of states has no possible concretization.
40,46d43
< [eva] computing for function copy_empty <- main.
< Called from empty_union.c:81.
< [eva:alarm] empty_union.c:37: Warning:
< function copy_empty: postcondition got status unknown.
< [eva] Recording results for copy_empty
< [eva] Done for function copy_empty
< [eva] empty_union.c:83: Frama_C_show_each_res: {74}
50,51d46
< [eva:final-states] Values at end of function copy_empty:
<
53c48
< res{.a; .e{}; .b} ∈ {74}
---
> NON TERMINATING FUNCTION
55,64c50
< c1{.a; .e{}; .b} ∈ {77}
< c2{.a; .e{}; .b} ∈ {77}
< res{.a; .e{}; .b} ∈ {74}
< cb{.s{}; .i} ∈ {91}
< ce{.ch; .ss{}} ∈ {90}
< p ∈ {{ (union empty *)&cb }}
< pc ∈ {{ &empty_init_array[0] }}
< __retres ∈ {0}
< [from] Computing for function copy_empty
< [from] Done for function copy_empty
---
> NON TERMINATING FUNCTION
65a52
> [from] Non-terminating function f (no dependencies)
69a57
> [from] Non-terminating function main (no dependencies)
73,74d60
< [from] Function copy_empty:
< NO EFFECTS
76c62
< \result FROM s
---
> NON TERMINATING - NO EFFECTS
81c67
< \result FROM \nothing
---
> NON TERMINATING - NO EFFECTS
83,86d68
< [inout] Out (internal) for function copy_empty:
< \nothing
< [inout] Inputs for function copy_empty:
< \nothing
90c72
< nondet
---
> \nothing
92c74
< c1; c2; res; cb; ce; p; pc; __retres
---
> c1; c2; res
94c76
< nondet
---
> \nothing
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