Exemple #1
0
 public StatisticsLattice(Lattice /*!*/ lattice)
     : base(lattice.valueExprFactory)
 {
     Contract.Requires(lattice != null);
     this.lattice = lattice;
     // base(lattice.valueExprFactory);
 }
Exemple #2
0
        public static void Init(IExpressionDecoder <Variable, Expression> decoder, IExpressionEncoder <Variable, Expression> encoder)
        {
            linearfactory       = new LinearExpFactory <Expression>(decoder, encoder);
            propfactory         = new PropFactory <Expression>(decoder, encoder);
            UnderlyingPolyhedra = new AI.PolyhedraLattice(linearfactory, propfactory);

            UnderlyingPolyhedra.Validate();
        }
Exemple #3
0
 public LatticeQueryable(Lattice /*!*/ lattice, Lattice.Element /*!*/ element)
 {
     Contract.Requires(element != null);
     Contract.Requires(lattice != null);
     this.lattice = lattice;
     this.element = element;
     // base();
 }
Exemple #4
0
            public static Elt /*!*/ Bottom(ArrayList /*<Lattice>*//*!*/ lattices)
            {
                Contract.Requires(lattices != null);
                Contract.Ensures(Contract.Result <Elt>() != null);
                Elt multiValue = new Elt(lattices.Count, true);

                for (int i = 0; i < lattices.Count; i++)
                {
                    Lattice d = (Lattice /*!*/)cce.NonNull(lattices[i]);
                    multiValue[d.Index] = d.Bottom;
                }
                Debug.Assert(multiValue.IsValid);
                return(multiValue);
            }
Exemple #5
0
 public void AddLattice(Lattice lattice)
 {
     this.lattices.Add(lattice);
 }
Exemple #6
0
 public LatticeQueryable(Lattice/*!*/ lattice, Lattice.Element/*!*/ element) {
   Contract.Requires(element != null);
   Contract.Requires(lattice != null);
   this.lattice = lattice;
   this.element = element;
   // base();
 }
Exemple #7
0
 public StatisticsLattice(Lattice/*!*/ lattice)
   : base(lattice.valueExprFactory) {
   Contract.Requires(lattice != null);
   this.lattice = lattice;
   // base(lattice.valueExprFactory);
 }
Exemple #8
0
 public void AddLattice(Lattice lattice) {
   this.lattices.Add(lattice);
 }