@@ -5277,8 +5277,8 @@ void smt2_convt::find_symbols_rec(
5277
5277
" complex." + std::to_string (datatype_map.size ());
5278
5278
datatype_map[type] = smt_typename;
5279
5279
5280
- out << " (declare-datatypes () (( " << smt_typename << " "
5281
- << " (mk-" << smt_typename;
5280
+ out << " (declare-datatypes (( " << smt_typename << " 0)) "
5281
+ << " ((( mk-" << smt_typename;
5282
5282
5283
5283
out << " (" << smt_typename << " .imag " ;
5284
5284
convert_type (to_complex_type (type).subtype ());
@@ -5306,8 +5306,8 @@ void smt2_convt::find_symbols_rec(
5306
5306
" vector." + std::to_string (datatype_map.size ());
5307
5307
datatype_map[type] = smt_typename;
5308
5308
5309
- out << " (declare-datatypes () (( " << smt_typename << " "
5310
- << " (mk-" << smt_typename;
5309
+ out << " (declare-datatypes (( " << smt_typename << " 0)) "
5310
+ << " ((( mk-" << smt_typename;
5311
5311
5312
5312
for (mp_integer i=0 ; i!=size; ++i)
5313
5313
{
@@ -5348,12 +5348,12 @@ void smt2_convt::find_symbols_rec(
5348
5348
// argument for each member of the struct. The declaration that
5349
5349
// creates this type looks like:
5350
5350
//
5351
- // (declare-datatypes () (( struct.0 (mk-struct.0
5351
+ // (declare-datatypes (( struct.0 0)) (( (mk-struct.0
5352
5352
// (struct.0.component1 type1)
5353
5353
// ...
5354
5354
// (struct.0.componentN typeN)))))
5355
- out << " (declare-datatypes () (( " << smt_typename << " "
5356
- << " (mk-" << smt_typename << " " ;
5355
+ out << " (declare-datatypes (( " << smt_typename << " 0)) "
5356
+ << " ((( mk-" << smt_typename << " " ;
5357
5357
5358
5358
for (const auto &component : components)
5359
5359
{
0 commit comments