245 indexed read in plural envelope and nested

✓ Passing This code compiles and runs correctly.

Code

input.k

Supporting Files

a_cs_equiv.deps.json
a_cs_equiv.runtimeconfig.json
actual.cs.txt
koru.csproj
obj/Debug/net8.0/koru.AssemblyInfo.cs
obj/Debug/net8.0/koru.AssemblyInfoInputs.cache
obj/Debug/net8.0/koru.GeneratedMSBuildEditorConfig.editorconfig
obj/Debug/net8.0/koru.csproj.CoreCompileInputs.cache
obj/Debug/net8.0/koru.csproj.FileListAbsolute.txt
obj/Debug/net8.0/koru.genruntimeconfig.cache
obj/Debug/net8.0/koru.sourcelink.json
obj/koru.csproj.nuget.dgspec.json
obj/koru.csproj.nuget.g.props
obj/koru.csproj.nuget.g.targets
obj/project.assets.json
obj/project.nuget.cache
output_emitted.cs

Actual

hop1 30 hop2 20 hop3 10

Expected output

✓ Zig✓ C#
hop1 30 hop2 20 hop3 10

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (cells, capacity: 8, source: v: i64, next: -1[i64])
flow ~new click a branch to expand · @labels scroll to their anchor
new (head, source: h: -1[i64])
flow ~new click a branch to expand · @labels scroll to their anchor
new (probe, source: v1: 0[i64], v2: 0[i64], v3: 0[i64])
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (cells, source: v: 10, next: -1)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (cells, source: v: 20, next: head.h)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (cells, source: v: 30, next: head.h)
flow ~stored click a branch to expand · @labels scroll to their anchor
stored (source: probe.v1: cells[head.h].v, probe.v2: cells[cells[head.h].next].v)
flow ~stored click a branch to expand · @labels scroll to their anchor
stored (source: probe.v3: cells[cells[cells[head.h].next].next].v)
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "hop1 {{ probe.v1:d }} hop2 {{ probe.v2:d }} hop3 {{ probe.v3:d }}")

Test Configuration

MUST_RUN LANGUAGES: zig cs