Esempio n. 1
0
        private void CopyTriggersFromTemplate(VccAssertStatement template)
        {
            IEnumerable <IEnumerable <Expression> > /*?*/ triggers = template.Compilation.ContractProvider.GetTriggersFor(template);

            if (triggers != null)
            {
                IEnumerable <IEnumerable <Expression> > copiedTriggers = CopyTriggers(triggers, this.ContainingBlock);
                this.Compilation.ContractProvider.AssociateTriggersWithQuantifier(this, copiedTriggers);
            }
        }
Esempio n. 2
0
        public override Statement MakeCopyFor(BlockStatement containingBlock)
        {
            if (this.ContainingBlock == containingBlock)
            {
                return(this);
            }
            var result = new VccAssertStatement(containingBlock, this);

            result.CopyTriggersFromTemplate(this);
            return(result);
        }
Esempio n. 3
0
 private void CopyTriggersFromTemplate(VccAssertStatement template)
 {
     IEnumerable<IEnumerable<Expression>>/*?*/ triggers = template.Compilation.ContractProvider.GetTriggersFor(template);
       if (triggers != null) {
     IEnumerable<IEnumerable<Expression>> copiedTriggers = CopyTriggers(triggers, this.ContainingBlock);
     this.Compilation.ContractProvider.AssociateTriggersWithQuantifier(this, copiedTriggers);
       }
 }
Esempio n. 4
0
 public override Statement MakeCopyFor(BlockStatement containingBlock)
 {
     if (this.ContainingBlock == containingBlock) return this;
       var result = new VccAssertStatement(containingBlock, this);
       result.CopyTriggersFromTemplate(this);
       return result;
 }
Esempio n. 5
0
 public VccAssertStatement(BlockStatement containingBlock, VccAssertStatement template)
     : base(containingBlock, template)
 {
 }
Esempio n. 6
0
 public VccAssertStatement(BlockStatement containingBlock, VccAssertStatement template)
     : base(containingBlock, template)
 {
 }