This is an archive of the discontinued LLVM Phabricator instance.

[analyzer][NFC] Move overconstrained check from reAssume to assumeDualImpl
ClosedPublic

Authored by martong on May 31 2022, 8:52 AM.

Details

Summary

Depends on D126406. Checking of the overconstrained property is much
better suited here.

Diff Detail

Event Timeline

martong created this revision.May 31 2022, 8:52 AM
Herald added a project: Restricted Project. · View Herald Transcript
martong requested review of this revision.May 31 2022, 8:52 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 31 2022, 8:52 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

LGTM; measure performance implications.

clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h
117–121

Shouldn't you remove this as well? Check the friends.

martong marked an inline comment as done.Jun 1 2022, 5:35 AM
martong added inline comments.
clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h
117–121

No, it is the ConstraintManager which checks the overconstrained property (in assumeDualImpl).

martong marked an inline comment as done.Jun 1 2022, 7:37 AM

LGTM; measure performance implications.

Seems like there are no implications (or within the error margin).

steakhal accepted this revision.Jun 1 2022, 8:54 AM
This revision is now accepted and ready to land.Jun 1 2022, 8:54 AM
This revision was landed with ongoing or failed builds.Jun 2 2022, 2:41 AM
This revision was automatically updated to reflect the committed changes.