29.01.2014 Views

A CIL Tutorial - Department of Computer Science - ETH Zürich

A CIL Tutorial - Department of Computer Science - ETH Zürich

A CIL Tutorial - Department of Computer Science - ETH Zürich

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 15. AUTOMATED TEST GENERATION 126<br />

void (autotest foo)(int input a, int input b) {<br />

int c, d, e;<br />

c = a * b;<br />

d = a + b;<br />

e = c - d;<br />

if (e == 14862436) explode();<br />

if (d == 700) explode();<br />

return;<br />

}<br />

Figure 15.1: Example<br />

let a = a0 in<br />

let b = b0 in<br />

let c = a * b in<br />

let d = a + b in<br />

let e = c-d in<br />

(e != 14862436) &&<br />

(d != 700)<br />

Figure 15.2: Path Condition

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!