Skip to content

Commit 6266a20

Browse files
committed
Added the test suite for unwinding the loop 6 times in PID case study.
1 parent cf085a8 commit 6266a20

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

doc/html-manual/cover.shtml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ is plotted in the Figure below.
5353

5454
</center>
5555

56-
<pre><code class="c numbered">01: // CONSTANTS:
56+
<pre><code class="c numbered">01: // CONSTANTS:
5757
02: #define MAX_CLIMB_SUM_ERR 10
5858
03: #define MAX_CLIMB 1
5959
04:
@@ -187,11 +187,10 @@ T3: (desired_climb=0.000000f, estimator_z_dot=1.000000f)
187187

188188
<p class="justified">
189189
The option <code>--unwind 6</code> unwinds the loop inside the main
190-
function body six times. In order to achieve the complete coverage on the instrumented goals,
191-
the loop must be unwound sufficient enough times.
192-
For example, the PID function <code>climb_pid_run</code> needs to be called at
193-
least six times for evaluating the condition
194-
<code>climb_sum_err>MAX_CLIMB_SUM_ERR</code> in line 48 to <em>true</em>.
190+
function body six times. In order to achieve the complete coverage on all the instrumented goals
191+
in the PID function <code>climb_pid_run</code>, the loop must be unwound sufficient enough times.
192+
For example, <code>climb_pid_run</code> needs to be called at least six times for evaluating the
193+
condition <code>climb_sum_err>MAX_CLIMB_SUM_ERR</code> in line 48 to <em>true</em>.
195194
This corresponds to the test suite below.
196195
<pre><code>(desired_climb=-1.000000f, estimator_z_dot=1.000000f);
197196
(desired_climb=-1.000000f, estimator_z_dot=0.000000f);

0 commit comments

Comments
 (0)