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
40b60546
Commit
40b60546
authored
8 months ago
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[kernel] Fixes some comments in dominators.
parent
c22fbdce
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/kernel_services/analysis/dominators.ml
+5
-5
5 additions, 5 deletions
src/kernel_services/analysis/dominators.ml
with
5 additions
and
5 deletions
src/kernel_services/analysis/dominators.ml
+
5
−
5
View file @
40b60546
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
(**************************************************************************)
(**************************************************************************)
(* This module performs dataflow analysis using [Interpreted_automata] to
(* This module performs dataflow analysis using [Interpreted_automata] to
compute the domination/postdomination depend
a
ncies between statements of a
compute the domination/postdomination depend
e
ncies between statements of a
given function. *)
given function. *)
open
Cil_types
open
Cil_types
...
@@ -110,9 +110,9 @@ module DotGraph = Graph.Graphviz.Dot (
...
@@ -110,9 +110,9 @@ module DotGraph = Graph.Graphviz.Dot (
let
get_subgraph
_v
=
None
let
get_subgraph
_v
=
None
end
)
end
)
(* Both analys
i
s
are using
this domain
. It simply
propagate all encountered
(* Both analys
e
s
use
this domain
, which
propagate
s
all encountered
statements
statements
by adding them to the state. The [join] performs an intersection
by adding them to the state. The [join] performs an intersection
which is
which is
enough to compute domination/postdomination. *)
enough to compute domination/postdomination. *)
module
Domain
=
struct
module
Domain
=
struct
type
t
=
StmtSet
.
t
type
t
=
StmtSet
.
t
...
@@ -124,7 +124,7 @@ module Domain = struct
...
@@ -124,7 +124,7 @@ module Domain = struct
else
else
Widening
(
join
a
b
)
Widening
(
join
a
b
)
(* Trivial transfer
t
function
: add all visited statements to the current
(* Trivial transfer function: add all visited statements to the current
state. *)
state. *)
let
transfer
v
_
state
=
let
transfer
v
_
state
=
match
v
.
vertex_start_of
with
match
v
.
vertex_start_of
with
...
...
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