public void PrepareSvm()
        {
            Trace.Listeners.Add(new DumpStackTraceListener());

            var ci = new CultureInfo("en-GB")
            {
                NumberFormat =
                {
                    PositiveInfinitySymbol = "Infinity",
                    NegativeInfinitySymbol = "-Infinity"
                }
            };

            Thread.CurrentThread.CurrentCulture = ci;

            var svm = new SVM(new ILInterpreter());

            // SVM.ConfigureSimplifier(new Z3Simplifier()); can be used to enable Z3-based simplification (not recommended)
            svm.ConfigureSolver(new SmtSolverWrapper <Microsoft.Z3.AST>(new Z3Solver()), new TypeSolver());
            TestSvmAttribute.SetUpSVM(svm);
        }
예제 #2
0
        public void PrepareSvm()
        {
            Trace.Listeners.Add(new DumpStackTraceListener());

            var ci = new CultureInfo("en-GB")
            {
                NumberFormat =
                {
                    PositiveInfinitySymbol = "Infinity",
                    NegativeInfinitySymbol = "-Infinity"
                }
            };

            Thread.CurrentThread.CurrentCulture = ci;

            // var svm = new SVM(new VSharp.Analyzer.StepInterpreter());
            // var svm = new SVM(new MethodInterpreter(new MethodSearcher()));
            Logger.ConfigureWriter(TestContext.Progress);
            var svm = new SVM(new MethodInterpreter(new ExceptionsExplorationSearcher()));

            svm.ConfigureSolver();
            // SVM.ConfigureSimplifier(new Z3Simplifier()); can be used to enable Z3-based simplification (not recommended)
            TestSvmAttribute.SetUpSVM(svm);
        }