File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -1893,7 +1893,8 @@ void smt2_convt::convert_expr(const exprt &expr)
1893
1893
// width must be multiple of bytes
1894
1894
DATA_INVARIANT (
1895
1895
width % bits_per_byte == 0 ,
1896
- " bit width indicated by type of bswap expression should be a multiple "
1896
+ " bit width indicated by type of bswap expression should "
1897
+ " be a multiple "
1897
1898
" of the number of bits per byte" );
1898
1899
1899
1900
const std::size_t bytes = width / bits_per_byte;
@@ -4461,8 +4462,8 @@ void smt2_convt::find_symbols(const exprt &expr)
4461
4462
4462
4463
exprt tmp1=expr;
4463
4464
for (std::size_t i = 0 ; i < tmp1.operands ().size (); i++)
4464
- tmp1.operands ()[i]=
4465
- smt2_symbolt ( " op" + std::to_string (i), tmp1.operands ()[i].type ());
4465
+ tmp1.operands ()[i] = smt2_symbol_exprt (
4466
+ " op" + std::to_string (i), tmp1.operands ()[i].type ());
4466
4467
4467
4468
exprt tmp2=float_bv (tmp1);
4468
4469
tmp2=letify (tmp2);
Original file line number Diff line number Diff line change @@ -154,10 +154,10 @@ class smt2_convt : public stack_decision_proceduret
154
154
std::string floatbv_suffix (const exprt &) const ;
155
155
std::set<irep_idt> bvfp_set; // already converted
156
156
157
- class smt2_symbolt : public nullary_exprt
157
+ class smt2_symbol_exprt : public nullary_exprt
158
158
{
159
159
public:
160
- smt2_symbolt (const irep_idt &_identifier, const typet &_type)
160
+ smt2_symbol_exprt (const irep_idt &_identifier, const typet &_type)
161
161
: nullary_exprt(ID_smt2_symbol, _type)
162
162
{ set (ID_identifier, _identifier); }
163
163
@@ -167,10 +167,10 @@ class smt2_convt : public stack_decision_proceduret
167
167
}
168
168
};
169
169
170
- const smt2_symbolt &to_smt2_symbol (const exprt &expr)
170
+ const smt2_symbol_exprt &to_smt2_symbol (const exprt &expr)
171
171
{
172
172
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);
174
174
}
175
175
176
176
// flattens any non-bitvector type into a bitvector,
You can’t perform that action at this time.
0 commit comments