Skip to content

Commit f1ab914

Browse files
author
kroening
committed
query methods
git-svn-id: svn+ssh://svn.cprover.org/srv/svn/cbmc/trunk@6525 6afb6bc1-c8e4-404c-8f48-9ae832c5b171
1 parent 6ea6f0d commit f1ab914

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/goto-analyzer/taint_parser.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,21 @@ class taint_parse_treet
2424
public:
2525
enum { SOURCE, SINK, SANITIZER } kind;
2626
enum { THIS, PARAMETER, RETURN_VALUE } where;
27+
28+
inline bool is_source() const
29+
{
30+
return kind==SOURCE;
31+
}
32+
33+
inline bool is_sink() const
34+
{
35+
return kind==SINK;
36+
}
37+
38+
inline bool is_sanitizer() const
39+
{
40+
return kind==SANITIZER;
41+
}
2742

2843
irep_idt function_identifier;
2944
irep_idt taint;

0 commit comments

Comments
 (0)