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
3c7b1e87
Commit
3c7b1e87
authored
1 month ago
by
Basile Desloges
Browse files
Options
Downloads
Patches
Plain Diff
[Eva] Handle logic coercion from singleton to set
parent
f968fd06
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/eva/legacy/eval_terms.ml
+4
-1
4 additions, 1 deletion
src/plugins/eva/legacy/eval_terms.ml
tests/libc/oracle/signal_h.res.oracle
+0
-2
0 additions, 2 deletions
tests/libc/oracle/signal_h.res.oracle
with
4 additions
and
3 deletions
src/plugins/eva/legacy/eval_terms.ml
+
4
−
1
View file @
3c7b1e87
...
...
@@ -1162,10 +1162,13 @@ let rec eval_term ~alarm_mode env t =
ldeps
=
r
.
ldeps
;
eover
;
eunder
=
under_from_over
eover
;
empty
=
r
.
empty
}
|
_
->
|
ltyp
->
if
Logic_const
.
is_boolean_type
ltyp
&&
Logic_typing
.
is_integral_type
t
.
term_type
then
cast_to_bool
r
else
if
Logic_utils
.
is_same_type
ltyp
t
.
term_type
then
(* coercion from singleton to set *)
r
else
unsupported
(
Format
.
asprintf
"logic coercion %a -> %a@."
...
...
This diff is collapsed.
Click to expand it.
tests/libc/oracle/signal_h.res.oracle
+
0
−
2
View file @
3c7b1e87
...
...
@@ -129,8 +129,6 @@
function sigaction: precondition 'valid_read_act_or_null' got status valid.
[eva] signal_h.c:48:
function sigaction: precondition 'separation,separated_acts' got status valid.
[eva] FRAMAC_SHARE/libc/signal.h:248:
cannot evaluate ACSL term, unsupported ACSL construct: logic coercion struct sigaction -> set<struct sigaction>
[eva:garbled-mix:assigns] signal_h.c:48:
The specification of function sigaction
has generated a garbled mix of addresses for assigns clause *oldact.
...
...
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