File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 2929#include < util/string_constant.h>
3030
3131#include < solvers/flattening/boolbv_width.h>
32- #include < solvers/flattening/flatten_byte_operators.h>
3332#include < solvers/flattening/c_bit_field_replacement_type.h>
33+ #include < solvers/flattening/flatten_byte_operators.h>
3434#include < solvers/floatbv/float_bv.h>
35+ #include < solvers/lowering/expr_lowering.h>
3536
3637// Mark different kinds of error condition
3738// General
@@ -1866,6 +1867,11 @@ void smt2_convt::convert_expr(const exprt &expr)
18661867
18671868 out << ' )' ; // let bswap_op
18681869 }
1870+ else if (expr.id () == ID_popcount)
1871+ {
1872+ exprt lowered = lower_popcount (to_popcount_expr (expr), ns);
1873+ convert_expr (lowered);
1874+ }
18691875 else
18701876 UNEXPECTEDCASE (
18711877 " smt2_convt::convert_expr: `" +expr.id_string ()+" ' is unsupported" );
You can’t perform that action at this time.
0 commit comments