mirror of
https://github.com/Z3Prover/z3
synced 2025-08-24 20:16:00 +00:00
deal with compiler warnings
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
eef2ac0ff5
commit
2a6fa4af39
6 changed files with 17 additions and 18 deletions
|
@ -4455,7 +4455,6 @@ namespace smt {
|
|||
}
|
||||
}
|
||||
recfun::util u(m);
|
||||
recfun::decl::plugin& p = u.get_plugin();
|
||||
func_decl_ref_vector recfuns = u.get_rec_funs();
|
||||
for (func_decl* f : recfuns) {
|
||||
auto& def = u.get_def(f);
|
||||
|
@ -4464,7 +4463,6 @@ namespace smt {
|
|||
func_interp* fi = alloc(func_interp, m, f->get_arity());
|
||||
// reverse argument order so that variable 0 starts at the beginning.
|
||||
expr_ref_vector subst(m);
|
||||
unsigned idx = 0;
|
||||
for (unsigned i = 0; i < f->get_arity(); ++i) {
|
||||
subst.push_back(m.mk_var(i, f->get_domain(i)));
|
||||
}
|
||||
|
|
|
@ -130,7 +130,6 @@ namespace smt {
|
|||
|
||||
void theory_jobscheduler::new_eq_eh(theory_var v1, theory_var v2) {
|
||||
enode* e1 = get_enode(v1);
|
||||
enode* e2 = get_enode(v2);
|
||||
enode* root = e1->get_root();
|
||||
unsigned r;
|
||||
if (u.is_resource(root->get_owner(), r)) {
|
||||
|
@ -712,7 +711,7 @@ namespace smt {
|
|||
|
||||
time_t start_lb = std::numeric_limits<time_t>::max();
|
||||
time_t runtime_lb = std::numeric_limits<time_t>::max();
|
||||
time_t end_ub = 0, runtime_ub = 0;
|
||||
time_t end_ub = 0; // , runtime_ub = 0;
|
||||
for (job_resource const& jr : ji.m_resources) {
|
||||
unsigned r = jr.m_resource_id;
|
||||
res_info const& ri = m_resources[r];
|
||||
|
@ -784,6 +783,7 @@ namespace smt {
|
|||
// resource(j) = r => start(j) <= end[idx] || start[idx+1] <= start(j);
|
||||
void theory_jobscheduler::assert_job_not_in_gap(unsigned j, unsigned r, unsigned idx, unsigned idx1, literal eq) {
|
||||
job_resource const& jr = get_job_resource(j, r);
|
||||
(void) jr;
|
||||
vector<res_available>& available = m_resources[r].m_available;
|
||||
SASSERT(resource_available(jr, available[idx]));
|
||||
literal l2 = mk_ge(m_jobs[j].m_start, available[idx1].m_start);
|
||||
|
@ -795,6 +795,7 @@ namespace smt {
|
|||
void theory_jobscheduler::assert_job_non_preemptable(unsigned j, unsigned r, unsigned idx, unsigned idx1, literal eq) {
|
||||
vector<res_available>& available = m_resources[r].m_available;
|
||||
job_resource const& jr = get_job_resource(j, r);
|
||||
(void) jr;
|
||||
SASSERT(resource_available(jr, available[idx]));
|
||||
literal l2 = mk_le(m_jobs[j].m_end, available[idx].m_end);
|
||||
literal l3 = mk_ge(m_jobs[j].m_start, available[idx1].m_start);
|
||||
|
|
|
@ -18,7 +18,7 @@ Author:
|
|||
Revision History:
|
||||
|
||||
--*/
|
||||
#pragma once;
|
||||
#pragma once
|
||||
|
||||
#include "util/uint_set.h"
|
||||
#include "ast/csp_decl_plugin.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue