C5 Flashcards

1
Q

simple paths

A

no node appears more than once, except possibly the first and last => no internal loops

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

prime path

A

A simple path that does not appear as a proper subpath of any other simple path

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

tour

A

a test path p tours a path q if q is a subpath of p

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

tour with sidetrips

A

A test path p tours subpath q with sidetrips iff every edge in q is also in p in the same order => can include a sidetrip if it comes back to the same node

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

tour with detours

A

A test path p tours subpath q with detours iff every edge in q is also in p in the same order => can include a detour from node n, if it comes back to the prime path at a successor of n

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

best effort touring

A
  • satisfy as many test requirements as possible without sidetrips
  • allow sidetrips to try and satisfy unsatisfied test requirements
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

DU pair

A

a pair of locations (l_i, l_j) such that a variable v is defined at l_i and used at l_j
NB: def before use in a loop does not count as DU pair

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

Def-clear

A

a path from l_i to l_j is def-clear with respect to variable v if v is not used along the path except l_i, that is v is not given another value on any of the other nodes or edges in the path

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

reach

A

if there is a def-clear path from l_i to l_j with respect to v, the def of v at l_i reaches the use at l_j

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

du-path

A

a simple path that is def-clear with respect to v from a def of v to a use of v

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

data flow test criteria

A
  1. we make sure every def reaches a use => all-defs coverage (ADC)
  2. make sure every def reaches all possible uses => all-uses coverage (AUC)
  3. cover all the paths between defs and uses => all-du-paths coverage (ADUPC)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly