mirror of
https://github.com/Z3Prover/z3
synced 2025-08-06 19:21:22 +00:00
add job/resource axioms on demand
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
2839f64f0d
commit
40a79694ea
4 changed files with 133 additions and 58 deletions
|
@ -241,6 +241,10 @@ bool csp_util::is_job(expr* e, unsigned& j) {
|
|||
return is_app_of(e, m_fid, OP_JS_JOB) && (j = job2id(e), true);
|
||||
}
|
||||
|
||||
bool csp_util::is_job2resource(expr* e, unsigned& j) {
|
||||
return is_app_of(e, m_fid, OP_JS_JOB2RESOURCE) && (j = job2id(e), true);
|
||||
}
|
||||
|
||||
bool csp_util::is_add_resource_available(expr * e, expr *& res, unsigned& loadpct, uint64_t& start, uint64_t& end) {
|
||||
if (!is_app_of(e, m_fid, OP_JS_RESOURCE_AVAILABLE)) return false;
|
||||
res = to_app(e)->get_arg(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue