Skip to content

Commit eb81cc3

Browse files
committed
Initialize values to bottom
Signed-off-by: František Nečas <[email protected]>
1 parent 9703cf9 commit eb81cc3

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

src/ssa/dynobj_instance_analysis.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ class must_alias_setst
144144
class dynobj_instance_domaint:public ai_domain_baset
145145
{
146146
public:
147+
dynobj_instance_domaint(): has_values(false) {}
148+
147149
// Must-alias relation for each dynamic object (corresponding to allocation
148150
// site).
149151
std::map<symbol_exprt, must_alias_setst> must_alias_relations;

src/ssa/may_alias_analysis.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Author: Viktor Malik, [email protected]
2020
class may_alias_domaint:public ai_domain_baset
2121
{
2222
public:
23+
may_alias_domaint(): has_values(false) {};
24+
2325
void transform(
2426
const irep_idt &,
2527
locationt from,

src/ssa/ssa_domain.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Author: Daniel Kroening, [email protected]
2020
class ssa_domaint:public ai_domain_baset
2121
{
2222
public:
23+
ssa_domaint(): has_values(false) {}
24+
2325
// sources for identifiers
2426
struct deft
2527
{

src/ssa/ssa_value_set.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Author: Daniel Kroening, [email protected]
2121
class ssa_value_domaint:public ai_domain_baset
2222
{
2323
public:
24+
ssa_value_domaint(): has_values(false) {}
25+
2426
void transform(
2527
const irep_idt &,
2628
locationt,
@@ -100,7 +102,7 @@ class ssa_value_domaint:public ai_domain_baset
100102
typedef std::map<ssa_objectt, valuest> value_mapt;
101103
value_mapt value_map;
102104

103-
bool competition_mode;
105+
bool competition_mode=false;
104106

105107
const valuest operator()(
106108
const exprt &src,

0 commit comments

Comments
 (0)