-
Notifications
You must be signed in to change notification settings - Fork 11
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: Fix nontrivial input port size support #133
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, one minor coment!
tests/compilation/test_compile.py
Outdated
@@ -141,3 +141,48 @@ def test_compile_errors(routine, expected_error, backend): | |||
compile_routine( | |||
routine, preprocessing_stages=[introduce_port_variables], backend=backend, skip_verification=True | |||
) | |||
|
|||
|
|||
def test_compilation_introduces_constraints_stemming_from_relation_between_port_sizes(backend): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's also worth adding a fun(N)
to make sure parsing functions also works in this context?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
Description
Fixes #127 by introducing relevant logic for handling non-trivial input port sizes depending on other ports.
Please verify that you have completed the following steps