Skip to main content

SemantifyrSemantifyr

Semantifyr is a framework to declaratively define the semantics of engineering modeling languages. Currently it has frontends for the SysML v2 and Gamma languages.

part def Mission {
port commandPort: CommandPort;

part groundStation: GroundStation;
part spacecraft: Spacecraft;

bind commandPort = groundStation.commandPort;

flow from groundStation.spacecraftCommandPort to spacecraft.commandPort;
flow from spacecraft.dataPort to groundStation.dataPort;
}

verification def TransmissionCanStart {
subject mission: Mission;

objective {
verify requirement {
require constraint {
eventually(
isStateActive(mission.spacecraft.Behaviour.Communication.Transmitting)
)
}
}
}
}

A SysML v2 model after OpenMBEE's Simple Space Mission: a battery-limited satellite sending its data down to a ground station.

Approach

Instead of defining the semantics as a transpiler, Semantifyr defines the semantics in a semantic library. A frontend maps a model into a Semantifyr model on that library. Semantifyr then verifies the model using portfolios of its backends.

ModelFrontendSemantifyr modelSemantic libraryFormal modelBackendTheta, nuXmv,Spin, UppaalFormal traceSemantifyr traceTracerefinesrefinesrefinesrefinesModelFrontendSemantifyrmodelSemanticlibraryFormal modelBackendTheta, nuXmv, Spin, UppaalFormal traceSemantifyrtraceTracerefinesrefinesrefinesrefines

Frontends

The supported high-level languages.

See the frontends

Backends

Verification backends: Theta, nuXmv, Spin, and Uppaal.

See the backends

Learn

Reference and tutorials for the Semantifyr Language.

Go to Learn