Skip to content

Commit 4fdeeda

Browse files
Rename class to smt2_symbol_exprt
This reflects the inheritance from exprt and will avoid collision with a type that will be introduced for smt2 ASTs.
1 parent fd79fe0 commit 4fdeeda

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

jbmc/src/java_bytecode/java_string_library_preprocess.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1751,7 +1751,7 @@ void java_string_library_preprocesst::initialize_conversion_table()
17511751
["java::java.lang.StringBuffer.append:(F)Ljava/lang/StringBuffer;"]=
17521752
ID_cprover_string_concat_float_func;
17531753
cprover_equivalent_to_java_assign_and_return_function
1754-
["java::java.lang.StringBuffer.append:(I)Ljava/lang/StringBuffer;"]=
1754+
["java::java.lang.StringBuffer.append:(I)Ljava/lang/StringBuffer;"] =
17551755
ID_cprover_string_concat_int_func;
17561756
cprover_equivalent_to_java_assign_and_return_function
17571757
["java::java.lang.StringBuffer.append:(J)Ljava/lang/StringBuffer;"]=

src/solvers/smt2/smt2_conv.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1889,7 +1889,8 @@ void smt2_convt::convert_expr(const exprt &expr)
18891889
// width must be multiple of bytes
18901890
DATA_INVARIANT(
18911891
width % bits_per_byte == 0,
1892-
"bit width indicated by type of bswap expression should be a multiple "
1892+
"bit width indicated by type of bswap expression should "
1893+
"be a multiple "
18931894
"of the number of bits per byte");
18941895

18951896
const std::size_t bytes = width / bits_per_byte;
@@ -4457,8 +4458,8 @@ void smt2_convt::find_symbols(const exprt &expr)
44574458

44584459
exprt tmp1=expr;
44594460
for(std::size_t i = 0; i < tmp1.operands().size(); i++)
4460-
tmp1.operands()[i]=
4461-
smt2_symbolt("op"+std::to_string(i), tmp1.operands()[i].type());
4461+
tmp1.operands()[i] = smt2_symbol_exprt(
4462+
"op" + std::to_string(i), tmp1.operands()[i].type());
44624463

44634464
exprt tmp2=float_bv(tmp1);
44644465
tmp2=letify(tmp2);

src/solvers/smt2/smt2_conv.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ class smt2_convt : public stack_decision_proceduret
154154
std::string floatbv_suffix(const exprt &) const;
155155
std::set<irep_idt> bvfp_set; // already converted
156156

157-
class smt2_symbolt : public nullary_exprt
157+
class smt2_symbol_exprt : public nullary_exprt
158158
{
159159
public:
160-
smt2_symbolt(const irep_idt &_identifier, const typet &_type)
160+
smt2_symbol_exprt(const irep_idt &_identifier, const typet &_type)
161161
: nullary_exprt(ID_smt2_symbol, _type)
162162
{ set(ID_identifier, _identifier); }
163163

@@ -167,10 +167,10 @@ class smt2_convt : public stack_decision_proceduret
167167
}
168168
};
169169

170-
const smt2_symbolt &to_smt2_symbol(const exprt &expr)
170+
const smt2_symbol_exprt &to_smt2_symbol(const exprt &expr)
171171
{
172172
assert(expr.id()==ID_smt2_symbol && !expr.has_operands());
173-
return static_cast<const smt2_symbolt&>(expr);
173+
return static_cast<const smt2_symbol_exprt &>(expr);
174174
}
175175

176176
// flattens any non-bitvector type into a bitvector,

0 commit comments

Comments
 (0)