コード例 #1
0
        public Z3LineariserOptions(bool asTerm, Z3InstanceOptions opts, List <VCExprVar /*!>!*/> letVariables)
            : base(asTerm)
        {
            Contract.Requires(opts != null);
            Contract.Requires(cce.NonNullElements(letVariables));

            this.opts             = opts;
            this.LetVariablesAttr = letVariables;
        }
コード例 #2
0
        public Z3apiProverContext(Z3InstanceOptions opts, VCExpressionGenerator gen)
            : base(gen, new VCGenerationOptions(new List <string>()))
        {
            int timeout = opts.Timeout * 1000;

            config = new Config();
            config.SetParamValue("MODEL", "true");
            config.SetParamValue("MODEL_V2", "true");
            config.SetParamValue("MODEL_COMPLETION", "true");
            config.SetParamValue("MBQI", "false");
            config.SetParamValue("TYPE_CHECK", "true");
            if (0 <= timeout)
            {
                config.SetParamValue("SOFT_TIMEOUT", timeout.ToString());
            }

            if (0 <= CommandLineOptions.Clo.ProverCCLimit)
            {
                this.counterexamples = CommandLineOptions.Clo.ProverCCLimit;
            }
            if (CommandLineOptions.Clo.SimplifyLogFilePath != null)
            {
                logFilename = CommandLineOptions.Clo.SimplifyLogFilePath;
            }
            this.debugTraces = new List <string>();

            z3 = new Context(config);
            z3.SetPrintMode(PrintMode.Smtlib2Compliant);
            if (logFilename != null)
            {
#if true
                z3log = new StreamWriter(logFilename);
                //Z3Log.Open(logFilename);
#else
                z3.OpenLog(logFilename);
#endif
            }
            foreach (string tag in debugTraces)
            {
                z3.EnableDebugTrace(tag);
            }

            //this.z3log = null;
            this.tm    = new Z3TypeCachedBuilder(this);
            this.namer = new UniqueNamer();
        }
コード例 #3
0
 public Z3apiProcessTheoremProver(Z3InstanceOptions opts, DeclFreeProverContext ctxt)
 {
     this.options         = opts;
     this.context         = (Z3apiProverContext)ctxt;
     this.numAxiomsPushed = 0;
 }
コード例 #4
0
ファイル: ProverLayer.cs プロジェクト: qunyanm/boogie
    public Z3LineariserOptions(bool asTerm, Z3InstanceOptions opts, List<VCExprVar/*!>!*/> letVariables)
      : base(asTerm) {
      Contract.Requires(opts != null);
      Contract.Requires(cce.NonNullElements(letVariables));

      this.opts = opts;
      this.LetVariablesAttr = letVariables;
    }
コード例 #5
0
ファイル: ProverLayer.cs プロジェクト: qunyanm/boogie
 public Z3apiProcessTheoremProver(Z3InstanceOptions opts, DeclFreeProverContext ctxt)
 {
     this.options = opts;
     this.context = (Z3apiProverContext) ctxt;
     this.numAxiomsPushed = 0;
 }