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

Fix prove tests #40

Merged
merged 4 commits into from
Dec 16, 2024
Merged

Fix prove tests #40

merged 4 commits into from
Dec 16, 2024

Conversation

traiansf
Copy link
Member

@traiansf traiansf commented Dec 13, 2024

  • Fix (prove) tests (broken by refactoring <locals> to hold a List instead of a Map) so that make test passes
  • Add Makefile targets to (only) build specific targets

@traiansf traiansf self-assigned this Dec 13, 2024
@traiansf traiansf mentioned this pull request Dec 12, 2024
2 tasks
@traiansf traiansf force-pushed the dev/traiansf/fix-tests branch from 8f4241e to 593e621 Compare December 16, 2024 09:00
@traiansf traiansf marked this pull request as ready for review December 16, 2024 09:00
Comment on lines +283 to +288
rule (L1:List ListItem(X:KItem) _:List)[size(L1)] => X
[simplification]

rule (L1:List ListItem(_:KItem) L2:List)[size(L1) <- V] =>
L1:List ListItem(V) L2:List
[simplification]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the Haskell backend able to use these two rules?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it' using them for the <locals> and <mem> specs: https://github.com/Pi-Squared-Inc/wasm-semantics/pull/40/files#diff-56e769c3ddbacd55039dc6c309d8126d4f9d67c1ed9cbaccdf22ac284aa971ebR8

Unfortunately, not for the wrc-20 spec. I assume the issue is that while it works as an initial configuration, it cannot be matched as a final configuration; that is why the locals-loop spec also only works when the accessed local is the last in the list.

@traiansf traiansf merged commit 6bdc7e6 into master Dec 16, 2024
2 checks passed
@traiansf traiansf deleted the dev/traiansf/fix-tests branch December 16, 2024 14:18
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