Skip to content

anormal revise #1

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

Merged
merged 4 commits into from
Oct 3, 2024
Merged

anormal revise #1

merged 4 commits into from
Oct 3, 2024

Conversation

y-tak6
Copy link
Contributor

@y-tak6 y-tak6 commented Aug 8, 2024

To test,

  1. make .ml file to test in src directory.
  2. remove comment out on print_endline (string_of_yul yul_code); in the function backend of src/ocamyul.ml.
  3. run dune exec ocamyulc src/<filename>.ml and check the printed code.

new syntax
if expression

  • We can use in the right-hand side of let (let x = if ... in ...) and in the last of let-binding sequences (let x = ... in if ...).
  • We can use in sequential executions ((if ...); ...), but even if this case we cannot omit else.

Example
if true then SInt 1 + SInt 1 + SInt 1 else let x = SInt 1 in x + x

@yoshihiro503 yoshihiro503 requested a review from mir-ikbch August 14, 2024 11:27
@mir-ikbch mir-ikbch merged commit 34898f4 into proof-ninja:main Oct 3, 2024
4 checks passed
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