We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Running command hvm run out.hvm With code (Bend)
hvm run out.hvm
add = (@a @b (+ a b)) x = (add 1 1) main = [(x),(x)]
With code (HVM)
@List/Cons = (a (b ((@List/Cons/tag (a (b c))) c))) @List/Cons/tag = 1 @List/Nil = ((@List/Nil/tag a) a) @List/Nil/tag = 0 @add = ($([+] $(a b)) (a b)) @main = b & @List/Cons ~ (@x (a b)) & @List/Cons ~ (@x (@List/Nil a)) @x = a & @add ~ (1 (1 a))
Error:
[x, x]
bend run
((@List/Cons/tag (@x (((@List/Cons/tag (@x (@List/Nil v5))) v5) va))) va)
hvm run
Expected behavior:
[2, 2]
((@List/Cons/tag (2 (((@List/Cons/tag (2 (@List/Nil v10))) v10) v1e))) v1e)
Note: When you instead use
add = (@a @b (+ a b)) x * = (add 1 1) main = [(x *),(x *)]
everything is fine (as in the expected block above)
expected
OS: Windows WSL2 / macOS CPU: AMD Ryzen 7 5800X3D / Apple M1 Pro GPU: not used in this example Cuda Version: not used in this example
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Reproducing the behavior
Running command
hvm run out.hvm
With code (Bend)
With code (HVM)
Error:
[x, x]
(if ran viabend run
)((@List/Cons/tag (@x (((@List/Cons/tag (@x (@List/Nil v5))) v5) va))) va)
(if ran viahvm run
)Expected behavior:
[2, 2]
(if ran viabend run
)((@List/Cons/tag (2 (((@List/Cons/tag (2 (@List/Nil v10))) v10) v1e))) v1e)
(if ran viahvm run
)Note: When you instead use
everything is fine (as in the
expected
block above)System Settings
OS: Windows WSL2 / macOS
CPU: AMD Ryzen 7 5800X3D / Apple M1 Pro
GPU: not used in this example
Cuda Version: not used in this example
Additional context
No response
The text was updated successfully, but these errors were encountered: