Skip to content

Commit 2b7ff7d

Browse files
committed
SMT2 backend: type2id can now do union_tag
1 parent afebaf8 commit 2b7ff7d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/solvers/smt2/smt2_conv.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,10 @@ std::string smt2_convt::type2id(const typet &type) const
944944
else
945945
return "S" + std::to_string(boolbv_width(type));
946946
}
947+
else if(type.id() == ID_union_tag)
948+
{
949+
return "U" + std::to_string(boolbv_width(type));
950+
}
947951
else if(type.id() == ID_array)
948952
{
949953
return "A" + type2id(to_array_type(type).element_type());

0 commit comments

Comments
 (0)