diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2017-02-11 10:51:39 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2017-02-11 10:56:12 -0500 |
commit | 2495dbb6960c1fc94809ea68ae5c5cca82ac0f0e (patch) | |
tree | fb841d2911e16d65ea9fa6f05431202ff59efa24 /bfs.h | |
parent | 6645c6b359af84fcf32881abd838f98929aa523a (diff) | |
download | bfs-2495dbb6960c1fc94809ea68ae5c5cca82ac0f0e.tar.xz |
Allow short-circuiting optimizations with non-pure operands
Diffstat (limited to 'bfs.h')
-rw-r--r-- | bfs.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -202,6 +202,10 @@ struct expr { /** Whether this expression has no side effects. */ bool pure; + /** Whether this expression always evaluates to true. */ + bool always_true; + /** Whether this expression always evaluates to false. */ + bool always_false; /** Number of times this predicate was executed. */ size_t evaluations; |