Example #1
0
 public void PopState(int levels = 1)
 {
     for (int i = 0; i < levels; i++)
     {
         this.currentState = this.stateStack.Pop().ToBuilder();
     }
 }
Example #2
0
        private ArrayTheorySymbolicHeap(
            ISymbolicHeapContext context,
            Stack <HeapState> stateStack,
            HeapState currentState)
        {
            this.context      = context;
            this.currentState = currentState.ToBuilder();

            foreach (var state in stateStack.Reverse())
            {
                this.stateStack.Push(state);
            }
        }
Example #3
0
 public ArrayTheorySymbolicHeap(ISymbolicHeapContext context)
 {
     this.context      = context;
     this.currentState = HeapState.BasicState.ToBuilder();
 }