@@ -84,7 +84,7 @@ literalt arrayst::record_array_equality(
84
84
// check types
85
85
if (!base_type_eq (op0.type (), op1.type (), ns))
86
86
{
87
- std::cout << equality.pretty () << std::endl ;
87
+ prop. error () << equality.pretty () << messaget::eom ;
88
88
throw " record_array_equality got equality without matching types" ;
89
89
}
90
90
@@ -174,7 +174,7 @@ void arrayst::collect_arrays(const exprt &a)
174
174
// check types
175
175
if (!base_type_eq (array_type, a.op0 ().type (), ns))
176
176
{
177
- std::cout << a.pretty () << std::endl ;
177
+ prop. error () << a.pretty () << messaget::eom ;
178
178
throw " collect_arrays got 'with' without matching types" ;
179
179
}
180
180
@@ -196,7 +196,7 @@ void arrayst::collect_arrays(const exprt &a)
196
196
// check types
197
197
if (!base_type_eq (array_type, a.op0 ().type (), ns))
198
198
{
199
- std::cout << a.pretty () << std::endl ;
199
+ prop. error () << a.pretty () << messaget::eom ;
200
200
throw " collect_arrays got 'update' without matching types" ;
201
201
}
202
202
@@ -220,14 +220,14 @@ void arrayst::collect_arrays(const exprt &a)
220
220
// check types
221
221
if (!base_type_eq (array_type, a.op1 ().type (), ns))
222
222
{
223
- std::cout << a.pretty () << std::endl ;
223
+ prop. error () << a.pretty () << messaget::eom ;
224
224
throw " collect_arrays got if without matching types" ;
225
225
}
226
226
227
227
// check types
228
228
if (!base_type_eq (array_type, a.op2 ().type (), ns))
229
229
{
230
- std::cout << a.pretty () << std::endl ;
230
+ prop. error () << a.pretty () << messaget::eom ;
231
231
throw " collect_arrays got if without matching types" ;
232
232
}
233
233
@@ -678,8 +678,8 @@ void arrayst::add_array_constraints_with(
678
678
679
679
if (index_expr.type ()!=value.type ())
680
680
{
681
- std::cout << expr.pretty () << std::endl ;
682
- assert ( false ) ;
681
+ prop. error () << expr.pretty () << messaget::eom ;
682
+ throw " index_expr and value types should match " ;
683
683
}
684
684
685
685
lazy_constraintt lazy (
@@ -774,8 +774,8 @@ void arrayst::add_array_constraints_update(
774
774
775
775
if(index_expr.type()!=value.type())
776
776
{
777
- std::cout << expr.pretty() << std::endl ;
778
- assert(false) ;
777
+ prop.error() << expr.pretty() << messaget::eom ;
778
+ throw "index_expr and value types should match" ;
779
779
}
780
780
781
781
set_to_true(equal_exprt(index_expr, value));
0 commit comments