]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
Bugfix. Couldn't create booleans via the interface. Thanks to Stephan Falke.
authortrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Tue, 27 Sep 2011 13:35:03 +0000 (13:35 +0000)
committertrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Tue, 27 Sep 2011 13:35:03 +0000 (13:35 +0000)
git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1399 e59a4935-1847-0410-ae03-e826735625c1

tests/c-api-tests/Makefile
tests/c-api-tests/stp-bool.c [new file with mode: 0644]

index b601f018f2ce6df0d5a94bf11cc4673929eccf20..d42f8973f49589fc08be330ad78713f6aa51e063 100644 (file)
@@ -14,7 +14,7 @@ else
 endif
 
 
-all: 0 1 2 3 4 5 6 7 8 9 10 11 11 12 13 14 15 16 17 18 19 20 21 22 23 24
+all: 0 1 2 3 4 5 6 7 8 9 10 11 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
        rm -rf *.out
 
 0:     
@@ -104,6 +104,10 @@ all: 0 1 2 3 4 5 6 7 8 9 10 11 11 12 13 14 15 16 17 18 19 20 21 22 23 24
          ../../lib/libstp.a if-check.c ../../lib/libstp.a
        ./a24.out
 
+25:
+       g++ $(CXXFLAGS) -o a26.out \
+         ../../lib/libstp.a stp-bool.c ../../lib/libstp.a
+       ./a26.out
 
 clean:
        rm -rf *~ *.out *.dSYM
diff --git a/tests/c-api-tests/stp-bool.c b/tests/c-api-tests/stp-bool.c
new file mode 100644 (file)
index 0000000..9ef18cf
--- /dev/null
@@ -0,0 +1,17 @@
+#include <stdio.h>
+#include "c_interface.h"
+
+int main ()
+{
+       VC vc;
+       int query_result;
+       int count = 0;
+
+       vc = vc_createValidityChecker ();
+
+
+       Type type64 = vc_boolType (vc);
+
+
+       vc_Destroy (vc);
+}