mirror of
https://github.com/Z3Prover/z3
synced 2025-10-05 15:33:59 +00:00
na
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
d55fe1ac59
commit
502c071266
4 changed files with 28 additions and 64 deletions
|
@ -240,7 +240,7 @@ namespace smt {
|
|||
if (ctx.get_assignment(start_ge_lo) != l_true) {
|
||||
return;
|
||||
}
|
||||
enode_pair eq(ji.m_job2resource, resource2enode(r));
|
||||
enode_pair eq(ji.m_job2resource, m_resources[r].m_resource);
|
||||
if (eq.first->get_root() != eq.second->get_root()) {
|
||||
return;
|
||||
}
|
||||
|
@ -528,10 +528,6 @@ namespace smt {
|
|||
return 0;
|
||||
}
|
||||
|
||||
enode* theory_jobscheduler::resource2enode(unsigned r) {
|
||||
return get_context().get_enode(u.mk_resource(r));
|
||||
}
|
||||
|
||||
void theory_jobscheduler::set_preemptable(unsigned j, bool is_preemptable) {
|
||||
m_jobs.reserve(j + 1);
|
||||
m_jobs[j].m_is_preemptable = is_preemptable;
|
||||
|
@ -610,7 +606,6 @@ namespace smt {
|
|||
for (unsigned j = 0; j < m_jobs.size(); ++j) {
|
||||
job_info const& ji = m_jobs[j];
|
||||
literal_vector disj;
|
||||
app_ref job(u.mk_job(j), m);
|
||||
if (ji.m_resources.empty()) {
|
||||
throw default_exception("every job should be associated with at least one resource");
|
||||
}
|
||||
|
|
|
@ -161,7 +161,6 @@ namespace smt {
|
|||
time_t get_up(expr* e);
|
||||
time_t get_value(expr* e);
|
||||
unsigned resource(unsigned j); // resource of job j
|
||||
enode* resource2enode(unsigned r);
|
||||
|
||||
// derived bounds
|
||||
time_t ect(unsigned j, unsigned r, time_t start);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue