From bed8d4a027c635a146911a2ce973046f02a8e719 Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Sun, 26 Apr 2015 12:57:16 +0100 Subject: Try to fix the emission of invalid SMT-LIBv2 queries when Boogie has a variable that begins with a ``.``. This was't an issue for Z3 which ignores this but CVC4 is stricter and will emit an error --- Test/prover/usedot.bpl | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Test/prover/usedot.bpl (limited to 'Test/prover') diff --git a/Test/prover/usedot.bpl b/Test/prover/usedot.bpl new file mode 100644 index 00000000..5815236e --- /dev/null +++ b/Test/prover/usedot.bpl @@ -0,0 +1,9 @@ +// RUN: %boogie -typeEncoding:m -proverLog:"%t.smt2" "%s" +// RUN: %OutputCheck "%s" --file-to-check="%t.smt2" +procedure foo() { + // . is an illegal starting character in SMT-LIBv2 + // so test that we don't emit it as a symbol name. + // CHECK-L:(declare-fun q@.x () Int) + var .x:int; + assert .x == 0; +} -- cgit v1.2.3