summaryrefslogtreecommitdiffstats
path: root/bfs.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-02-11 10:51:39 -0500
committerTavian Barnes <tavianator@tavianator.com>2017-02-11 10:56:12 -0500
commit2495dbb6960c1fc94809ea68ae5c5cca82ac0f0e (patch)
treefb841d2911e16d65ea9fa6f05431202ff59efa24 /bfs.h
parent6645c6b359af84fcf32881abd838f98929aa523a (diff)
downloadbfs-2495dbb6960c1fc94809ea68ae5c5cca82ac0f0e.tar.xz
Allow short-circuiting optimizations with non-pure operands
Diffstat (limited to 'bfs.h')
-rw-r--r--bfs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/bfs.h b/bfs.h
index 63766e7..b589def 100644
--- a/bfs.h
+++ b/bfs.h
@@ -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;