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

Invalid intermediate code #249

Open
NeuralCoder3 opened this issue Jul 25, 2023 · 3 comments
Open

Invalid intermediate code #249

NeuralCoder3 opened this issue Jul 25, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@NeuralCoder3
Copy link
Collaborator

NeuralCoder3 commented Jul 25, 2023

When running a trivial example (lit/ret_argc) with -VVVV to print intermediate programs,
Thorin crashed with the error

thorin2/thorin/analyses/deptree.cpp:36: thorin::VarSet thorin::DepTree::run(thorin::Def*): Assertion `n && "Old var still around?"' failed.

The error does not occur with log level 3 or using --dump-recursive-

Repository: AnyDSL/thorin2
Branch: master

@NeuralCoder3 NeuralCoder3 added the bug Something isn't working label Jul 25, 2023
@NeuralCoder3
Copy link
Collaborator Author

To prevent such errors, we probably also want tests that take debug logging into account.

@leissa
Copy link
Member

leissa commented Jul 25, 2023

The output is still a mess. I hope I have in early autumn some time to pursue this link/cut tree thing in order to maintain a nesting structure under the hood. This would certainly help a lot with the output.

@leissa
Copy link
Member

leissa commented Mar 20, 2024

fixed in #269

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants