Skip to content
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

Fixed handling of dead code #5

Merged
merged 1 commit into from
Mar 1, 2023
Merged

Conversation

dylandreimerink
Copy link
Member

There were two situations involving dead code that coverbee did not handle well. If the last part of a program contained dead code, the list of merged states would be shorter than the list of instructions since the verifier log never covered that part, causing a panic.

The second situation would be when there is dead code in the middle of a program. In which case we would only have a "blank" state, and we would start using registers which might already be in use.

If one of these situations is detected, we will still instrument the program but assume we have no registers available which is the worst case but also always save.

There were two situations involving dead code that coverbee did not
handle well. If the last part of a program contained dead code, the
list of merged states would be shorter than the list of instructions
since the verifier log never covered that part, causing a panic.

The second situation would be when there is dead code in the middle of
a program. In which case we would only have a "blank" state, and we
would start using registers which might already be in use.

If one of these situations is detected, we will still instrument the
program but assume we have no registers available which is the worst
case but also always save.

Signed-off-by: Dylan Reimerink <[email protected]>
@dylandreimerink dylandreimerink merged commit 896c616 into master Mar 1, 2023
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.

1 participant