implements PR-O3.1

This commit is contained in:
2026-03-24 13:42:27 +00:00
parent ea27561e65
commit a38fedc591
7 changed files with 251 additions and 1 deletions
@@ -79,6 +79,33 @@ class IRBackendExecutableContractTest {
0));
}
@Test
void jumpAndLabelContractMustRequireNames() {
assertThrows(IllegalArgumentException.class, () -> new IRBackendExecutableFunction.Instruction(
IRBackendExecutableFunction.InstructionKind.LABEL,
"",
"",
null,
null,
"",
"",
null,
null,
Span.none()));
assertThrows(IllegalArgumentException.class, () -> new IRBackendExecutableFunction.Instruction(
IRBackendExecutableFunction.InstructionKind.JMP,
"",
"",
null,
null,
"",
"",
null,
null,
Span.none()));
}
@Test
void aggregatorMustPreserveExecutableFunctionOrderDeterministically() {
final var fileA = new IRBackendFile(