Inheritance: Z3Object
示例#1
0
        /// <summary>
        /// Simplifies the goal.
        /// </summary>
        /// <remarks>Essentially invokes the `simplify' tactic on the goal.</remarks>
        public Goal Simplify(Params p = null)
        {
            Tactic      t   = Context.MkTactic("simplify");
            ApplyResult res = t.Apply(this, p);

            if (res.NumSubgoals == 0)
            {
                throw new Z3Exception("No subgoals");
            }
            else
            {
                return(res.Subgoals[0]);
            }
        }
示例#2
0
文件: Goal.cs 项目: LittlePetunia/Z3
        /// <summary>
        /// Simplifies the goal.
        /// </summary>
        /// <remarks>Essentially invokes the `simplify' tactic on the goal.</remarks>
        public Goal Simplify(Params p = null)
        {
            Tactic      t   = Context.MkTactic("simplify");
            ApplyResult res = t.Apply(this, p);

            if (res.NumSubgoals == 0)
            {
                return(Context.MkGoal());
            }
            else
            {
                return(res.Subgoals[0]);
            }
        }