Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ abstract class RunSmvProcessor extends RunModelCheckerProcessorBase {
val interpreter = new NuxmvOutputInterpreter(processOutput, verificationContext.createCounterexamples)
val counterexample = interpreter.counterexamples.head
val passedSpec = interpreter.passedSpecs.head
if(counterexample !== null && property.matches(counterexample.spec)) {
val store = VariableStore.get(compilationContext.startEnvironment)
if(counterexample !== null && property.matches(counterexample.spec) && environment !== null) {
val store = VariableStore.get(environment)
property.updateTaskDescriptionAndNotify("Saving KTrace...")
val createCounterexampleWithOutputs = verificationContext.createCounterexamplesWithOutputs
val ktrace = counterexample.getKtrace(store, createCounterexampleWithOutputs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ class RunSpinProcessor extends RunModelCheckerProcessorBase {
property.updateTaskDescriptionAndNotify("Parsing model checker counterexample...")
val trailInterpreter = new SpinTrailInterpreter(trailOutput)
val counterexample = trailInterpreter.counterexample
if(counterexample !== null) {
val store = VariableStore.get(compilationContext.startEnvironment)
if(counterexample !== null && environment !== null) {
val store = VariableStore.get(environment)
property.updateTaskDescriptionAndNotify("Saving KTrace...")
val createCounterexampleWithOutputs = verificationContext.createCounterexamplesWithOutputs
val ktrace = counterexample.getKtrace(store, createCounterexampleWithOutputs)
Expand Down