From e18075c0b0aaf637b32a4bee54bff1adb6c218ee Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Mon, 20 Aug 2012 19:37:30 +0000 Subject: fixes for java bindings --- src/cvc4.i | 1 + src/expr/expr.i | 23 +++++++++++++++++++++++ src/expr/expr_manager.i | 3 --- src/util/Makefile.am | 1 + src/util/array_store_all.i | 6 ++++++ 5 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 src/util/array_store_all.i (limited to 'src') diff --git a/src/cvc4.i b/src/cvc4.i index bc9f5a5af..b13a555e6 100644 --- a/src/cvc4.i +++ b/src/cvc4.i @@ -103,6 +103,7 @@ using namespace CVC4; %include "util/bitvector.i" %include "util/subrange_bound.i" %include "util/array.i" +%include "util/array_store_all.i" %include "util/hash.i" %include "expr/type.i" diff --git a/src/expr/expr.i b/src/expr/expr.i index 9b6c55703..34f074a6d 100644 --- a/src/expr/expr.i +++ b/src/expr/expr.i @@ -30,3 +30,26 @@ namespace CVC4 { }/* CVC4 namespace */ %include "expr/expr.h" + +%template(getConstTypeConstant) CVC4::Expr::getConst; +%template(getConstArrayStoreAll) CVC4::Expr::getConst; +%template(getConstBitVectorSize) CVC4::Expr::getConst; +%template(getConstAscriptionType) CVC4::Expr::getConst; +%template(getConstBitVectorBitOf) CVC4::Expr::getConst; +%template(getConstSubrangeBounds) CVC4::Expr::getConst; +%template(getConstBitVectorRepeat) CVC4::Expr::getConst; +%template(getConstBitVectorExtract) CVC4::Expr::getConst; +%template(getConstBitVectorRotateLeft) CVC4::Expr::getConst; +%template(getConstBitVectorSignExtend) CVC4::Expr::getConst; +%template(getConstBitVectorZeroExtend) CVC4::Expr::getConst; +%template(getConstBitVectorRotateRight) CVC4::Expr::getConst; +%template(getConstUninterpretedConstant) CVC4::Expr::getConst; +%template(getConstKind) CVC4::Expr::getConst; +%template(getConstDatatype) CVC4::Expr::getConst; +%template(getConstRational) CVC4::Expr::getConst; +%template(getConstBitVector) CVC4::Expr::getConst; +%template(getConstPredicate) CVC4::Expr::getConst; +%template(getConstString) CVC4::Expr::getConst; +%template(getConstBoolean) CVC4::Expr::getConst; + +%include "expr/expr.h" diff --git a/src/expr/expr_manager.i b/src/expr/expr_manager.i index 178f00ccd..0d82c7aa8 100644 --- a/src/expr/expr_manager.i +++ b/src/expr/expr_manager.i @@ -17,9 +17,6 @@ %include "expr/expr_manager.h" -%template(mkConst) CVC4::ExprManager::mkConst< CVC4::Rational >; - - %template(mkConst) CVC4::ExprManager::mkConst; %template(mkConst) CVC4::ExprManager::mkConst; %template(mkConst) CVC4::ExprManager::mkConst; diff --git a/src/util/Makefile.am b/src/util/Makefile.am index 8b0b2164f..432e6ef26 100644 --- a/src/util/Makefile.am +++ b/src/util/Makefile.am @@ -170,6 +170,7 @@ EXTRA_DIST = \ exception.i \ language.i \ array.i \ + array_store_all.i \ ascription_type.i \ rational.i \ hash.i diff --git a/src/util/array_store_all.i b/src/util/array_store_all.i new file mode 100644 index 000000000..afc14d089 --- /dev/null +++ b/src/util/array_store_all.i @@ -0,0 +1,6 @@ +%{ +#include "util/array_store_all.h" +%} + +%include "expr/type.i" +%include "util/array_store_all.h" -- cgit v1.2.3