[PATCH] D130522: [clang][dataflow] Fix SAT solver crashes on `X ^ X` and `X v X`
Dmitri Gribenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 25 14:53:52 PDT 2022
gribozavr created this revision.
Herald added subscribers: martong, tschuett, xazax.hun.
Herald added a reviewer: NoQ.
Herald added a project: All.
gribozavr requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
BooleanFormula::addClause has an invariant that a clause has no duplicated
literals. When the solver was desugaring a formula into CNF clauses, it
could construct a clause with such duplicated literals in two cases.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D130522
Files:
clang/lib/Analysis/FlowSensitive/WatchedLiteralsSolver.cpp
clang/unittests/Analysis/FlowSensitive/SolverTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130522.447483.patch
Type: text/x-patch
Size: 5226 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220725/7d01cc95/attachment.bin>
More information about the cfe-commits
mailing list