From c05a0dc1d61187b3ac95c56b0d660731946218fd Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Wed, 19 Sep 2018 11:03:52 +0100 Subject: Silence an uninitialized variable compiler warning (and a tiny formatting change) --- lib/Solver/Z3Solver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Solver') diff --git a/lib/Solver/Z3Solver.cpp b/lib/Solver/Z3Solver.cpp index 3eaa8c85..72a15c50 100644 --- a/lib/Solver/Z3Solver.cpp +++ b/lib/Solver/Z3Solver.cpp @@ -58,7 +58,7 @@ private: const std::vector *objects, std::vector > *values, bool &hasSolution); -bool validateZ3Model(::Z3_solver &theSolver, ::Z3_model &theModel); + bool validateZ3Model(::Z3_solver &theSolver, ::Z3_model &theModel); public: Z3SolverImpl(); @@ -210,7 +210,7 @@ char *Z3SolverImpl::getConstraintLog(const Query &query) { } bool Z3SolverImpl::computeTruth(const Query &query, bool &isValid) { - bool hasSolution; + bool hasSolution = false; // to remove compiler warning bool status = internalRunSolver(query, /*objects=*/NULL, /*values=*/NULL, hasSolution); isValid = !hasSolution; -- cgit 1.4.1