Skip to content

Commit 39c7040

Browse files
thomasspriggsEnrico Steffinlongo
authored andcommitted
Add conversion of concatenation to smt2 terms
Because these can be generated in lower byte extracts/updates for casting array of narrower type to array of wider type.
1 parent 7b4b59a commit 39c7040

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/solvers/smt2_incremental/convert_expr_to_smt.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,11 @@ static smt_termt convert_expr_to_smt(
353353
const concatenation_exprt &concatenation,
354354
const sub_expression_mapt &converted)
355355
{
356+
if(operands_are_of_type<bitvector_typet>(concatenation))
357+
{
358+
return convert_multiary_operator_to_terms(
359+
concatenation, converted, smt_bit_vector_theoryt::concat);
360+
}
356361
UNIMPLEMENTED_FEATURE(
357362
"Generation of SMT formula for concatenation expression: " +
358363
concatenation.pretty());

0 commit comments

Comments
 (0)