Verification of Discrete Systems - 06 Flashcards

1
Q

What is the difference between validation and verification?

A

Validation focuses on whether the product being built is right for the customer’s requirements, whereas verification focuses on whether the product is being built correctly according to the product’s specifications.

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

What are the two different verification concepts and examples of each?

A

Informal methods:
* Code review or model inspection - Checking the specification by looking at the system
* Testing - Generation of input sequences for simulations or real tests
Formal methods:
* Automated theorem proving (using deduction)
* Model checking (using enumeration) - Exhaustive specification checking. Other than for testing, one can guarantee that all possible behaviors are considered.

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

What are the different types of tests setup?

A

SiL (Simulation in the loop) - Plant and controller simulated, HiL (Hardware in the loop) - Plant simulated and real controller and real test - Plant real and controller real.

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

What are different method of generation of test cases?

A

Manual generation: Ideally, test cases are manually generated by testers who are not developers.
Automatic generation: Randomized generation of inputs or generation of inputs, which maximizes a test metric (more difficult, but often more effective).
Most bugs are found early and rare faults are often undetected (formal methods), and various metrics measures the test progress.

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

What are the fundamentals for choosing metrics?

A
  • From simple to complex metrics.
  • A single metric is usually insufficient.
  • There is no possibility of rigorously comparing testing metrics with each other.
  • Test metrics make it possible to estimate the testing progress. However, there are no general guidelines on when to
    finish testing based on the metric values.
  • Achieving a full coverage (100%) of a test metric does not imply the correctness of a system. (see, e.g., code
    coverage).
  • Quality criteria:
    – Overhead for computing the metric
    – Effort to automatically generate inputs that improve the test metric
    – Effort to integrate the test metric into the test environment.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What the most common metrics for FSA?

A

The most common metrics are:
* state coverage
* transition coverage
* path coverage (limited path length)
This can be applied analogously to Petri nets and statecharts since they can be transformed into finite state automata.
One often applies abstraction techniques to reduce the number of states to reduce the number of generated tests.

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

What are some advantages and disadvantages of testing?

A

Advantages:
* Not much preparation required
* No specially trained personnel required
* Good cost-benefit-ratio when only the most severe bugs have to be found
* Test metrics give an indication of the maturity of the system.
Disadvantages:
* Correctness cannot be guaranteed
* Subtle bugs are very hard to find

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

How can a theorem be proven?

A

By deduction or by enumeration.

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

What are the advantages and disadvantages of interactive theorem proving?

A

Advantages:
* Formal method → correctness can be proven
* Theorem provers can handle many problem classes (e.g., countable infinite number of states)
* No state explosion as in model checking
Disadvantages:
* Requires experts
* A theorem prover might not terminate even if a proof exists → no proof that the system is incorrect
* No counterexample as in model checking

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

What is the principle of Model Checking?

A

Principle of Model Checking:
1. SW/HW artifact → automated model extraction → Kripke structure
2. textual specification → manual translation → temporal logic
3. model checking → yes or no plus counterexample

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

What is the accepted LTL syntax formula?

A

p| ¬ϕ∣ϕ1 ∨ ϕ2∣X(ϕ)∣ϕ1Uϕ2.

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

What is the accepted CTL syntax formula?

A

p| ¬ϕ∣ϕ1 ∨ ϕ2∣E(ϕ)∣A(ϕ)

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

What are the major specifications in temporal logic and what are the formulations?

A

Reachability: CTL: EF(ϕ)
Safety: CTL: AG(¬ϕ), LTL: G(¬ϕ) (duality with reachability)
Liveness: CTL: AF(ϕ) or AG(ϕ 1=> AF(ϕ1)), LTL: F(ϕ) or G(ϕ 1=> F(ϕ1))
Fairness: CTL: AG(AF(ϕ)) (unconditional), LTL: GF(ϕ) (unconditional), strong fairness GF(ϕ1) => GF(ϕ2) and wak fairness, FG(ϕ1) => GF(ϕ2)

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

Name two popular model checkers.

A

SPIN and NuSMV

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

What are the advantages and disadvantages of model checking?

A

Advantages:
* Formal method - correctness can be guaranteed
* No proof required
* Fast computation (compared to other methods)
* Produces counterexamples
Disadvantage: State explosion.

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