thorin2 icon indicating copy to clipboard operation
thorin2 copied to clipboard

Invalid intermediate code

Open NeuralCoder3 opened this issue 1 year ago • 3 comments

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 avatar Jul 25 '23 13:07 NeuralCoder3

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

NeuralCoder3 avatar Jul 25 '23 13:07 NeuralCoder3

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 avatar Jul 25 '23 15:07 leissa

fixed in #269

leissa avatar Mar 20 '24 21:03 leissa