3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-09-04 00:58:07 +00:00
z3/src/util/lp/signature_bound_evidence.h
Nikolaj Bjorner 911b24784a merge LRA
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-05-09 10:46:11 -07:00

23 lines
604 B
C++

/*
Copyright (c) 2017 Microsoft Corporation
Author: Lev Nachmanson
*/
#pragma once
#include "util/lp/lp_settings.h"
#include "util/lp/lar_constraints.h"
namespace lean {
struct bound_signature {
unsigned m_i;
bool m_at_low;
bound_signature(unsigned i, bool at_low) :m_i(i), m_at_low(m_at_low) {}
bool at_upper_bound() const { return !m_at_low_bound;}
bool at_low_bound() const { return m_at_low;}
};
template <typename X>
struct signature_bound_evidence {
vector<bound_signature> m_evidence;
unsigned m_j; // found new bound
bool m_low_bound;
X m_bound;
};
}