Skip to content
docs
Arxo ↗

LDC-E1311 — Procedure without exactly one initial state

For LLMs5 sections

Every procedure starts somewhere exactly once: one of its states must be marked initial, and marking two splits the start the transitions cannot follow. A procedure with no initial state — or with more than one — has no single entry point, so the compiler stops at the procedure name and counts what it found.

The repair is to mark exactly one state initial. The transitions then read from a start that exists and is unique.

Arxo Law
language "law.core" version "0.2";
package demo.diagnostics version "0.1.0";
namespace "urn:law:demo:diagnostics";
entity Tenant;
procedure Review(t: Tenant) {
state Open;
state Closed terminal;
}
Arxo Law
language "law.core" version "0.2";
package demo.diagnostics version "0.1.0";
namespace "urn:law:demo:diagnostics";
entity Tenant;
procedure Review(t: Tenant) {
state Open initial;
state Closed terminal;
}

The engine reports this in its own wording:

Output
example.law:6:11: error LDC-E1311: procedure "Review": exactly one state must be `initial` (§160), declared 0

Documentation for Arxo. Writings — blog.arxo.io.

Anonymous visit counts on stats.arxo.io, no cookies.