We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5973f10 + c50ee19 commit 31a06e8Copy full SHA for 31a06e8
src/solvers/prop/bdd_expr.cpp
@@ -11,14 +11,11 @@ Author: Michael Tautschnig, [email protected]
11
12
#include "bdd_expr.h"
13
14
-#include <util/arith_tools.h>
15
#include <util/expr_util.h>
16
#include <util/format_expr.h>
17
#include <util/invariant.h>
18
#include <util/std_expr.h>
19
20
-#include <sstream>
21
-
22
bddt bdd_exprt::from_expr_rec(const exprt &expr)
23
{
24
PRECONDITION(expr.type().id() == ID_bool);
@@ -112,7 +109,7 @@ exprt bdd_exprt::as_expr(
112
109
return true_exprt();
113
110
}
114
111
115
- auto index = numeric_cast_v<std::size_t>(r.index());
+ auto index = narrow<std::size_t>(r.index());
116
INVARIANT(index < node_map.size(), "Index should be in node_map");
117
const exprt &n_expr = node_map[index];
118
0 commit comments