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 Test Printing Flag #171

Merged
merged 5 commits into from
Nov 22, 2023
Merged

Add Test Printing Flag #171

merged 5 commits into from
Nov 22, 2023

Conversation

agureev
Copy link
Collaborator

@agureev agureev commented Nov 3, 2023

Introduces --test flag using -t for binary usage. When used with
-p, given a compiled VampIR function of form def foo x1 ... xn = {body}; produces a test equality foo x1 ... xn = y; printed after
the entry function.

Previously a Lambda function taking natural number arguments `A1` to
`An` would be compiled to a circuit with arguments `x1` to `x(n+1)`
where argument `xi` in the circuit for i<(n+1) stands for argument
`A(n-i)` and `x(n+1)` stands as an unused variable.

Current channge omits the final variable and renames the rest, so
that the compiled circuit will have appropriate argument order and
type corresponding to the relevant STLC term.

Note that this changes how to input coproduct type circuit variables.

A
Adds a `library` flag which can be included while using Geb as a
binary to print the standard library alongside the compiled STLC or
Geb term.
Adds documentation for the new standard library flag.
Introduces `--test` flag using `-t` for binary usage. When used with
`-p`, given a compiled VampIR function of form `def foo x1 ... xn =
{body};` produces a test equality `foo x1 ... xn = y;` printed after
the entry function.
@mariari mariari merged commit c51e67b into main Nov 22, 2023
2 checks passed
@mariari mariari deleted the artem/test-flag branch November 22, 2023 11:09
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