about summary refs log tree commit diff homepage
path: root/tools/kleaver
diff options
context:
space:
mode:
Diffstat (limited to 'tools/kleaver')
-rw-r--r--tools/kleaver/main.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/tools/kleaver/main.cpp b/tools/kleaver/main.cpp
index 07baee24..fafe955f 100644
--- a/tools/kleaver/main.cpp
+++ b/tools/kleaver/main.cpp
@@ -13,7 +13,7 @@
 #include "klee/util/ExprPPrinter.h"
 #include "klee/util/ExprVisitor.h"
 
-#include "klee/util/ExprSMTLIBLetPrinter.h"
+#include "klee/util/ExprSMTLIBPrinter.h"
 
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/Support/CommandLine.h"
@@ -400,8 +400,8 @@ static bool printInputAsSMTLIBv2(const char *Filename,
 	if (!success)
 	return false;
 
-	ExprSMTLIBPrinter* printer = createSMTLIBPrinter();
-	printer->setOutput(llvm::outs());
+	ExprSMTLIBPrinter printer;
+	printer.setOutput(llvm::outs());
 
 	unsigned int queryNumber = 0;
 	//Loop over the declarations
@@ -426,12 +426,12 @@ static bool printInputAsSMTLIBv2(const char *Filename,
 			 */
 			ConstraintManager constraintM(QC->Constraints);
 			Query query(constraintM,QC->Query);
-			printer->setQuery(query);
+			printer.setQuery(query);
 
 			if(!QC->Objects.empty())
-				printer->setArrayValuesToGet(QC->Objects);
+				printer.setArrayValuesToGet(QC->Objects);
 
-			printer->generateOutput();
+			printer.generateOutput();
 
 
 			queryNumber++;
@@ -444,8 +444,6 @@ static bool printInputAsSMTLIBv2(const char *Filename,
 		delete *it;
 	delete P;
 
-	delete printer;
-
 	return true;
 }