Skip to content

SMT2 back-end: parse c_bool values #7400

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions regression/cbmc/Bool/bool3.desc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
CORE
bool3.c

--json-ui
^EXIT=10$
^SIGNAL=0$
^VERIFICATION FAILED$
VERIFICATION FAILED
--
^warning: ignoring
1 change: 1 addition & 0 deletions regression/validate-trace-xml-schema/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
# this uses json-ui (fails for a different reason actually, but should also
# fail because of command line incompatibility)
['json1', 'test.desc'],
['Bool', 'bool3.desc'],
['Empty_struct3', 'test.desc'],
# uses show-goto-functions
['reachability-slice', 'test.desc'],
Expand Down
2 changes: 1 addition & 1 deletion src/solvers/smt2/smt2_conv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ exprt smt2_convt::parse_rec(const irept &src, const typet &type)
type.id() == ID_integer || type.id() == ID_rational ||
type.id() == ID_real || type.id() == ID_c_enum ||
type.id() == ID_c_enum_tag || type.id() == ID_fixedbv ||
type.id() == ID_floatbv)
type.id() == ID_floatbv || type.id() == ID_c_bool)
{
return parse_literal(src, type);
}
Expand Down