d_notify->notify(satClause);
}
- void spendResource(uint64_t ammount) {
+ void spendResource(unsigned ammount) {
d_notify->spendResource(ammount);
}
- void safePoint(uint64_t ammount) {
+ void safePoint(unsigned ammount) {
d_notify->safePoint(ammount);
}
};
*/
virtual void notify(vec<Lit>& learnt) = 0;
- virtual void spendResource(uint64_t ammount) = 0;
- virtual void safePoint(uint64_t ammount) = 0;
+ virtual void spendResource(unsigned ammount) = 0;
+ virtual void safePoint(unsigned ammount) = 0;
};
//=================================================================================================
Debug("prop") << "interrupt()" << endl;
}
-void PropEngine::spendResource(uint64_t ammount) throw (UnsafeInterruptException) {
+void PropEngine::spendResource(unsigned ammount) throw (UnsafeInterruptException) {
d_resourceManager->spendResource(ammount);
}
* Informs the ResourceManager that a resource has been spent. If out of
* resources, can throw an UnsafeInterruptException exception.
*/
- void spendResource(uint64_t ammount) throw (UnsafeInterruptException);
+ void spendResource(unsigned ammount) throw (UnsafeInterruptException);
/**
* For debugging. Return true if "expl" is a well-formed
* Notify about a learnt clause.
*/
virtual void notify(SatClause& clause) = 0;
- virtual void spendResource(uint64_t ammount) = 0;
- virtual void safePoint(uint64_t ammount) = 0;
+ virtual void spendResource(unsigned ammount) = 0;
+ virtual void safePoint(unsigned ammount) = 0;
};/* class BVSatSolverInterface::Notify */
#endif /* CVC4_REPLAY */
}
-void TheoryProxy::spendResource(uint64_t ammount) {
+void TheoryProxy::spendResource(unsigned ammount) {
d_theoryEngine->spendResource(ammount);
}
void logDecision(SatLiteral lit);
- void spendResource(uint64_t ammount);
+ void spendResource(unsigned ammount);
bool isDecisionEngineDone();
measures CPU time if set to true and wall time if false (default false)
# Resource spending options for SPARK
-expert-option rewriteStep rewrite-step --rewrite-step uint64_t :default 1
+expert-option rewriteStep rewrite-step --rewrite-step unsigned :default 1
ammount of resources spent for each rewrite step
-expert-option theoryCheckStep theory-check-step --theory-check-step uint64_t :default 1
+expert-option theoryCheckStep theory-check-step --theory-check-step unsigned :default 1
ammount of resources spent for each theory check call
-expert-option decisionStep decision-step --decision-step uint64_t :default 1
+expert-option decisionStep decision-step --decision-step unsigned :default 1
ammount of getNext decision calls in the decision engine
-expert-option bitblastStep bitblast-step --bitblast-step uint64_t :default 1
+expert-option bitblastStep bitblast-step --bitblast-step unsigned :default 1
ammount of resources spent for each bitblast step
-expert-option parseStep parse-step --parse-step uint64_t :default 1
+expert-option parseStep parse-step --parse-step unsigned :default 1
ammount of resources spent for each command/expression parsing
-expert-option lemmaStep lemma-step --lemma-step uint64_t :default 1
+expert-option lemmaStep lemma-step --lemma-step unsigned :default 1
ammount of resources spent when adding lemmas
-expert-option restartStep restart-step --restart-step uint64_t :default 1
+expert-option restartStep restart-step --restart-step unsigned :default 1
ammount of resources spent for each theory restart
-expert-option cnfStep cnf-step --cnf-step uint64_t :default 1
+expert-option cnfStep cnf-step --cnf-step unsigned :default 1
ammount of resources spent for each call to cnf conversion
-expert-option preprocessStep preprocess-step --preprocess-step uint64_t :default 1
+expert-option preprocessStep preprocess-step --preprocess-step unsigned :default 1
ammount of resources spent for each preprocessing step in SmtEngine
-expert-option quantifierStep quantifier-step --quantifier-step uint64_t :default 1
+expert-option quantifierStep quantifier-step --quantifier-step unsigned :default 1
ammount of resources spent for quantifier instantiations
-expert-option satConflictStep sat-conflict-step --sat-conflict-step uint64_t :default 1
+expert-option satConflictStep sat-conflict-step --sat-conflict-step unsigned :default 1
ammount of resources spent for each sat conflict (main sat solver)
-expert-option bvSatConflictStep bv-sat-conflict-step --bv-sat-conflict-step uint64_t :default 1
+expert-option bvSatConflictStep bv-sat-conflict-step --bv-sat-conflict-step unsigned :default 1
ammount of resources spent for each sat conflict (bitvectors)
}
ResourceManager* getResourceManager() { return d_resourceManager; }
- void spendResource(uint64_t ammount) throw(UnsafeInterruptException) {
+ void spendResource(unsigned ammount) throw(UnsafeInterruptException) {
d_resourceManager->spendResource(ammount);
}
{}
bool notify(prop::SatLiteral lit);
void notify(prop::SatClause& clause);
- void spendResource(uint64_t ammount);
- void safePoint(uint64_t ammount);
+ void spendResource(unsigned ammount);
+ void safePoint(unsigned ammount);
};
TheoryBV *d_bv;
MinisatEmptyNotify() {}
bool notify(prop::SatLiteral lit) { return true; }
void notify(prop::SatClause& clause) { }
- void spendResource(uint64_t ammount) {
+ void spendResource(unsigned ammount) {
NodeManager::currentResourceManager()->spendResource(ammount);
}
- void safePoint(uint64_t ammount) {}
+ void safePoint(unsigned ammount) {}
};
}
}
-void TLazyBitblaster::MinisatNotify::spendResource(uint64_t ammount) {
+void TLazyBitblaster::MinisatNotify::spendResource(unsigned ammount) {
d_bv->spendResource(ammount);
}
-void TLazyBitblaster::MinisatNotify::safePoint(uint64_t ammount) {
+void TLazyBitblaster::MinisatNotify::safePoint(unsigned ammount) {
d_bv->d_out->safePoint(ammount);
}
}
}
-void TheoryBV::spendResource(uint64_t ammount) throw(UnsafeInterruptException) {
+void TheoryBV::spendResource(unsigned ammount) throw(UnsafeInterruptException) {
getOutputChannel().spendResource(ammount);
}
Statistics d_statistics;
- void spendResource(uint64_t ammount) throw(UnsafeInterruptException);
+ void spendResource(unsigned ammount) throw(UnsafeInterruptException);
/**
* Return the uninterpreted function symbol corresponding to division-by-zero
* long-running operations, they cannot rely on resource() to break
* out of infinite or intractable computations.
*/
- virtual void spendResource(uint64_t ammount) throw(UnsafeInterruptException) {}
+ virtual void spendResource(unsigned ammount) throw(UnsafeInterruptException) {}
/**
* Handle user attribute.
return th->entailmentCheck(lit, params, seffects);
}
-void TheoryEngine::spendResource(uint64_t ammount) {
+void TheoryEngine::spendResource(unsigned ammount) {
d_resourceManager->spendResource(ammount);
}
d_engine->setIncomplete(d_theory);
}
- void spendResource(uint64_t ammount) throw(UnsafeInterruptException) {
+ void spendResource(unsigned ammount) throw(UnsafeInterruptException) {
d_engine->spendResource(ammount);
}
/**
* "Spend" a resource during a search or preprocessing.
*/
- void spendResource(uint64_t ammount);
+ void spendResource(unsigned ammount);
/**
* Adds a theory. Only one theory per TheoryId can be present, so if
return d_thisCallTimeBudget - time_passed;
}
-void ResourceManager::spendResource(uint64_t ammount) throw (UnsafeInterruptException) {
+void ResourceManager::spendResource(unsigned ammount) throw (UnsafeInterruptException) {
++d_spendResourceCalls;
d_cumulativeResourceUsed += ammount;
if (!d_on) return;
return d_thisCallResourceBudget;
}
- void spendResource(uint64_t ammount) throw(UnsafeInterruptException);
+ void spendResource(unsigned ammount) throw(UnsafeInterruptException);
void setHardLimit(bool value);
void setResourceLimit(uint64_t units, bool cumulative = false);