blob: 45e7bc43721b0e66f0f70271da360de019dc601e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// RUN: %llvmgcc %s -emit-llvm -g -c -o %t2.bc
// RUN: %klee --exit-on-error --write-cov %t2.bc
// RUN: grep -c WriteCov.c:15 %T/klee-last/test000001.cov %T/klee-last/test000002.cov >%t3.txt
// RUN: grep -c WriteCov.c:17 %T/klee-last/test000001.cov %T/klee-last/test000002.cov >>%t3.txt
// RUN: grep klee-last/test000001.cov:0 %t3.txt
// RUN: grep klee-last/test000001.cov:1 %t3.txt
// RUN: grep klee-last/test000002.cov:0 %t3.txt
// RUN: grep klee-last/test000002.cov:1 %t3.txt
#include <assert.h>
#include <stdio.h>
int main() {
if (klee_range(0,2, "range")) {
assert(__LINE__ == 15); printf("__LINE__ = %d\n", __LINE__);
} else {
assert(__LINE__ == 17); printf("__LINE__ = %d\n", __LINE__);
}
return 0;
}
|