Open gyk opened 1 week ago
To elaborate on the problem here a bit: there are empty closed terms in main
, so the underlying problem is similar to #1965.
set_option trace.compiler.ir.result true in
def main : IO Unit :=
IO.println s!"{myTree}"
[result]
def main._closed_1 : obj :=
let x_1 : obj := "";
ret x_1
def main._closed_2 : obj :=
⊥
def main._closed_3 : obj :=
let x_1 : obj := main._closed_2;
let x_2 : obj := main._closed_1;
let x_3 : obj := String.append x_1 x_2;
dec x_2;
ret x_3
...
Prerequisites
Please put an X between the brackets as you perform the following steps:
Description
My code
#eval
s to correct result, but running the executable built from it triggers a panic: "INTERNAL PANIC: unreachable code has been reached".Steps to Reproduce
lake new Tree
Edit the code:
lake build
Run the executable:
Versions
Lean 4.9.0, 4.12.0 (x86_64-w64-windows-gnu, commit dc2533473114, Release) Windows 11 23H2