Skip to content

Commit

Permalink
test: count paths with -dump-states-on-halt=false
Browse files Browse the repository at this point in the history
  • Loading branch information
251 authored and ccadar committed May 4, 2021
1 parent 4332106 commit 95f7f44
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/regression/2020-02-24-count-paths-nodump.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// ASAN fails because KLEE does not cleanup states with -dump-states-on-halt=false
// REQUIRES: not-asan
// RUN: %clang %s -emit-llvm %O0opt -g -c -o %t.bc
// RUN: rm -rf %t.klee-out
// RUN: %klee -dump-states-on-halt=false -max-instructions=1 -output-dir=%t.klee-out %t.bc 2>&1 | FileCheck %s

int main(int argc, char **argv) {
// just do something
int i = 42;
++i;
}

// CHECK: KLEE: done: completed paths = 0
// CHECK: KLEE: done: partially completed paths = 1

0 comments on commit 95f7f44

Please sign in to comment.