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
8ad5c287
Commit
8ad5c287
authored
6 years ago
by
Patrick Baudin
Browse files
Options
Downloads
Patches
Plain Diff
[WP] detection of non significative casts (from/to the same array type)
parent
79dcf218
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/wp/LogicSemantics.ml
+4
-0
4 additions, 0 deletions
src/plugins/wp/LogicSemantics.ml
with
4 additions
and
0 deletions
src/plugins/wp/LogicSemantics.ml
+
4
−
0
View file @
8ad5c287
...
...
@@ -543,6 +543,10 @@ struct
to a deref of a cast to a pointer `*(T( * )[])(p)` *)
let
cast
=
cast_ptr
dst_ctype
t0
in
L
.
load
(
C
.
current
env
)
(
Ctypes
.
object_of
dst_ctype
)
cast
|
C_array
dst_arr_info
,
L_array
src_arr_info
when
Ctypes
.
AinfoComparable
.
equal
dst_arr_info
src_arr_info
->
(* cast from/to the same type *)
C
.
logic
env
t
|
C_array
{
arr_flat
=
Some
_
}
,
(
L_integer
|
L_cint
_
|
L_bool
|
L_real
|
L_cfloat
_
|
L_array
_
)
->
Warning
.
error
"@[Logic cast to sized array (%a) from (%a) not implemented yet@]"
Printer
.
pp_typ
dst_ctype
Printer
.
pp_logic_type
t
.
term_type
...
...
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