Week 3: Promela II Flashcards

1
Q

In which two categories do the properties of LTL fall?

A
  • Safety properties
  • Liveness properties
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What do safety properties specify?

A

That something bad never happens

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What do liveness properties specify?

A

That something good eventually happens

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In which way are the Symbolic names (introduced through mtype) numbered?

A

In reverse order of their definition declarations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does the typedef declarator do?

A

Creates user-defined types

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the two rules for typedef?

A
  • They cannot be self-referential
  • They must be global
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is _pid?

A

It is a pre-defined, local, read-only variable of type pid that carries the unique ID of a process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the value of _pid of init?

A

0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the run primitive do?

A

Dynamically creates new instances of processes (defined using proctype) during the execution of the model.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does the assert statement accept as input?

A

An invariant

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is an invariant?

A

A condition that must remain true throughout the entire system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What happens when an invariant is evaluated as false?

A

The execution of the assert statement reports a violation of the invariant, and system execution terminates.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What needs to be done to ensure the invariant is interleaved with the execution of other statements from other processes?

A

The assert statement has to be entered in its own process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the advantage of placing the assert statement in its own process?

A

System-wide non-determinism

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the disadvantage of assertions?

A

They don’t check invariants exhaustively

How well did you know this?
1
Not at all
2
3
4
5
Perfectly