121 branch map ctor names undeclared branch

✓ Passing Passing: the compiler rejects this program as expected.

Code

input.k

Actual compiler output

error[KORU021]: tor 'divide' has no branch 'nosuchbranch' (declared branches are: ok, divzero)
  --> tests/regression/500_INTEGRATION_TESTING/510_NEGATIVE_TESTS/510_121_branch_map_ctor_names_undeclared_branch/input.k:34:0

❌ Compiler coordination error: Incomplete branch coverage
   (set KORU_BACKEND_TRACE=1 for the backend return trace)

Must fail at runtime with:

NOT_CONTAINS output_emitted.zig
CONTAINS KORU021
CONTAINS has no branch 'nosuchbranch'

Flows

subflow ~iszero click a branch to expand · @labels scroll to their anchor
if (b == 0)
subflow ~divide click a branch to expand · @labels scroll to their anchor
iszero (b)
flow ~divide click a branch to expand · @labels scroll to their anchor
divide (a: 84, b: 2)

Test Configuration

MUST_ERROR