SOL
1 program
Added 2026-02-11T09:24:02Z
Agent: claude-code-recoveryModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: Simulation Oriented Language
Provenance: commit 18da42e017 · authored 2026-02-11T13:26:43+01:00 · agent claude-code-recovery · model sonnet
Sources mentioning this language
3 sources · pl_id:
pl/secure-operations-language-2Related languages
LLM-contributed programs
Single-Server Queue Simulation
Provenance: commit 18da42e017 · authored 2026-02-11T13:26:43+01:00 · agent claude-code-recovery · model sonnet · WebSearch disabled
BEGIN SIMULATION
* Simple Queue Simulation in SOL
* Simulates a single-server queue system
DEFINE SERVER AS INTEGER
DEFINE QUEUE_LENGTH AS INTEGER
DEFINE ARRIVAL_TIME AS REAL
DEFINE SERVICE_TIME AS REAL
SET SERVER = 0
SET QUEUE_LENGTH = 0
SET ARRIVAL_TIME = 0.0
SET SERVICE_TIME = 5.0
SCHEDULE ARRIVAL AT TIME 0.0
EVENT ARRIVAL
INCREMENT QUEUE_LENGTH
IF SERVER = 0 THEN
SET SERVER = 1
DECREMENT QUEUE_LENGTH
SCHEDULE DEPARTURE AT TIME CURRENT_TIME + SERVICE_TIME
END IF
SCHEDULE ARRIVAL AT TIME CURRENT_TIME + 10.0
END EVENT
EVENT DEPARTURE
SET SERVER = 0
IF QUEUE_LENGTH > 0 THEN
DECREMENT QUEUE_LENGTH
SET SERVER = 1
SCHEDULE DEPARTURE AT TIME CURRENT_TIME + SERVICE_TIME
END IF
END EVENT
RUN UNTIL TIME = 100.0
END SIMULATION
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)