Skip to content

Commit 862affb

Browse files
committed
SMT2 backend: type2id now does struct_tag
This enables type2id in the SMT2 backend to convert struct_tag types.
1 parent 51674f8 commit 862affb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/solvers/smt2/smt2_conv.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,13 @@ std::string smt2_convt::type2id(const typet &type) const
937937
{
938938
return "p" + std::to_string(to_pointer_type(type).get_width());
939939
}
940+
else if(type.id() == ID_struct_tag)
941+
{
942+
if(use_datatypes)
943+
return datatype_map.at(type);
944+
else
945+
return "S" + std::to_string(boolbv_width(type));
946+
}
940947
else
941948
{
942949
UNREACHABLE;

0 commit comments

Comments
 (0)