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
0905e812
Commit
0905e812
authored
4 years ago
by
Michele Alberti
Committed by
David Bühler
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Eva] Register message key to enable debug printing.
parent
2df74be4
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/value/domains/taint_domain.ml
+6
-4
6 additions, 4 deletions
src/plugins/value/domains/taint_domain.ml
with
6 additions
and
4 deletions
src/plugins/value/domains/taint_domain.ml
+
6
−
4
View file @
0905e812
...
...
@@ -38,9 +38,11 @@ type taint = {
assume_stmts
:
Stmt
.
Set
.
t
;
}
(* Set to true for pretty-printing also [assume_stmts] on
let
dkey
=
Value_parameters
.
register_category
"d-taint"
(* Debug key to also include [assume_stmts] in the output of the
Frama_C_domain_show_each directive. *)
let
debug
=
f
al
se
let
dkey_
debug
=
V
al
ue_parameters
.
register_category
"d-taint-debug"
module
LatticeTaint
=
struct
...
...
@@ -90,7 +92,7 @@ module LatticeTaint = struct
let
equal
=
Datatype
.
from_compare
let
pretty
fmt
t
=
if
debug
if
Value_parameters
.
is_debug_key_enabled
dkey_
debug
then
pp_state
fmt
t
else
pp_locs_only
fmt
t
...
...
@@ -340,7 +342,7 @@ module InternalTaint = struct
include
(
ReuseTaint
:
Abstract_domain
.
Reuse
with
type
t
:=
state
)
let
name
=
"taint"
let
log_category
=
Value_parameters
.
register_category
"d-taint"
let
log_category
=
dkey
(* Logic. *)
...
...
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