18 #include "absl/strings/str_format.h" 20 #if !defined(__PORTABLE_PLATFORM__) 21 #endif // !__PORTABLE_PLATFORM__ 22 #include "absl/status/status.h" 28 if (output_ !=
nullptr) {
29 #if !defined(__PORTABLE_PLATFORM__) 32 #endif // !__PORTABLE_PLATFORM__ 45 void DratWriter::WriteClause(absl::Span<const Literal> clause) {
47 absl::StrAppendFormat(&buffer_,
"%d ",
literal.SignedValue());
50 if (buffer_.size() > 10000) {
51 #if !defined(__PORTABLE_PLATFORM__) 53 #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)