Skip to content

symbexlog: fix conditionExp for big and/or#790

Merged
marcoeilers merged 2 commits into
viperproject:masterfrom
pieter-bos:condition-exp
Jan 21, 2024
Merged

symbexlog: fix conditionExp for big and/or#790
marcoeilers merged 2 commits into
viperproject:masterfrom
pieter-bos:condition-exp

Conversation

@pieter-bos

Copy link
Copy Markdown
Contributor

Hi! Noticed that sometimes the wrong branch condition is reported in the symbolic execution log. The branching record can contain both the expression (silver) and the term (smt-ish) for the branch, we prefer to render the expression when possible.

What I did:

  • Checked all usages of MemberSymbExLogger.insertBranchPoint; there's just two:
    • In Executor, but this doesn't report any condition expressions anyway;
    • In brancher.branch, where the conditionExp is passed in to the method.

At every usage of brancher.branch I checked that the conditionExp that is passed is exactly the expression evaluated for the term that is passed. That is: this was the only place it did not match.

@marcoeilers

Copy link
Copy Markdown
Contributor

Thank you!

@marcoeilers marcoeilers merged commit 093361e into viperproject:master Jan 21, 2024
@pieter-bos pieter-bos deleted the condition-exp branch January 21, 2024 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants