Skip to content

Commit

Permalink
Merge pull request #35 from nseeuws/crossplatform_lib
Browse files Browse the repository at this point in the history
Converted types for crossplatform compatibility
  • Loading branch information
wannesm authored Jun 14, 2024
2 parents 0cf1540 + 1e84b9b commit c62cb4e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pysdd/lib/libsdd-2.0/include/sdd.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ typedef size_t SddNodeSize; //size of decomposition for sdd nodes
typedef size_t SddRefCount; //refcount
typedef unsigned long long SddModelCount; //model count
typedef double SddWmc; // weighted model count
typedef long SddLiteral; //literals of clauses
typedef long long SddLiteral; //literals of clauses

//control strings
#define PRIsS "zu"
Expand Down
2 changes: 1 addition & 1 deletion pysdd/lib/libsdd-2.0/sddapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ typedef size_t SddNodeSize; //size of decomposition for sdd nodes
typedef size_t SddRefCount; //refcount
typedef unsigned long long SddModelCount; //model counts
typedef double SddWmc; // weighted model count
typedef long SddLiteral; //literals of clauses
typedef long long SddLiteral; //literals of clauses

//control strings
#define PRIsS "zu"
Expand Down
2 changes: 1 addition & 1 deletion pysdd/lib/libsdd-2.0/src/sdds/exists_multiple.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static void deref_nodes_of_terminal_shadows(SddShadows* shadows);
//exists_map[var] : is 1 if var is to be existentially quantified, 0 otherwise
//exists_map[0] : not used

static long ref_count; //sanity check
static long long ref_count; //sanity check

SddNode* sdd_exists_multiple(int* exists_map, SddNode* node, SddManager* manager) {
CHECK_ERROR(GC_NODE(node),ERR_MSG_GC,"sdd_exists_multiple");
Expand Down
2 changes: 1 addition & 1 deletion pysdd/lib/sdd-2.0/include/sddapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ typedef size_t SddNodeSize; //size of decomposition for sdd nodes, changed to si
typedef size_t SddRefCount; //refcount, changed to size_t for cross-platform compatibility
typedef unsigned long long SddModelCount; //model counts
typedef double SddWmc; // weighted model count
typedef long SddLiteral; //literals of clauses
typedef long long SddLiteral; //literals of clauses
typedef char SddNodeType; //holds one of two values defined next

//control strings
Expand Down

0 comments on commit c62cb4e

Please sign in to comment.