File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ Date: October 2012
15
15
16
16
#include < util/find_symbols.h>
17
17
#include < util/invariant.h>
18
+ #include < util/optional.h>
18
19
#include < util/replace_symbol.h>
19
20
#include < util/std_expr.h>
20
21
@@ -58,14 +59,14 @@ class concurrency_instrumentationt
58
59
{
59
60
public:
60
61
typet type;
61
- symbol_exprt array_symbol, w_index_symbol;
62
+ optionalt< symbol_exprt> array_symbol, w_index_symbol;
62
63
};
63
64
64
65
class thread_local_vart
65
66
{
66
67
public:
67
68
typet type;
68
- symbol_exprt array_symbol;
69
+ optionalt< symbol_exprt> array_symbol;
69
70
};
70
71
71
72
typedef std::map<irep_idt, shared_vart> shared_varst;
@@ -101,7 +102,7 @@ void concurrency_instrumentationt::instrument(exprt &expr)
101
102
// initialized anywhere
102
103
const shared_vart &shared_var = v_it->second ;
103
104
const index_exprt new_expr (
104
- shared_var.array_symbol , shared_var.w_index_symbol );
105
+ * shared_var.array_symbol , * shared_var.w_index_symbol );
105
106
106
107
replace_symbol.insert (s, new_expr);
107
108
}
You can’t perform that action at this time.
0 commit comments