@@ -5281,8 +5281,8 @@ void smt2_convt::find_symbols_rec(
5281
5281
" complex." + std::to_string (datatype_map.size ());
5282
5282
datatype_map[type] = smt_typename;
5283
5283
5284
- out << " (declare-datatypes () (( " << smt_typename << " "
5285
- << " (mk-" << smt_typename;
5284
+ out << " (declare-datatypes (( " << smt_typename << " 0)) "
5285
+ << " ((( mk-" << smt_typename;
5286
5286
5287
5287
out << " (" << smt_typename << " .imag " ;
5288
5288
convert_type (to_complex_type (type).subtype ());
@@ -5310,8 +5310,8 @@ void smt2_convt::find_symbols_rec(
5310
5310
" vector." + std::to_string (datatype_map.size ());
5311
5311
datatype_map[type] = smt_typename;
5312
5312
5313
- out << " (declare-datatypes () (( " << smt_typename << " "
5314
- << " (mk-" << smt_typename;
5313
+ out << " (declare-datatypes (( " << smt_typename << " 0)) "
5314
+ << " ((( mk-" << smt_typename;
5315
5315
5316
5316
for (mp_integer i=0 ; i!=size; ++i)
5317
5317
{
@@ -5352,12 +5352,12 @@ void smt2_convt::find_symbols_rec(
5352
5352
// argument for each member of the struct. The declaration that
5353
5353
// creates this type looks like:
5354
5354
//
5355
- // (declare-datatypes () (( struct.0 (mk-struct.0
5355
+ // (declare-datatypes (( struct.0 0)) (( (mk-struct.0
5356
5356
// (struct.0.component1 type1)
5357
5357
// ...
5358
5358
// (struct.0.componentN typeN)))))
5359
- out << " (declare-datatypes () (( " << smt_typename << " "
5360
- << " (mk-" << smt_typename << " " ;
5359
+ out << " (declare-datatypes (( " << smt_typename << " 0)) "
5360
+ << " ((( mk-" << smt_typename << " " ;
5361
5361
5362
5362
for (const auto &component : components)
5363
5363
{
0 commit comments