atpg-ls/ls.cpp
2023-02-16 18:51:31 +08:00

17 lines
318 B
C++

#include "circuit.h"
std::vector<int> Circuit::local_search(const std::vector<Fault*> &faults) {
// local search vector
ls_init_circuit();
printf("local search!\n");
return std::vector<int>();
}
void Circuit::ls_init_circuit() {
for(auto pi : PIs) {
pi->value = rand() % 2;
}
}