按照stem翻转
This commit is contained in:
parent
b2df76e1de
commit
73ab1d168a
@ -19,9 +19,8 @@ void Circuit::init_stems() {
|
|||||||
|
|
||||||
for(auto& gate: gates) {
|
for(auto& gate: gates) {
|
||||||
if(gate->outputs.size() >= 2) {
|
if(gate->outputs.size() >= 2) {
|
||||||
|
gate->stem = true;
|
||||||
}
|
}
|
||||||
gate->stem = true;
|
|
||||||
if(gate->stem) {
|
if(gate->stem) {
|
||||||
stems.push_back(gate);
|
stems.push_back(gate);
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,7 @@ static ll propagate_total_cost;
|
|||||||
static int propagate_falsified_cnt;
|
static int propagate_falsified_cnt;
|
||||||
|
|
||||||
static const int FAULT_INC = 1;
|
static const int FAULT_INC = 1;
|
||||||
static const int FAULT_COST_MAX = 1e9;
|
static const int FAULT_COST_MAX = 20;
|
||||||
static ll fault_total_cost;
|
static ll fault_total_cost;
|
||||||
static int fault_falsified_cnt;
|
static int fault_falsified_cnt;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user