File tree Expand file tree Collapse file tree 2 files changed +26
-5
lines changed Expand file tree Collapse file tree 2 files changed +26
-5
lines changed Original file line number Diff line number Diff line change @@ -334,11 +334,7 @@ bvt boolbvt::convert_bitvector(const exprt &expr)
334
334
}
335
335
else if (expr.id ()==ID_function_application)
336
336
{
337
- // record
338
- functions.record (to_function_application_expr (expr));
339
-
340
- // make it free bits
341
- return prop.new_variables (boolbv_width (expr.type ()));
337
+ return convert_function_application (to_function_application_expr (expr));
342
338
}
343
339
else if (expr.id ()==ID_reduction_or || expr.id ()==ID_reduction_and ||
344
340
expr.id ()==ID_reduction_nor || expr.id ()==ID_reduction_nand ||
@@ -502,6 +498,30 @@ bvt boolbvt::convert_symbol(const exprt &expr)
502
498
503
499
return bv;
504
500
}
501
+
502
+
503
+ /* ******************************************************************\
504
+
505
+ Function: boolbvt::convert_function_application
506
+
507
+ Inputs:
508
+
509
+ Outputs:
510
+
511
+ Purpose:
512
+
513
+ \*******************************************************************/
514
+
515
+ bvt boolbvt::convert_function_application (
516
+ const function_application_exprt &expr)
517
+ {
518
+ // record
519
+ functions.record (expr);
520
+
521
+ // make it free bits
522
+ return prop.new_variables (boolbv_width (expr.type ()));
523
+ }
524
+
505
525
506
526
/* ******************************************************************\
507
527
Original file line number Diff line number Diff line change @@ -169,6 +169,7 @@ class boolbvt:public arrayst
169
169
virtual bvt convert_bv_reduction (const unary_exprt &expr);
170
170
virtual bvt convert_not (const not_exprt &expr);
171
171
virtual bvt convert_power (const binary_exprt &expr);
172
+ virtual bvt convert_function_application (const function_application_exprt &expr);
172
173
173
174
virtual void make_bv_expr (const typet &type, const bvt &bv, exprt &dest);
174
175
virtual void make_free_bv_expr (const typet &type, exprt &dest);
You can’t perform that action at this time.
0 commit comments