Skip to content

Commit 56194ef

Browse files
committed
boolbvt error handling for byte_extract
1 parent 833cf6f commit 56194ef

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/solvers/flattening/boolbv_byte_extract.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Author: Daniel Kroening, [email protected]
1414
#include <util/byte_operators.h>
1515
#include <util/pointer_offset_size.h>
1616
#include <util/std_expr.h>
17-
#include <util/throw_with_nested.h>
1817

1918
#include <solvers/lowering/expr_lowering.h>
2019
#include <solvers/lowering/flatten_byte_extract_exceptions.h>
@@ -47,10 +46,10 @@ bvt boolbvt::convert_byte_extract(const byte_extract_exprt &expr)
4746
{
4847
return convert_bv(flatten_byte_extract(expr, ns));
4948
}
50-
catch(const flatten_byte_extract_exceptiont &)
49+
catch(const flatten_byte_extract_exceptiont &e)
5150
{
52-
util_throw_with_nested(
53-
bitvector_conversion_exceptiont("Can't convert byte_extraction", expr));
51+
warning() << e.what() << eom;
52+
return conversion_failed(expr);
5453
}
5554
}
5655

0 commit comments

Comments
 (0)