blob: 6ee3f3711e766fd5f07e5a2e07cd626258046d53 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// RUN: %clang %s -emit-llvm %O0opt -g -c -o %t.bc
// RUN: rm -rf %t.klee-out
// RUN: %klee --output-dir=%t.klee-out --external-call-warnings=none %t.bc 2>&1 | FileCheck --check-prefix=CHECK-NONE %s
// RUN: rm -rf %t.klee-out
// RUN: %klee --output-dir=%t.klee-out --external-call-warnings=once-per-function %t.bc 2>&1 | FileCheck --check-prefix=CHECK-ONCE %s
// RUN: rm -rf %t.klee-out
// RUN: %klee --output-dir=%t.klee-out --external-call-warnings=all %t.bc 2>&1 | FileCheck --check-prefix=CHECK-ALL %s
#include "klee/klee.h"
#include <stdio.h>
#include <stdlib.h>
int main() {
return abs(-5) + abs(6);
// CHECK-NONE-NOT: calling external
// CHECK-ONCE: calling external
// CHECK-ONCE-NOT: calling external
// CHECK-ALL: calling external
// CHECK-ALL: calling external
// CHECK-ALL-NOT: calling external
}
|