From: Andres Noetzli Date: Tue, 15 Sep 2020 02:09:03 +0000 (-0700) Subject: Fix ABC build (#5061) X-Git-Tag: cvc5-1.0.0~2865 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1e1b51f5ad91bac3911a41b2ef5a852f89568aaa;p=cvc5.git Fix ABC build (#5061) For some reason, our ABC build was including cnf_stream.h in an extern "C" block instead of outside of it, which made the build fail because the header indirectly includes cdqueue.h, which uses templates. This change is older (e9bfbb2) but only started causing problems with our nightly builds recently. --- diff --git a/src/theory/bv/bitblast/aig_bitblaster.cpp b/src/theory/bv/bitblast/aig_bitblaster.cpp index 331db9378..8f3c5d05a 100644 --- a/src/theory/bv/bitblast/aig_bitblaster.cpp +++ b/src/theory/bv/bitblast/aig_bitblaster.cpp @@ -14,12 +14,12 @@ ** AIG bitblaster. **/ -#include "cvc4_private.h" - #include "theory/bv/bitblast/aig_bitblaster.h" #include "base/check.h" +#include "cvc4_private.h" #include "options/bv_options.h" +#include "prop/cnf_stream.h" #include "prop/sat_solver_factory.h" #include "smt/smt_statistics_registry.h" @@ -28,7 +28,6 @@ extern "C" { #include "base/abc/abc.h" #include "base/main/main.h" -#include "prop/cnf_stream.h" #include "sat/cnf/cnf.h" extern Aig_Man_t* Abc_NtkToDar(Abc_Ntk_t* pNtk, int fExors, int fRegisters);