Skip to content

Commit b2ae89a

Browse files
committed
remove ID_float_debug1/2 expressions
1 parent e9df7b9 commit b2ae89a

File tree

3 files changed

+0
-34
lines changed

3 files changed

+0
-34
lines changed

src/ansi-c/c_typecheck_expr.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2742,26 +2742,6 @@ exprt c_typecheck_baset::do_special_functions(
27422742

27432743
return tmp;
27442744
}
2745-
else if(identifier==CPROVER_PREFIX "float_debug1" ||
2746-
identifier==CPROVER_PREFIX "float_debug2")
2747-
{
2748-
if(expr.arguments().size()!=2)
2749-
{
2750-
err_location(f_op);
2751-
error() << "float_debug expects two operands" << eom;
2752-
throw 0;
2753-
}
2754-
2755-
const irep_idt &id=
2756-
identifier==CPROVER_PREFIX "float_debug1"?
2757-
"float_debug1":"float_debug2";
2758-
2759-
exprt float_debug_expr(id, expr.type());
2760-
float_debug_expr.operands()=expr.arguments();
2761-
float_debug_expr.add_source_location()=source_location;
2762-
2763-
return float_debug_expr;
2764-
}
27652745
else if(identifier=="__sync_fetch_and_add" ||
27662746
identifier=="__sync_fetch_and_sub" ||
27672747
identifier=="__sync_fetch_and_or" ||

src/solvers/flattening/boolbv.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -303,18 +303,6 @@ bvt boolbvt::convert_bitvector(const exprt &expr)
303303
return convert_not(to_not_expr(expr));
304304
else if(expr.id()==ID_power)
305305
return convert_power(to_binary_expr(expr));
306-
else if(expr.id()==ID_float_debug1 ||
307-
expr.id()==ID_float_debug2)
308-
{
309-
DATA_INVARIANT(expr.operands().size() == 2, "");
310-
bvt bv0=convert_bitvector(expr.op0());
311-
bvt bv1=convert_bitvector(expr.op1());
312-
float_utilst float_utils(prop, to_floatbv_type(expr.type()));
313-
bvt bv=expr.id()==ID_float_debug1?
314-
float_utils.debug1(bv0, bv1):
315-
float_utils.debug2(bv0, bv1);
316-
return bv;
317-
}
318306
else if(expr.id() == ID_popcount)
319307
return convert_bv(lower_popcount(to_popcount_expr(expr), ns));
320308

src/util/irep_ids.def

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,6 @@ IREP_ID_ONE(ptr_object)
514514
IREP_ID_TWO(C_c_sizeof_type, #c_sizeof_type)
515515
IREP_ID_ONE(array_update)
516516
IREP_ID_ONE(update)
517-
IREP_ID_ONE(float_debug1)
518-
IREP_ID_ONE(float_debug2)
519517
IREP_ID_ONE(static_assert)
520518
IREP_ID_ONE(gcc_attribute_mode)
521519
IREP_ID_TWO(built_in, <built-in>)

0 commit comments

Comments
 (0)