-
Notifications
You must be signed in to change notification settings - Fork 26
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
ivy_to_cpp
generates invalid C++
#57
Comments
I found a smaller example that produces the exact same issue.
This seems like a very subtle bug. The order in which |
For reference, my Ivy version is |
For future reference: one workaround I found is to use |
I found a similar error in my code-example, and I've raised it in #60 . Could you please elaborate upon the work-around that you identified? How are you using |
@prpr2770 Instead of |
I ran
ivy_to_cpp target=test isolate=executable_runner build=false executable.ivy
for the following ivy codeand tried to compile it using
clang++ -c -O2 -g -std=c++17 -pthread -I /home/hidenori/ivy/ivy/include -o executable.o executable.cpp
.However, this failed with
It looks like Ivy is confused about the arity of the relation
voted
. For some reason, as denoted in comments, removing parts of the code makes the bug disappear.The text was updated successfully, but these errors were encountered: