Fix Win32 builds.
authorMorgan Deters <mdeters@cs.nyu.edu>
Mon, 25 Aug 2014 15:38:27 +0000 (11:38 -0400)
committerMorgan Deters <mdeters@cs.nyu.edu>
Mon, 25 Aug 2014 15:38:27 +0000 (11:38 -0400)
src/proof/proof_manager.cpp
src/prop/cnf_stream.cpp

index 0cca16574b64cf06ba652b6b432c71410260667d..87eded8e6c1ae1d6439be8cdca6e9e6a7a88867b 100644 (file)
@@ -174,12 +174,12 @@ void ProofManager::addClause(ClauseId id, const prop::SatClause* clause, ClauseK
     } else if(options::unsatCores()) {
       Expr e = d_cnfProof->getAssertion(d_satProof->d_inputClauses[id] & 0xffffffff);
       Debug("cores") << "core input assertion from CnfStream is " << e << std::endl;
-      Debug("cores") << "with proof rule " << ((d_satProof->d_inputClauses[id] & 0xffffffff00000000) >> 32) << std::endl;
+      Debug("cores") << "with proof rule " << ((d_satProof->d_inputClauses[id] & 0xffffffff00000000llu) >> 32) << std::endl;
       // Invalid proof rules are currently used for parts of CVC4 that don't
       // support proofs (these are e.g. unproven theory lemmas) or don't need
       // proofs (e.g. split lemmas).  We can ignore these safely when
       // constructing unsat cores.
-      if(((d_satProof->d_inputClauses[id] & 0xffffffff00000000) >> 32) != RULE_INVALID) {
+      if(((d_satProof->d_inputClauses[id] & 0xffffffff00000000llu) >> 32) != RULE_INVALID) {
         // trace dependences back to actual assertions
         traceDeps(Node::fromExpr(e));
       }
index 0d133aa13dc1d4556cdead2976ea4520363a1a40..ad187aa46222d4edc3a1fa03fe648ac5c17b82c8 100644 (file)
@@ -651,7 +651,7 @@ void TseitinCnfStream::convertAndAssert(TNode node, bool removable, bool negated
   if(options::proof() || options::unsatCores()) {
     // Encode the assertion ID in the proof_id to store with generated clauses.
     uint64_t assertionTableIndex = d_assertionTable.size();
-    Assert((uint64_t(proof_id) & 0xffffffff00000000) == 0 && (assertionTableIndex & 0xffffffff00000000) == 0, "proof_id/table_index collision");
+    Assert((uint64_t(proof_id) & 0xffffffff00000000llu) == 0 && (assertionTableIndex & 0xffffffff00000000llu) == 0, "proof_id/table_index collision");
     d_proofId = assertionTableIndex | (uint64_t(proof_id) << 32);
     d_assertionTable.push_back(from.isNull() ? node : from);
     Debug("cores") << "cnf ix " << assertionTableIndex << " asst " << node << "  proof_id " << proof_id << " from " << from << endl;