diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-09-17 18:07:58 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-09-17 18:07:58 -0700 |
commit | 631428faa07b5e6d828228042e003a4384e349c7 (patch) | |
tree | f78db75cdc5b65e8747f7ff6c7022d3b50d6305b /gencode.h | |
parent | d7bdf180b158a11d116bb8a77674200e72baff44 (diff) |
Make it clearer where we're testing whether a value is unknown.
Add a #define of VAL_UNKNOWN for 0, and compare val[i] values against
that.
Diffstat (limited to 'gencode.h')
-rw-r--r-- | gencode.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -266,6 +266,11 @@ struct block { int val[N_ATOMS]; }; +/* + * A value of 0 for val[i] means the value is unknown. + */ +#define VAL_UNKNOWN 0 + struct arth { struct block *b; /* protocol checks */ struct slist *s; /* stmt list */ |