Ejemplo n.º 1
0
        protected override Dictionary <string, FPIntegerInterval> Sample(State q)
        {
            Dictionary <string, FPIntegerInterval> result = new Dictionary <string, FPIntegerInterval>();
            Dictionary <string, DoubleInterval>    values = q.ToDictionary();

            foreach (var kvp in sample)
            {
                AST c = kvp.Key;
                FixedPointNumber fp = kvp.Value;
                var valueOfAST      = c.Eval(values);
                result.Add(fp.Expr, Measure(valueOfAST, fp.bits, fp.decimals));
            }
            return(result);
        }
Ejemplo n.º 2
0
 public override bool Eval(Dictionary <string, DoubleInterval> values)
 {
     return(lhs.Eval(values).right < rhs.Eval(values).left);
 }