diff options
author | Dominik Maier <domenukk@gmail.com> | 2022-01-19 23:03:19 +0100 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2022-01-19 23:03:19 +0100 |
commit | 1d9d5936d953841d9244031271871d4225569b89 (patch) | |
tree | e83a8e94cedae2006d221f5c11b3bd96d6157158 /instrumentation/cmplog-instructions-pass.cc | |
parent | 7afad147d17a7e7bfb7fa3235187277056f2bae3 (diff) | |
parent | 550ba4d77294e61597a5259d00769c61281e0042 (diff) | |
download | afl++-1d9d5936d953841d9244031271871d4225569b89.tar.gz |
Merge remote-tracking branch 'origin/dev' into dev
Diffstat (limited to 'instrumentation/cmplog-instructions-pass.cc')
-rw-r--r-- | instrumentation/cmplog-instructions-pass.cc | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/instrumentation/cmplog-instructions-pass.cc b/instrumentation/cmplog-instructions-pass.cc index a0b386d5..310f5585 100644 --- a/instrumentation/cmplog-instructions-pass.cc +++ b/instrumentation/cmplog-instructions-pass.cc @@ -478,27 +478,28 @@ bool CmpLogInstructions::hookInstrs(Module &M) { */ if (is_fp) { -/* - ConstantFP *i0 = dyn_cast<ConstantFP>(op0); - ConstantFP *i1 = dyn_cast<ConstantFP>(op1); - // BUG FIXME TODO: this is null ... but why? - // fprintf(stderr, "%p %p\n", i0, i1); - if (i0) { + /* + ConstantFP *i0 = dyn_cast<ConstantFP>(op0); + ConstantFP *i1 = dyn_cast<ConstantFP>(op1); + // BUG FIXME TODO: this is null ... but why? + // fprintf(stderr, "%p %p\n", i0, i1); + if (i0) { - cur_val = (uint64_t)i0->getValue().convertToDouble(); - if (last_val0 && last_val0 == cur_val) { skip = 1; } - last_val0 = cur_val; + cur_val = (uint64_t)i0->getValue().convertToDouble(); + if (last_val0 && last_val0 == cur_val) { skip = 1; } + last_val0 = cur_val; - } + } - if (i1) { + if (i1) { - cur_val = (uint64_t)i1->getValue().convertToDouble(); - if (last_val1 && last_val1 == cur_val) { skip = 1; } - last_val1 = cur_val; + cur_val = (uint64_t)i1->getValue().convertToDouble(); + if (last_val1 && last_val1 == cur_val) { skip = 1; } + last_val1 = cur_val; - } -*/ + } + + */ } else { |