Documentation
¶
Overview ¶
Package sim is the deterministic simulator that gates spec 0004 (spec 0005). It runs the real Fold, Next, records, memory adapter and supervisor inside one synctest bubble, letting one parked call proceed at a time by seed, and checks 0004 D10's invariants after every step.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Seed uint64
Shape memory.Shape
Supervisors int
Unmatched model.UnmatchedPolicy
Steps int
// Quiet bounds the liveness phase (spec 0005 D7's K).
Quiet int
// StopAt ends a replay at this step, with the trace and a dump of the record and ground truth
// as they stand (spec 0005 D10); zero runs to the end.
StopAt int
// contains filtered or unexported fields
}
Config is what one seed runs.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package crashfs is the simulator's crash-model filesystem (spec 0005 D3): an afero.Fs over afero's in-memory filesystem that refuses what POSIX refuses, makes file data and directory entries durable only when they are synced, and models a process crash and a power cut.
|
Package crashfs is the simulator's crash-model filesystem (spec 0005 D3): an afero.Fs over afero's in-memory filesystem that refuses what POSIX refuses, makes file data and directory entries durable only when they are synced, and models a process crash and a power cut. |
|
Package lint checks the mechanical rules of spec 0005 D2 over the code on the simulated path: rule 1 (no goroutines started), rule 3 (no global random source, no package-level channel or WaitGroup), rule 4 (map ranges sorted or annotated) and rule 6's clauses on context.Background and context.WithoutCancel.
|
Package lint checks the mechanical rules of spec 0005 D2 over the code on the simulated path: rule 1 (no goroutines started), rule 3 (no global random source, no package-level channel or WaitGroup), rule 4 (map ranges sorted or annotated) and rule 6's clauses on context.Background and context.WithoutCancel. |
|
Package locktable is the simulator's lock table (spec 0005 D3): the file store's Locker, with one view per simulated process, so that the simulator decides whose locks a crash releases, can grant owner.lock to several supervisors at once, and can revoke it from a live holder.
|
Package locktable is the simulator's lock table (spec 0005 D3): the file store's Locker, with one view per simulated process, so that the simulator decides whose locks a crash releases, can grant owner.lock to several supervisors at once, and can revoke it from a live holder. |