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
19b1be74
Commit
19b1be74
authored
2 years ago
by
Tristan Le Gall
Browse files
Options
Downloads
Patches
Plain Diff
[alias] fixed - print_dot function
parent
1679e8d6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/plugins/alias/Alias.ml
+1
-1
1 addition, 1 deletion
src/plugins/alias/Alias.ml
src/plugins/alias/abstract_state.ml
+7
-6
7 additions, 6 deletions
src/plugins/alias/abstract_state.ml
src/plugins/alias/analysis.ml
+1
-1
1 addition, 1 deletion
src/plugins/alias/analysis.ml
with
9 additions
and
8 deletions
src/plugins/alias/Alias.ml
+
1
−
1
View file @
19b1be74
...
@@ -29,6 +29,6 @@ let main () =
...
@@ -29,6 +29,6 @@ let main () =
Analysis
.
compute
()
;
Analysis
.
compute
()
;
Options
.
feedback
"Analysis complete"
;
Options
.
feedback
"Analysis complete"
;
end
end
let
()
=
let
()
=
Db
.
Main
.
extend
main
Db
.
Main
.
extend
main
This diff is collapsed.
Click to expand it.
src/plugins/alias/abstract_state.ml
+
7
−
6
View file @
19b1be74
...
@@ -297,11 +297,10 @@ let remove_lval (x:t) (lv:lval) :t =
...
@@ -297,11 +297,10 @@ let remove_lval (x:t) (lv:lval) :t =
let
find_vertex_name_ref
=
Extlib
.
mk_fun
"find_vertex_name"
let
find_vertex_name_ref
=
Extlib
.
mk_fun
"find_vertex_name"
let
lset_to_string
s
=
let
lset_to_string
(
s
:
LSet
.
t
)
:
string
=
let
buffer
=
Buffer
.
create
16
in
let
fmt
=
Format
.
str_formatter
in
let
fmt
=
Format
.
formatter_of_buffer
buffer
in
Format
.
fprintf
fmt
"
\"
%a
\"
"
LSet
.
pretty
s
;
Format
.
fprintf
fmt
"%a"
LSet
.
pretty
s
;
Format
.
flush_str_formatter
()
Buffer
.
contents
buffer
module
Dot
=
Graphviz
.
Dot
(
struct
module
Dot
=
Graphviz
.
Dot
(
struct
include
G
include
G
...
@@ -311,7 +310,9 @@ module Dot = Graphviz.Dot(struct
...
@@ -311,7 +310,9 @@ module Dot = Graphviz.Dot(struct
let
vertex_attributes
_
=
[
`Shape
`Box
]
let
vertex_attributes
_
=
[
`Shape
`Box
]
let
vertex_name
(
v
:
V
.
t
)
=
let
vertex_name
(
v
:
V
.
t
)
=
let
lset
=
!
find_vertex_name_ref
v
in
let
lset
=
!
find_vertex_name_ref
v
in
lset_to_string
lset
let
v_name
=
lset_to_string
lset
in
Format
.
printf
"Vertex %d set %s@."
v
v_name
;
v_name
let
default_vertex_attributes
_
=
[]
let
default_vertex_attributes
_
=
[]
let
graph_attributes
_
=
[]
let
graph_attributes
_
=
[]
end
)
end
)
...
...
This diff is collapsed.
Click to expand it.
src/plugins/alias/analysis.ml
+
1
−
1
View file @
19b1be74
...
@@ -103,7 +103,7 @@ let do_assignment (a:Abstract_state.t option) (lv:lval) (exp:exp) : Abstract_sta
...
@@ -103,7 +103,7 @@ let do_assignment (a:Abstract_state.t option) (lv:lval) (exp:exp) : Abstract_sta
begin
begin
match
e1
.
enode
with
match
e1
.
enode
with
Lval
lv1
->
Some
(
Abstract_state
.
assignment_ptr_x_y
a
lv1
lv2
)
Lval
lv1
->
Some
(
Abstract_state
.
assignment_ptr_x_y
a
lv1
lv2
)
|
_
->
(
Options
.
feedback
"Skipping assignment @[%a@] = @[%a@] (BUG do_assignment 2)"
Lval
.
pretty
lv
Exp
.
pretty
exp
;
Some
a
)
|
_
->
(
Options
.
feedback
"Skipping assignment @[%a@] = @[%a@] (BUG do_assignment 2)"
Lval
.
pretty
lv
Exp
.
pretty
exp
;
Some
a
)
end
end
(* cases *x = cst *)
(* cases *x = cst *)
|
(
Some
a
,
(
Mem
e1
,
NoOffset
)
,
BNone
)
->
|
(
Some
a
,
(
Mem
e1
,
NoOffset
)
,
BNone
)
->
...
...
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