Fix ABC build (#5061)
authorAndres Noetzli <andres.noetzli@gmail.com>
Tue, 15 Sep 2020 02:09:03 +0000 (19:09 -0700)
committerGitHub <noreply@github.com>
Tue, 15 Sep 2020 02:09:03 +0000 (21:09 -0500)
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.

src/theory/bv/bitblast/aig_bitblaster.cpp

index 331db93783462256cafb41c42000d544445fd6a5..8f3c5d05a3dd2f3d8fc8deca2ed6aa8d86775192 100644 (file)
  ** 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);