Skip to content

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