Systems

A system binds a schema and agent instances together for analysis.

SPL
system Name {
    schema: SchemaName ;
    agents {
        AgentType(args) ;
        AgentType(args) * count ;
    }
    init {
        <expression> ;
    }
    sync {
        AgentA.transitionA <-> AgentB.transitionB ;
    }
    properties {
        propName : <expression> ;
    }
}

Parts#

The sections must appear in this order; every one but schema: is optional.

Known limitation
sync rules are parsed and checked for syntax, but the analyzer does not use them today.

Example#

SPL
type PhilState = { THINKING, HUNGRY, EATING } ;

schema DiningTable {
    attributes {
        numPhil : Int = 5 ;
        phil    : Array(PhilState, 5) ;
    }
}

system DiningPhilosophers {
    schema: DiningTable ;
    agents {
        Philosopher(i) * 5 ;
        Fork(i) * 5 ;
    }
    init {
        numPhil == 5 ;
    }
    sync {
        Philosopher.pickLeft <-> Fork.take ;
    }
    properties {
        mutualExclusion : forall (i : Int) in [0..numPhil) .
            !(phil[i] == EATING && phil[(i + 1) % numPhil] == EATING) ;
    }
}
↑ ↓ to moveEnter to openEsc to close