File tree 1 file changed +21
-0
lines changed
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 13
13
#include < analyses/static_analysis.h>
14
14
#include < util/xml_expr.h>
15
15
#include < util/xml.h>
16
+ #include < util/expr_util.h>
16
17
17
18
#include " value_set_domain.h"
18
19
#include " value_sets.h"
@@ -108,6 +109,26 @@ class value_set_analysis_baset:
108
109
dest,
109
110
baset::ns);
110
111
}
112
+
113
+ /* ******************************************************************\
114
+
115
+ Function: value_set_analysis_baset::is_singular
116
+
117
+ Inputs: The set of expressions to check.
118
+
119
+ Outputs: true, if it contains only one expression and
120
+ that expression is a symbol,
121
+ false, otherwise.
122
+
123
+ Purpose: Get whether a set of expressions can have a strong update
124
+ or not.
125
+
126
+ \*******************************************************************/
127
+
128
+ virtual bool is_singular (const std::set<exprt> &values)
129
+ {
130
+ return values.size ()==1 && values.begin ()->id ()==ID_symbol;
131
+ }
111
132
};
112
133
113
134
typedef value_set_analysis_baset<value_sett> value_set_analysist;
You can’t perform that action at this time.
0 commit comments