17#if !defined(__PORTABLE_PLATFORM__)
22#include "absl/log/check.h"
23#include "absl/strings/str_format.h"
24#include "absl/types/span.h"
31 if (output_ !=
nullptr) {
32#if !defined(__PORTABLE_PLATFORM__)
48void DratWriter::WriteClause(absl::Span<const Literal> clause) {
50 absl::StrAppendFormat(&buffer_,
"%d ",
literal.SignedValue());
53 if (buffer_.size() > 10000) {
54#if !defined(__PORTABLE_PLATFORM__)
bool Close()
Closes the file.
void DeleteClause(absl::Span< const Literal > clause)
void AddClause(absl::Span< const Literal > clause)
absl::Status WriteString(File *file, absl::string_view contents, Options options)
In SWIG mode, we don't want anything besides these top-level includes.