checker-framework icon indicating copy to clipboard operation
checker-framework copied to clipboard

Boolean variables in dataflow

Open smillst opened this issue 1 year ago • 2 comments
trafficstars

This is a rough draft of the fix for #406. @jyoo980 can you see if this fixes the error in the case study? Fixes #406.

smillst avatar Jun 06 '24 19:06 smillst

Testing on the case study now.

On Jun 6, 2024, at 1:04 PM, Michael Ernst @.***> wrote:

@mernst approved this pull request.

LGTM

— Reply to this email directly, view it on GitHub https://github.com/typetools/checker-framework/pull/6661#pullrequestreview-2103103771, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZ3EEHANMZRUPQQEH5WXVTZGC6ELAVCNFSM6AAAAABI5LZLX2VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDCMBTGEYDGNZXGE. You are receiving this because you were mentioned.

jyoo980 avatar Jun 06 '24 20:06 jyoo980

@smillst @mernst It looks like this eliminates the need for inlining boolean expressions in the case study

jyoo980 avatar Jun 06 '24 20:06 jyoo980

This is a really cool PR! Is there any idea what the performance impact will be? In NullAway, local type inference is one of the most expensive parts of checking, and I imagine the same could be true with the Checker Framework. Might be worth doing some sanity checks on large programs to make sure this doesn't lead to a significant regression.

msridhar avatar Aug 19 '24 21:08 msridhar

There are bugs in this implementation that once fixed cause infinite recursion, so I'm closing this pull request in favor of https://github.com/typetools/checker-framework/pull/6797

smillst avatar Sep 12 '24 16:09 smillst