• Austin Clements's avatar
    cmd/compile: derive len/cap relations in factsTable.update · 4816efac
    Austin Clements authored
    Currently, the prove pass derives implicit relations between len and
    cap in the code that adds branch conditions. This is fine right now
    because that's the only place we can encounter len and cap, but we're
    about to add a second way to add assertions to the facts table that
    can also produce facts involving len and cap.
    
    Prepare for this by moving the fact derivation from updateRestrictions
    (where it only applies on branches) to factsTable.update, which can
    derive these facts no matter where the root facts come from.
    
    Passes toolstash -cmp.
    
    Change-Id: If09692d9eb98ffaa93f4cfa58ed2d8ba0887c111
    Reviewed-on: https://go-review.googlesource.com/102602
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarDavid Chase <drchase@google.com>
    4816efac
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...