Skip to content

Commit 79a95f7

Browse files
author
Daniel Kroening
authored
Merge pull request #300 from theyoucheng/case-study
adjusted the command line options for the pid controller case study
2 parents 4fc6633 + 60e2e0e commit 79a95f7

File tree

2 files changed

+510
-6
lines changed

2 files changed

+510
-6
lines changed

doc/html-manual/cover.shtml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ To demonstrate the automatic test suite generation in CBMC,
149149
we call the following command and we are going to explain the command line options one by one.
150150
</p>
151151

152-
<pre><code>cbmc pid.c --cover mcdc --unwind 6 --trace --xml-ui
152+
<pre><code>cbmc pid.c --cover mcdc --unwind 6 --xml-ui
153153
</code></pre>
154154

155155
<p class="justified">
@@ -173,18 +173,22 @@ pprz >= (float)0 && pprz <= (float)(16 * 600) id="climb_pid_run.coverage.3"
173173

174174
<p class="justified">
175175
The "id" of each coverage goal is automatically assigned by CBMC. For every
176-
coverage goal, a trace (if there exists) of the program execution that
177-
satisfies such a goal is printed out in XML format, as the parameters
178-
<code>--trace --xml-ui</code> are given. Multiple coverage goals can share a
179-
trace, when the corresponding execution of the program satisfies all these
180-
goals at the same time. Each trace corresponds to a test case.
176+
coverage goal, a test suite (if there exists) that <!-- the program execution that-->
177+
satisfies such a goal is printed out in XML format, as the parameter
178+
<code>--xml-ui</code> is given. Multiple coverage goals can share a
179+
test suite, when the corresponding execution of the program satisfies all these
180+
goals at the same time. <!--Each trace corresponds to a test case.-->
181181
</p>
182182

183183
<p class="justified">
184184
In the end, the following test suites are automatically generated for testing the PID controller.
185185
A test suite consists of a sequence of input parameters that are
186186
passed to the PID function <code>climb_pid_run</code> at each loop iteration.
187187
For example, Test 1 covers the MC/DC goal with id="climb_pid_run.coverage.1".
188+
The complete output from CBMC is in
189+
<a href="pid_test_suites.xml">pid_test_suites.xml</a>, where every test suite and the coverage goals it is for
190+
are clearly described.
191+
188192
<pre><code>Test suite:
189193
Test 1.
190194
(iteration 1) desired_climb=-1.000000f, estimator_z_dot=1.000000f

0 commit comments

Comments
 (0)