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

Add exception to STM Expr for testing #35

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

yogeshsajanikar
Copy link
Contributor

The current implementation of Test STM Expr does not allow nested exceptions. This commit adds nested exception by treating few values as exception values (ImmValueInt 0) and (ImmValueUnit) as special values to bubble up the exception.

WIP: Also add ImmValueException to enable testing type checking.

yogeshsajanikar and others added 13 commits August 29, 2022 10:58
Add catch handler as branch to support catch
- Pass read to IOSim
- De-duplicate source code
- Add comments refering to STM semantics reference
- Remove redundancy between subbranches
- ImmValInt 0 is treated as an exception, and is the only value handled
as an exception. Otherwise the exception is rethrown.
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.

Add support for nested exception testing in Test/STM
1 participant