about summary refs log tree commit diff homepage
path: root/test/Feature/SeedConcretizeFP.c
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2023-11-14 15:06:06 +0000
committerMartinNowack <2443641+MartinNowack@users.noreply.github.com>2024-01-30 17:30:11 +0000
commit3e006dbfacd06e12818d97ae5aab1960324b27f9 (patch)
tree73337291c3dd372e11b0ebf03ceabe23c6cc4030 /test/Feature/SeedConcretizeFP.c
parent3f65d6e9e41b5a5b458fb4642d8ac5bf684f3bc7 (diff)
downloadklee-3e006dbfacd06e12818d97ae5aab1960324b27f9.tar.gz
Add checks to the seed concretization tests about the expected number of queries
Diffstat (limited to 'test/Feature/SeedConcretizeFP.c')
-rw-r--r--test/Feature/SeedConcretizeFP.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Feature/SeedConcretizeFP.c b/test/Feature/SeedConcretizeFP.c
index bc5246ad..bde6b329 100644
--- a/test/Feature/SeedConcretizeFP.c
+++ b/test/Feature/SeedConcretizeFP.c
@@ -6,6 +6,7 @@
 
 // RUN: rm -rf %t.klee-out-2
 // RUN: %klee --exit-on-error --output-dir=%t.klee-out-2 --seed-file %t.klee-out/test000001.ktest %t.bc 2>&1 | FileCheck %s
+// RUN: %klee-stats --print-columns 'SolverQueries' --table-format=csv %t.klee-out-2 | FileCheck --check-prefix=CHECK-STATS %s
 
 #include "klee/klee.h"
 
@@ -24,4 +25,7 @@ int main() {
   double d = i;
   // CHECK: concretizing (reason: floating point)
   assert((unsigned) d == 12345678);
+
+  // CHECK-STATS: 1
+  // This one query involves the constraint that i == 12345678
 }