This is an archive of the discontinued LLVM Phabricator instance.

[clang][dataflow] Add function to `WatchedLiteralsSolver` that reports whether the iteration limit has been reached.
ClosedPublic

Authored by ymandel on Jul 18 2023, 1:34 PM.

Details

Summary

This change provides a centralized record of whether the solver is
"exhausted". In general, once the solver is exhausted, further uses do not
produce meaningful conclusions. Clients can use this information, for example,
to choose to discard all results based on the solver, instead of trying to
distinguish those reached before the limit was reached. Providing it at in the
solver avoids the need to propagate it from each callsite to the client of the
solver.

Diff Detail

Event Timeline

ymandel created this revision.Jul 18 2023, 1:34 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: martong. · View Herald Transcript
ymandel requested review of this revision.Jul 18 2023, 1:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2023, 1:34 PM
xazax.hun accepted this revision.Jul 18 2023, 2:21 PM
This revision is now accepted and ready to land.Jul 18 2023, 2:21 PM
This revision was landed with ongoing or failed builds.Jul 18 2023, 2:44 PM
This revision was automatically updated to reflect the committed changes.