mirror of
https://github.com/Z3Prover/z3
synced 2025-06-25 15:23:41 +00:00
merge
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
2d43ccc4c6
commit
2520dcb04b
2 changed files with 5 additions and 8 deletions
2
.github/workflows/coverage.yml
vendored
2
.github/workflows/coverage.yml
vendored
|
@ -58,7 +58,7 @@ jobs:
|
||||||
|
|
||||||
- name: Run examples
|
- name: Run examples
|
||||||
run: |
|
run: |
|
||||||
${{github.workspace}}/build/examples/c_example_build_dir/c_example
|
# Disabled: ${{github.workspace}}/build/examples/c_example_build_dir/c_example
|
||||||
${{github.workspace}}/build/examples/cpp_example_build_dir/cpp_example
|
${{github.workspace}}/build/examples/cpp_example_build_dir/cpp_example
|
||||||
${{github.workspace}}/build/examples/tptp_build_dir/z3_tptp5 --help
|
${{github.workspace}}/build/examples/tptp_build_dir/z3_tptp5 --help
|
||||||
${{github.workspace}}/build/examples/c_maxsat_example_build_dir/c_maxsat_example ${{github.workspace}}/examples/maxsat/ex.smt
|
${{github.workspace}}/build/examples/c_maxsat_example_build_dir/c_maxsat_example ${{github.workspace}}/examples/maxsat/ex.smt
|
||||||
|
|
|
@ -116,13 +116,10 @@ protected:
|
||||||
unsigned qtail() const { return m_fmls.qtail(); }
|
unsigned qtail() const { return m_fmls.qtail(); }
|
||||||
struct iterator {
|
struct iterator {
|
||||||
dependent_expr_simplifier& s;
|
dependent_expr_simplifier& s;
|
||||||
unsigned m_index = 0;
|
unsigned m_index, m_end;
|
||||||
bool at_end = false;
|
iterator(dependent_expr_simplifier& s, unsigned i, unsigned end) : s(s), m_index(i), m_end(end) {}
|
||||||
unsigned index() const { return at_end ? s.qtail() : std::min(m_index, s.qtail()); }
|
bool operator!=(iterator const& other) const { return m_index != other.m_index; }
|
||||||
iterator(dependent_expr_simplifier& s, unsigned i) : s(s), m_index(i), at_end(i == s.qtail()) {}
|
iterator& operator++() { if (!s.m.inc() || s.m_fmls.inconsistent() || m_index > s.qtail()) m_index = m_end; else ++m_index; return *this; }
|
||||||
bool operator==(iterator const& other) const { return index() == other.index(); }
|
|
||||||
bool operator!=(iterator const& other) const { return !(*this == other); }
|
|
||||||
iterator& operator++() { if (!s.m.inc() || s.m_fmls.inconsistent()) at_end = true; else ++m_index; return *this; }
|
|
||||||
unsigned operator*() const { return m_index; }
|
unsigned operator*() const { return m_index; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue