Exemplo n.º 1
0
        /// <summary>
        /// Visits the information value location.
        /// </summary>
        /// <param name="location">The location.</param>
        public void VisitInfoValueLocation(InfoValueLocation location)
        {
            MemoryEntry oldEntry = SnapshotDataUtils.GetMemoryEntry(snapshot, snapshot.CurrentData.Readonly, location.ContainingIndex);

            HashSet <Value> newValues = new HashSet <Value>();

            CollectionMemoryUtils.AddAll(newValues, oldEntry.PossibleValues);

            IEnumerable <Value> values = location.WriteValues(snapshot.MemoryAssistant, entry);

            newValues.Add(location.Value);

            snapshot.CurrentData.Writeable.SetMemoryEntry(location.ContainingIndex, snapshot.CreateMemoryEntry(newValues));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Visits the information value location.
 /// </summary>
 /// <param name="location">The location.</param>
 public void VisitInfoValueLocation(InfoValueLocation location)
 {
 }
Exemplo n.º 3
0
 /// <summary>
 /// Visits the information value location.
 /// </summary>
 /// <param name="location">The location.</param>
 public void VisitInfoValueLocation(InfoValueLocation location)
 {
     read(location.ContainingIndex);
 }