Skip to content

Commit 12660ce

Browse files
authored
Merge pull request #8180 from diffblue/smt2-extractbit
SMT2: fix extractbit with non-const index
2 parents e8728fc + 7834962 commit 12660ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/solvers/smt2/smt2_conv.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1816,9 +1816,10 @@ void smt2_convt::convert_expr(const exprt &expr)
18161816
// the arguments of the shift need to have the same width
18171817
out << "(bvlshr ";
18181818
flatten2bv(extractbit_expr.src());
1819+
out << ' ';
18191820
typecast_exprt tmp(extractbit_expr.index(), extractbit_expr.src().type());
18201821
convert_expr(tmp);
1821-
out << ")) bin1)"; // bvlshr, extract, =
1822+
out << ")) #b1)"; // bvlshr, extract, =
18221823
}
18231824
}
18241825
else if(expr.id()==ID_extractbits)

0 commit comments

Comments
 (0)