Skip to content

Fix statement-expression expansion for Kani-provided quantifiers #8649

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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
7 changes: 5 additions & 2 deletions src/ansi-c/goto-conversion/goto_clean_expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@ static exprt convert_statement_expression(
const quantifier_exprt &qex,
const code_expressiont &code,
const irep_idt &mode,
goto_convertt &converter)
symbol_table_baset &symbol_table,
message_handlert &message_handler)
{
goto_programt where;
goto_convertt converter{symbol_table, message_handler};
converter.goto_convert(code, where, mode);
where.compute_location_numbers();

Expand Down Expand Up @@ -716,7 +718,8 @@ goto_convertt::clean_expr_resultt goto_convertt::clean_expr(
code.operands()[0].get_named_sub()[ID_statement].id() ==
ID_statement_expression)
{
auto res = convert_statement_expression(qex, code, mode, *this);
auto res = convert_statement_expression(
qex, code, mode, symbol_table, get_message_handler());
qex.where() = res;
return clean_expr(res, mode, result_is_used);
}
Expand Down
Loading