mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 11:55:51 +00:00
separate out int-branch
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
3f1f4e0f67
commit
8b9a80e232
5 changed files with 181 additions and 117 deletions
41
src/math/lp/int_branch.h
Normal file
41
src/math/lp/int_branch.h
Normal file
|
@ -0,0 +1,41 @@
|
|||
/*++
|
||||
Copyright (c) 2020 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
int_branch.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Branch heuristic
|
||||
|
||||
Author:
|
||||
Nikolaj Bjorner (nbjorner)
|
||||
Lev Nachmanson (levnach)
|
||||
|
||||
Revision History:
|
||||
--*/
|
||||
#pragma once
|
||||
|
||||
#include "math/lp/lia_move.h"
|
||||
|
||||
namespace lp {
|
||||
class int_solver;
|
||||
class lar_solver;
|
||||
class int_branch {
|
||||
class int_solver& lia;
|
||||
class lar_solver& lra;
|
||||
lia_move create_branch_on_column(int j);
|
||||
bool left_branch_is_more_narrow_than_right(unsigned j);
|
||||
int find_inf_int_base_column();
|
||||
int get_kth_inf_int(unsigned k) const;
|
||||
int find_inf_int_nbasis_column() const;
|
||||
int find_any_inf_int_column_basis_first();
|
||||
int find_inf_int_boxed_base_column_with_smallest_range(unsigned & inf_int_count);
|
||||
|
||||
public:
|
||||
int_branch(int_solver& lia);
|
||||
~int_branch() {}
|
||||
lia_move operator()();
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue