Skip to content

Commit b6ba164

Browse files
author
Enrico Steffinlongo
committed
Replaced INVARIANT(false) with UNREACHABLE_BECAUSE
1 parent 50631b2 commit b6ba164

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/solvers/smt2/smt2_conv.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -516,10 +516,9 @@ 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 " +
522-
type.id_string());
521+
type.id_string());
523522
}
524523

525524
exprt smt2_convt::parse_array(

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)