Esempio n. 1
0
 public void PrintSummary(VC.ConditionGeneration.Outcome outcome, string addInfo = null)
 {
     if (!this.outcomeReported)
     {
         this.outcomeReported = true;
         this.errorHandler.ReportOutcomeMethodSummary(this.name, this.tok, outcome, addInfo, this.startTime, this.proverWarnings);
     }
 }
Esempio n. 2
0
        public void ReportOutcomeMethodSummary(string methodName, IToken tok, VC.ConditionGeneration.Outcome outcome, string addInfo, double startTime, IEnumerable <string> proverWarnings)
        {
            if (outcome != VC.ConditionGeneration.Outcome.Correct)
            {
                VccCommandLineHost.IncreaseErrorCount();
            }
            Logger.Instance.LogMethodSummary(methodName, tok.ToLocation(), (Outcome)(int)outcome, addInfo, GetTime() - startTime);

            if (!commandLineOptions.RunTestSuite)
            {
                foreach (var proverWarning in proverWarnings)
                {
                    Logger.Instance.Warning("Prover warning: {0}", proverWarning);
                }
            }
        }