1. To fix a missing boost header the src/sat/Makefile has to be fixed
This is mentioned and described here: http://groups.google.com/group/stp-users/browse_thread/thread/
94246a7cf288d57
2. To fix compile errors regarding PRIu64 the src/sat/mtl/IntTypes.h has to be renamed.
Because most osx systems have a case insensitive file system #include <inttypes.h> includes the src/sat/mtl/IntTypes.h and therefore the inttypes.h from the c library is never included.
I renamed the file from IntTypes.h to IntTypesMtl.h.
This fixes the bug reported here: http://groups.google.com/group/stp-users/browse_thread/thread/
c00ab4b90c4ae86a
3. In src/sat/cryptominisat2/ClauseAllocator.h I changed two variable types from uint to uint32_t (otherwise I get: unknown type uint)
4. In src/sat/utils/System.cc
The part ifdef __APPLE__ is missing the memUsedPeak function which leads to an linker error.
git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1028
e59a4935-1847-0410-ae03-
e826735625c1
$(MAKE) -C cryptominisat2 clean
CryptoMinisat.o: CryptoMinisat.cpp
- $(CC) $(CFLAGS) -Icryptominisat2/mtl -Imtl CryptoMinisat.cpp -c
+ $(CC) $(CFLAGS) -Icryptominisat2/mtl -Imtl CryptoMinisat.cpp -c -I$(TOP)/src
#include <assert.h>
-#include "../mtl/IntTypes.h"
+#include "../mtl/IntTypesMtl.h"
#include "../mtl/Alg.h"
#include "../mtl/Vec.h"
#include "../mtl/Map.h"
~ClauseAllocator();
template<class T>
- Clause* Clause_new(const T& ps, const uint group, const bool learnt = false);
+ Clause* Clause_new(const T& ps, const uint32_t group, const bool learnt = false);
template<class T>
- XorClause* XorClause_new(const T& ps, const bool inverted, const uint group);
+ XorClause* XorClause_new(const T& ps, const bool inverted, const uint32_t group);
Clause* Clause_new(Clause& c);
const ClauseOffset getOffset(const Clause* ptr) const;
#ifndef Minisat_Map_h
#define Minisat_Map_h
-#include "../mtl/IntTypes.h"
+#include "../mtl/IntTypesMtl.h"
#include "../mtl/Vec.h"
namespace Minisat {
#include <assert.h>
#include <new>
-#include "../mtl/IntTypes.h"
+#include "../mtl/IntTypesMtl.h"
#include "../mtl/XAlloc.h"
namespace Minisat {
#include <math.h>
#include <string.h>
-#include "../mtl/IntTypes.h"
+#include "../mtl/IntTypesMtl.h"
#include "../mtl/Vec.h"
#include "../utils/ParseUtils.h"
malloc_statistics_t t;
malloc_zone_statistics(NULL, &t);
return (double)t.max_size_in_use / (1024*1024); }
-
+double Minisat::memUsedPeak(void) { return memUsed();}
#else
double Minisat::memUsed() {
return 0; }
#include <fpu_control.h>
#endif
-#include "../mtl/IntTypes.h"
+#include "../mtl/IntTypesMtl.h"
//-------------------------------------------------------------------------------------------------