18 #include "absl/strings/str_format.h" 20 #if !defined(__PORTABLE_PLATFORM__) 22 #endif // !__PORTABLE_PLATFORM__ 23 #include "absl/status/status.h" 29 if (output_ !=
nullptr) {
30 #if !defined(__PORTABLE_PLATFORM__) 33 #endif // !__PORTABLE_PLATFORM__ 46 void DratWriter::WriteClause(absl::Span<const Literal> clause) {
48 absl::StrAppendFormat(&buffer_,
"%d ",
literal.SignedValue());
51 if (buffer_.size() > 10000) {
52 #if !defined(__PORTABLE_PLATFORM__) 54 #endif // !__PORTABLE_PLATFORM__
void DeleteClause(absl::Span< const Literal > clause)
Collection of objects used to extend the Constraint Solver library.
void AddClause(absl::Span< const Literal > clause)
absl::Status WriteString(File *file, const absl::string_view &contents, int flags)