
Testing-Based Translation Validation of Generated Code 589
TABLE 20.2
Model Coverage Analysis
Technique or Measure IEC 61508 ISO 26262
SIL1 SIL2* SIL3 ASIL ASIL ASIL ASIL
ABCD
1a Decision coverage o ++ ++ + ++ ++ ++
1b Condition coverage o + + ++++
1c Modified condition o + + + + + ++
/decision coverage
2 Lookup table coverage o o + o o + +
Size type
double
int16
int16
int16
int16
double
double
double
Test inputs
Test unit (copied from dist_calc)
x1
distance
distance
1
2
int16
Boolean
distance_ok
distance_ok
y1
x2
y2
x1
y1
x2
y2
FIGURE 20.6
Example test vectors and test harness model.
resulting from requirements-based testing at the model level can be reused for equivalence
testing ...