Skip to content

Commit 15f755f

Browse files
authored
Merge pull request #8523 from diffblue/range-type-relations
SMT2: relations on the range type
2 parents 1aa8d41 + 6109869 commit 15f755f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/solvers/smt2/smt2_conv.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3568,9 +3568,11 @@ void smt2_convt::convert_relation(const binary_relation_exprt &expr)
35683568
{
35693569
const typet &op_type=expr.op0().type();
35703570

3571-
if(op_type.id()==ID_unsignedbv ||
3572-
op_type.id()==ID_bv)
3571+
if(
3572+
op_type.id() == ID_unsignedbv || op_type.id() == ID_bv ||
3573+
op_type.id() == ID_range)
35733574
{
3575+
// The range type is encoded in binary
35743576
out << "(";
35753577
if(expr.id()==ID_le)
35763578
out << "bvule";

0 commit comments

Comments
 (0)