Example #1
0
        public override void PostParse()
        {
            base.PostParse();

            switch (Solver)
            {
            case SolverKind.Z3:
                Z3.SetDefaultOptions(this);
                SolverArguments.Add("-smt2 -in");
                break;

            case SolverKind.CVC4:
                SolverArguments.Add(
                    "--lang=smt --no-strict-parsing --no-condense-function-values --incremental --produce-models");
                if (Logic == null)
                {
                    Logic = "ALL_SUPPORTED";
                }
                break;

            case SolverKind.YICES2:
                SolverArguments.Add("--incremental");
                if (Logic == null)
                {
                    Logic = "ALL";
                }
                break;
            }

            if (ProverName == null)
            {
                ProverName = Solver.ToString().ToLower();
            }
        }
 public override void PostParse()
 {
     base.PostParse();
     if (Solver == SolverKind.Z3)
     {
         Z3.SetupOptions(this);
     }
 }
Example #3
0
        public override void PostParse()
        {
            base.PostParse();

            string SolverBinaryName = null;

            switch (Solver)
            {
            case SolverKind.Z3:
                Z3.SetDefaultOptions(this);
                SolverArguments.Add("-smt2 -in");
                SolverBinaryName = Solver.ToString().ToLower();
                break;

            case SolverKind.CVC4:
                SolverArguments.Add(
                    "--lang=smt --no-strict-parsing --no-condense-function-values --incremental --produce-models");
                if (Logic == null)
                {
                    Logic = "ALL_SUPPORTED";
                }
                SolverBinaryName = Solver.ToString().ToLower();
                break;

            case SolverKind.YICES2:
                SolverArguments.Add("--incremental");
                if (Logic == null)
                {
                    Logic = "ALL";
                }
                SolverBinaryName = "yices-smt2";
                break;

            default:
                Contract.Assert(false);
                throw new cce.UnreachableException();
            }

            if (ProverName == null)
            {
                ProverName = SolverBinaryName;
            }
        }