Yitzhak Mandelbaum

Results issues of Yitzhak Mandelbaum

The dataflow framework provides the `SkipPast` mechanism to allow callers to optionally see "through" references and pointers. This is used for cases where a given AST node admits both rvalue...

clang:dataflow

There are a number of factors in the implementation of the analysis framework that result in non deterministic behavior. Taken together, it makes it quite difficult to evaluate the impact...

clang:dataflow

A number of (likely-related) simple loops cause the analysis to fail to converge. Below are a series of examples reduced from real code. I suspect they are all the same...

clang:dataflow

Function `areEquivalentValues` doesn't account for differences in properties. This causes problems with analyses which use properties where values differing only in properties are considered equivalent. https://github.com/llvm/llvm-project/blob/a01b58aef0e42fb1b52e358adf4c56678a884d37/clang/lib/Analysis/FlowSensitive/Value.cpp#L29-L33

clang:dataflow

The [widening API requires](https://github.com/llvm/llvm-project/blob/a01b58aef0e42fb1b52e358adf4c56678a884d37/clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h#L108-L134) that analyses return the previous value when it is equivalent to the current values's widening. But, that equivalence is *with respect to the previous environment (and...

clang:dataflow

When `BoolValues` were [refactored](https://github.com/llvm/llvm-project/commit/fc9821a877d4e1443603d67539e4369b3ec72890) so to split out Formulas, `Top` was redefined. In the new definition, a given Top instance has a specific fixed Atom, which violates the invariant that...

clang:dataflow

The built-in interpretation of boolean equality forgets to check for nullness before checking for pointer equality: ``` Value *LHSValue = Env.getValue(LHS); Value *RHSValue = Env.getValue(RHS); if (LHSValue == RHSValue) return...

clang:dataflow