File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/solvers/smt2_incremental/encoding Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 15
15
16
16
#include < algorithm>
17
17
#include < numeric>
18
+ #include < optional>
18
19
#include < queue>
19
20
20
21
struct_encodingt::struct_encodingt (const namespacet &ns)
@@ -33,7 +34,7 @@ struct_encodingt::~struct_encodingt() = default;
33
34
// / If the given \p type needs re-encoding as a bit-vector then this function
34
35
// / \returns the width of the new bitvector type. The width calculation is
35
36
// / delegated to \p boolbv_width.
36
- static optionalt <std::size_t >
37
+ static std::optional <std::size_t >
37
38
needs_width (const typet &type, const boolbv_widtht &boolbv_width)
38
39
{
39
40
if (const auto struct_tag = type_try_dynamic_cast<struct_tag_typet>(type))
@@ -222,7 +223,7 @@ exprt struct_encodingt::encode(exprt expr) const
222
223
if (can_cast_type<struct_tag_typet>(current.type ()))
223
224
current = ::encode (*with_expr, ns);
224
225
current.type () = encode (current.type ());
225
- optionalt <exprt> update;
226
+ std::optional <exprt> update;
226
227
if (const auto struct_expr = expr_try_dynamic_cast<struct_exprt>(current))
227
228
update = ::encode (*struct_expr);
228
229
if (const auto union_expr = expr_try_dynamic_cast<union_exprt>(current))
You can’t perform that action at this time.
0 commit comments