[clang][dataflow] Refactor function that queries the solver for satisfiability checking.
authorWei Yi Tee <wyt@google.com>
Fri, 24 Jun 2022 22:02:13 +0000 (00:02 +0200)
committerDmitri Gribenko <gribozavr@gmail.com>
Fri, 24 Jun 2022 22:05:43 +0000 (00:05 +0200)
commit42a7ddb428c999229491b0effbb1a4059149fba8
tree2e14efe1b7eea706b8770ff9643a11e842700a2c
parent349fee08d53734ea6530a56b931afdf026b5528c
[clang][dataflow] Refactor function that queries the solver for satisfiability checking.

Given a set of `Constraints`, `querySolver` adds common background information across queries (`TrueVal` is always true and `FalseVal` is always false) and passes the query to the solver.

`checkUnsatisfiable` is a simple wrapper around `querySolver` for checking that the solver returns an unsatisfiable result.

Depends On D128519

Reviewed By: gribozavr2, xazax.hun

Differential Revision: https://reviews.llvm.org/D128520
clang/include/clang/Analysis/FlowSensitive/DataflowAnalysisContext.h
clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp