Skip to content

Commit 0e695d0

Browse files
author
Daniel Kroening
authored
Merge pull request #3084 from diffblue/boolbvt_convert_with_tag_types
boolbvt: convert_with now does struct_tag and union_tag types
2 parents 09f6eb3 + dbec311 commit 0e695d0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/solvers/flattening/boolbv_with.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,14 @@ void boolbvt::convert_with(
9292
else if(type.id()==ID_struct)
9393
return
9494
convert_with_struct(to_struct_type(type), op1, op2, prev_bv, next_bv);
95+
else if(type.id() == ID_struct_tag)
96+
return convert_with(
97+
ns.follow_tag(to_struct_tag_type(type)), op1, op2, prev_bv, next_bv);
9598
else if(type.id()==ID_union)
9699
return convert_with_union(to_union_type(type), op2, prev_bv, next_bv);
100+
else if(type.id() == ID_union_tag)
101+
return convert_with(
102+
ns.follow_tag(to_union_tag_type(type)), op1, op2, prev_bv, next_bv);
97103
else if(type.id()==ID_symbol)
98104
return convert_with(ns.follow(type), op1, op2, prev_bv, next_bv);
99105

0 commit comments

Comments
 (0)