about summary refs log tree commit diff homepage
path: root/test/Feature/KleeStatsNoBr.c
blob: 45d48b7464c747ab3b300e7ca7f275426b28a0c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %clang %s -emit-llvm -g %O0opt -c -o %t.bc
// RUN: rm -rf %t.klee-out
// RUN: %klee --output-dir=%t.klee-out %t.bc 2> %t.log
// RUN: %klee-stats --print-columns 'BCov(%),Branches,FullBranches,PartialBranches' --table-format=csv %t.klee-out > %t.stats
// RUN: FileCheck -check-prefix=CHECK-STATS -input-file=%t.stats %s

int main(){
  int a = 42;
  a -= 42;
  return a;
}

// Check that there are no branches in stats but 100% coverage
// CHECK-STATS: BCov(%),Branches,FullBranches,PartialBranches
// CHECK-STATS: 100.00,0,0,0