Ejemplo n.º 1
0
        public ExplorationState(Path path, CallSiteStack callSiteStack, SmtSolverHandler solverHandler)
        {
            Contract.Requires(path != null);
            Contract.Requires(solverHandler != null);

            this.Path          = path;
            this.CallSiteStack = callSiteStack;
            this.SolverHandler = solverHandler;
        }
Ejemplo n.º 2
0
        public SmtSolverHandler Clone()
        {
            var cloned = new SmtSolverHandler(this.contextHandler, this.smtSolver, this.pathConditionHandler);

            cloned.lastResult     = this.lastResult;
            cloned.LastResultKind = this.LastResultKind;

            // TODO: Clone the underlying SMT solver and path condition handler!
            // TODO: Clone the variable versions of the latter! (we need to make the overlay cloneable/enumerable)
            // TODO: Clone the symbolic heap!
            throw new NotImplementedException();
        }
Ejemplo n.º 3
0
        public void Merge(ExplorationState state, SmtSolverHandler solverHandler)
        {
            Contract.Requires(state != null);
            Contract.Requires(solverHandler != null);
            Contract.Requires(state.Path.Node == this.Path.Node);
            Contract.Requires(state.CallSiteStack.Equals(this.CallSiteStack));

            this.Path = new Path(
                this.Path.Preceeding.AddRange(state.Path.Preceeding),
                Math.Max(this.Path.Depth, state.Path.Depth),
                this.Path.Node,
                this.Path.LeadingEdges.AddRange(state.Path.LeadingEdges));
            this.SolverHandler = solverHandler;
        }
Ejemplo n.º 4
0
 public SolverSymbolicHeapContext(SmtSolverHandler owner)
 {
     this.owner = owner;
 }