Skip to content

Commit cbecf19

Browse files
author
Enrico Steffinlongo
committed
Replaced INVARIANT(false) with UNREACHABLE_BECAUSE
1 parent fd0ba91 commit cbecf19

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/solvers/smt2/smt2_conv.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,8 +516,7 @@ constant_exprt smt2_convt::parse_literal(
516516
return from_integer(value, type);
517517
}
518518
else
519-
INVARIANT(
520-
false,
519+
UNREACHABLE_BECAUSE(
521520
"smt2_convt::parse_literal should not be of unsupported type " +
522521
type.id_string());
523522
}

src/solvers/strings/string_format_builtin_function.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ add_axioms_for_format_specifier(
232232
}
233233
}
234234

235-
INVARIANT(false, "format specifier must belong to [bBhHsScCdoxXeEfgGaAtT%n]");
235+
UNREACHABLE_BECAUSE(
236+
"format specifier must belong to [bBhHsScCdoxXeEfgGaAtT%n]");
236237
}
237238

238239
/// Deserialize an argument for format from \p string.

0 commit comments

Comments
 (0)