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());
            }
        }
Beispiel #3
0
 public override void EmitOutcome(ProofOutcome outcome, IOutputResults output)
 {
     output.EmitOutcome(GetWitness(outcome), AddHintsForTheUser(outcome, "{0} of type {1}"), fixedMessages[(int)outcome], nameOfTypeOfArg);
 }
Beispiel #4
0
 public override void EmitOutcome(ProofOutcome outcome, IOutputResults output)
 {
     output.EmitOutcome(GetWitness(outcome), AddHintsForTheUser(outcome, "{0}"), FixedMessages(outcome));
 }
Beispiel #5
0
 public override void EmitOutcome(ProofOutcome outcome, IOutputResults output)
 {
     output.EmitOutcome(GetWitness(outcome), this.AddHintsForTheUser(outcome, "{0}"), fixedMessages[(int)outcome]);
 }
Beispiel #6
0
 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]);
                    }