silver icon indicating copy to clipboard operation
silver copied to clipboard

Trigger generation may generate triggers which don't work at call site

Open viper-admin opened this issue 8 years ago • 2 comments

Created by @alexanderjsummers on 2016-10-18 17:53 Last updated on 2016-10-18 18:04

Trigger generation for quantifiers occurring in e.g. method contracts will decide which terms are valid in triggers based on the signatures with formal parameters. However, at call-site the back-ends will typically substitute actuals for formals. This substitution must happen in quantifier triggers too (otherwise we would generate nonsense terms which didn't match), but this might create terms which are not allowed in triggers.

viper-admin avatar Oct 18 '16 17:10 viper-admin

@alexanderjsummers commented on 2016-10-18 18:04

also affects resources\quantifiedpermissions\third_party\testHistogram.sil (at least, once choosing triggers for quantified permissions) - disabled for now

viper-admin avatar Oct 18 '16 18:10 viper-admin

@alexanderjsummers commented on 2016-10-19 10:59

https://github.com/viperproject/silver/issues/97 was marked as a duplicate of this issue.

viper-admin avatar Oct 19 '16 10:10 viper-admin