public override void EmitOutcome(ProofOutcome outcome, IOutputResults output) { Contract.Assume(output != null, "Should be a precondition"); var index = (int)outcome; if (index < 0 || index >= fixedMessagesWrite.Length) { return; } if (this.isWrite) { output.EmitOutcome(GetWitness(outcome), AddHintsForTheUser(outcome, "{0}"), fixedMessagesWrite[index]); } else { output.EmitOutcome(GetWitness(outcome), AddHintsForTheUser(outcome, "{0}"), fixedMessagesRead[index]); } }
public override void EmitOutcome(ProofOutcome outcome, IOutputResults output) { // For some reason the EmitOutcome for the other assertions is done externally if (this.IsConditionCheck) { this.PopulateWarningContextInternal(outcome); var witness = this.GetWitness(outcome); // new Witness(this.ID, WarningType.TestAlwaysEvaluatingToAConstant, ProofOutcome.Bottom, this.PC) output.EmitOutcome(witness, MessageString(), this.condition.ToString()); } }
public override void EmitOutcome(ProofOutcome outcome, IOutputResults output) { output.EmitOutcome(GetWitness(outcome), AddHintsForTheUser(outcome, "{0} of type {1}"), fixedMessages[(int)outcome], nameOfTypeOfArg); }
public override void EmitOutcome(ProofOutcome outcome, IOutputResults output) { output.EmitOutcome(GetWitness(outcome), AddHintsForTheUser(outcome, "{0}"), FixedMessages(outcome)); }
public override void EmitOutcome(ProofOutcome outcome, IOutputResults output) { output.EmitOutcome(GetWitness(outcome), this.AddHintsForTheUser(outcome, "{0}"), fixedMessages[(int)outcome]); }
public override void EmitOutcome(ProofOutcome outcome, IOutputResults output) { output.EmitOutcome(GetWitness(outcome), fixedMessages[(int)outcome]); }
public override void EmitOutcome(ProofOutcome outcome, IOutputResults output) { var dim = isMultidimensional ? string.Format(" (dimension {0})", dimension) : string.Empty; output.EmitOutcome(GetWitness(outcome), AddHintsForTheUser(outcome, "{0}{1}"), fixedMessages[(int)outcome], dim); }
public override void EmitOutcome(ProofOutcome outcome, IOutputResults output) { var witness = GetWitness(outcome); output.EmitOutcome(witness, AddHintsForTheUser(outcome, "{0}"), fixedMessages[(int)this.kind, (int)outcome]); }