Skip to content

Commit b837b8a

Browse files
Remove useless throws in boolbvt::convert_index
These invariant should already be ensured by the type.
1 parent 52d0fe4 commit b837b8a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/solvers/flattening/boolbv_index.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ Author: Daniel Kroening, [email protected]
1717

1818
bvt boolbvt::convert_index(const index_exprt &expr)
1919
{
20-
if(expr.id()!=ID_index)
21-
throw "expected index expression";
22-
23-
if(expr.operands().size()!=2)
24-
throw "index takes two operands";
25-
2620
const exprt &array=expr.array();
2721
const exprt &index=expr.index();
2822

0 commit comments

Comments
 (0)