[klee-dev] newbie questions to klee: .err-file - klee_assert - div by zero

Esser, Michael michael.esser at berner-mattner.com
Thu Jun 26 12:35:33 BST 2014


Hi,

I'm new to klee and have some questions:

1.
If I execute a simple code I get the errors as expected but test*.*.err-file is empty.
What's wrong?

2.
I want to produce an error (or a test case) for the default path of a switch/case-statement like:
switch (x){
                case 1: return 0; break;
                default:
                               klee_assert(0);
}

There is no file like test*.assert.err.
What can I do?

3.
I want to check for division by zero.
What have I to code or to enable that the case is detected.
(It seems to that -check-div-zero is not enough)


Best regards,
Michael


[Logo Berner und Mattner]

Michael Eßer | Senior System Engineer | AUTOMOTIVE
Berner & Mattner Systemtechnik GmbH | Erwin-von-Kreibig-Straße 3 | 80807 München (Germany)
Tel.: +49 89 608090-417 | Fax: +49 89 60 98-182
Michael.Esser at berner-mattner.com <mailto:Michael.Esser at berner-mattner.com> | Infos: www.berner-mattner.com <http://www.berner-mattner.com/de/berner-mattner-home/unternehmen/index.html>



________________________________
Berner & Mattner Systemtechnik GmbH: Sitz der Gesellschaft | Corporate Headquarters: München
Registereintragung | Commercial Register: Amtsgericht München HRB 83252
Geschäftsführung | Management Board: Dr. Klaus Eder
-------------- next part --------------
HTML attachment scrubbed and removed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 4923 bytes
Desc: image001.png
URL: <http://mailman.ic.ac.uk/pipermail/klee-dev/attachments/20140626/19a0a94d/attachment.png>


More information about the klee-dev mailing list