//===- WatchedLiteralsSolver.cpp --------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file defines a SAT solver implementation that can be used by dataflow // analyses. // //===----------------------------------------------------------------------===// #include <cassert> #include <vector> #include "clang/Analysis/FlowSensitive/CNFFormula.h" #include "clang/Analysis/FlowSensitive/Formula.h" #include "clang/Analysis/FlowSensitive/Solver.h" #include "clang/Analysis/FlowSensitive/WatchedLiteralsSolver.h" #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DenseSet.h" #include "llvm/ADT/STLExtras.h" namespace clang { namespace dataflow { namespace { class WatchedLiteralsSolverImpl { … }; } // namespace Solver::Result WatchedLiteralsSolver::solve(llvm::ArrayRef<const Formula *> Vals) { … } } // namespace dataflow } // namespace clang