Skip to content

Commit bda7f16

Browse files
author
Daniel Kroening
authored
Merge pull request #3086 from diffblue/symbol_type_fixup
bugfix: use symbol_type for type symbol
2 parents 251245e + 1186cc1 commit bda7f16

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

src/pointer-analysis/value_set_analysis_fi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ bool value_set_analysis_fit::check_type(const typet &type)
190190
}
191191
else if(type.id()==ID_array)
192192
return check_type(type.subtype());
193-
else if(type.id()==ID_symbol)
193+
else if(type.id() == ID_symbol_type)
194194
return check_type(ns.follow(type));
195195

196196
return false;

src/pointer-analysis/value_set_analysis_fivr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ bool value_set_analysis_fivrt::check_type(const typet &type)
178178
}
179179
else if(type.id()==ID_array)
180180
return check_type(type.subtype());
181-
else if(type.id()==ID_symbol)
181+
else if(type.id() == ID_symbol_type)
182182
return check_type(ns.follow(type));
183183

184184
return false;

src/pointer-analysis/value_set_analysis_fivrns.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ bool value_set_analysis_fivrnst::check_type(const typet &type)
178178
}
179179
else if(type.id()==ID_array)
180180
return check_type(type.subtype());
181-
else if(type.id()==ID_symbol)
181+
else if(type.id() == ID_symbol_type)
182182
return check_type(ns.follow(type));
183183

184184
return false;

src/solvers/flattening/boolbv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ exprt boolbvt::make_free_bv_expr(const typet &type)
623623

624624
bool boolbvt::is_unbounded_array(const typet &type) const
625625
{
626-
if(type.id()==ID_symbol)
626+
if(type.id() == ID_symbol_type)
627627
return is_unbounded_array(ns.follow(type));
628628

629629
if(type.id()!=ID_array)

src/solvers/flattening/boolbv_get.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ exprt boolbvt::bv_get_rec(
7171
std::size_t offset,
7272
const typet &type) const
7373
{
74-
if(type.id()==ID_symbol)
74+
if(type.id() == ID_symbol_type)
7575
return bv_get_rec(bv, unknown, offset, ns.follow(type));
7676

7777
std::size_t width=boolbv_width(type);

src/solvers/flattening/boolbv_map.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ boolbv_mapt::map_entryt &boolbv_mapt::get_map_entry(
5050
const irep_idt &identifier,
5151
const typet &type)
5252
{
53-
if(type.id()==ID_symbol)
53+
if(type.id() == ID_symbol_type)
5454
return get_map_entry(identifier, ns.follow(type));
5555

5656
std::pair<mappingt::iterator, bool> result=

src/solvers/flattening/boolbv_update.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void boolbvt::convert_update_rec(
4242
const exprt &new_value,
4343
bvt &bv)
4444
{
45-
if(type.id()==ID_symbol)
45+
if(type.id() == ID_symbol_type)
4646
convert_update_rec(
4747
designators, d, ns.follow(type), offset, new_value, bv);
4848

src/solvers/flattening/boolbv_with.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ void boolbvt::convert_with(
100100
else if(type.id() == ID_union_tag)
101101
return convert_with(
102102
ns.follow_tag(to_union_tag_type(type)), op1, op2, prev_bv, next_bv);
103-
else if(type.id()==ID_symbol)
103+
else if(type.id() == ID_symbol_type)
104104
return convert_with(ns.follow(type), op1, op2, prev_bv, next_bv);
105105

106106
error().source_location=type.source_location();

src/solvers/smt2/smt2_conv.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3978,7 +3978,7 @@ void smt2_convt::unflatten(
39783978
const typet &type,
39793979
unsigned nesting)
39803980
{
3981-
if(type.id()==ID_symbol)
3981+
if(type.id() == ID_symbol_type)
39823982
return unflatten(where, ns.follow(type));
39833983

39843984
if(type.id()==ID_bool)
@@ -4503,7 +4503,7 @@ void smt2_convt::convert_type(const typet &type)
45034503
out << "Real";
45044504
else if(type.id()==ID_integer)
45054505
out << "Int";
4506-
else if(type.id()==ID_symbol)
4506+
else if(type.id() == ID_symbol_type)
45074507
convert_type(ns.follow(type));
45084508
else if(type.id()==ID_complex)
45094509
{
@@ -4722,7 +4722,7 @@ void smt2_convt::find_symbols_rec(
47224722
{
47234723
find_symbols_rec(type.subtype(), recstack);
47244724
}
4725-
else if(type.id()==ID_symbol)
4725+
else if(type.id() == ID_symbol_type)
47264726
{
47274727
const symbol_typet &st=to_symbol_type(type);
47284728
const irep_idt &id=st.get_identifier();

0 commit comments

Comments
 (0)