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__