Yitzhak Mandelbaum

Results comments of Yitzhak Mandelbaum

Fixed in commit 390029be8946cac807e8fc978b9cf3790e7456cc.

Given @R2RT 's comments and the extensive performance improvements we've made to the framework and the entire rewriting of the core of the optional checker, I'm going to close this....

I'm surprised by it being intermittent. But, if I had to guess, I think this makes sense (to cause a crash at that point): on the "then" branch, n1 leaves...

Confirmed: https://github.com/llvm/llvm-project/blob/af5dd2706c845b8bea6ba9fd3e68c1ee982b01fa/clang/lib/Analysis/FlowSensitive/Transfer.cpp#L331-L352

When the underlying type is `bool`, we should create a fresh integer value.

> Though I'm not super familiar with dataflow analysis, I guess you mean we're lacking some necessary logic to handle boolean-to-integral casts. Right. We essentially ignore all (implicit) integral casts,...

Your code is right. But, it turns out, `bool` doesn't have a native (in)equality operator -- it just uses the int comparison. So, in the AST, ``` bool b1; bool...

We changed the CFG's RPO order to respect loop structure. Benchmarks indicate this resolves all known issues.

Can you please provide more information on the configuration you are using for clang-tidy? When I run this in godbolt, it works correctly: https://godbolt.org/z/n6PGevqrP And similarly with a version closer...

> However, I would also expect an assert to be considered in release mode as well, same applies for or __assume/[[assume]] in general. Sure, I meant whatever mode disables `assert`.