From 2f9c04b09ac8dd81c85f46d3fd89903aafed7370 Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Mon, 24 Feb 2014 19:11:55 +0000 Subject: Improved DumpStatesOnHalt.c to make sure there is always more than one instruction in main(). --- test/Feature/DumpStatesOnHalt.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/Feature') diff --git a/test/Feature/DumpStatesOnHalt.c b/test/Feature/DumpStatesOnHalt.c index c65d5568..993fdb6a 100644 --- a/test/Feature/DumpStatesOnHalt.c +++ b/test/Feature/DumpStatesOnHalt.c @@ -2,8 +2,10 @@ // RUN: %klee --stop-after-n-instructions=1 --dump-states-on-halt=true %t1.bc 2>&1 | FileCheck %s // RUN: test -f %T/klee-last/test000001.ktest -int main() { - int x = 10; +int main(int argc, char** argv) { + int x = 1; + if (argc == 1) + x = 0; return x; } // CHECK: halting execution, dumping remaining states -- cgit 1.4.1