From 661fba88fff0205ea258a1149907f2822458cd83 Mon Sep 17 00:00:00 2001 From: Frank Busse Date: Thu, 25 Jun 2020 21:35:25 +0100 Subject: introduce --rng-initial-seed= * move global theRNG into Executor * pass theRNG via ctor to searchers * remove some type warnings from RNG.cpp Fixes #1023. --- lib/Core/Executor.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/Core/Executor.h') diff --git a/lib/Core/Executor.h b/lib/Core/Executor.h index 31882cd4..25a874cd 100644 --- a/lib/Core/Executor.h +++ b/lib/Core/Executor.h @@ -18,6 +18,7 @@ #include "ExecutionState.h" #include "UserSearcher.h" +#include "klee/ADT/RNG.h" #include "klee/Core/Interpreter.h" #include "klee/Expr/ArrayCache.h" #include "klee/Expr/ArrayExprOptimizer.h" @@ -111,6 +112,9 @@ public: Unhandled }; + /// The random number generator. + RNG theRNG; + private: static const char *TerminateReasonNames[]; -- cgit 1.4.1