Unused variables removed
This commit is contained in:
14
main.cpp
14
main.cpp
@@ -331,13 +331,9 @@ bool is_bad_class(
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
vector <FiniteFunction<CUR_BASE>> possible_functions;
|
|
||||||
|
|
||||||
size_t total_possible_functions;
|
size_t total_possible_functions;
|
||||||
atomic<long> current_function;
|
|
||||||
|
|
||||||
atomic<long> completed_tasks;
|
atomic<long> completed_tasks;
|
||||||
mutex possible_functions_mutex;
|
|
||||||
|
|
||||||
list< set<FiniteFunction<CUR_BASE>> > shared_function_classes;
|
list< set<FiniteFunction<CUR_BASE>> > shared_function_classes;
|
||||||
mutex shared_functions_mutex;
|
mutex shared_functions_mutex;
|
||||||
@@ -403,6 +399,7 @@ void process_task_lists() {
|
|||||||
if ( is_bad_class(task.current, bad_functions) ) {
|
if ( is_bad_class(task.current, bad_functions) ) {
|
||||||
//cout << "bad class" << endl;
|
//cout << "bad class" << endl;
|
||||||
++completed_tasks;
|
++completed_tasks;
|
||||||
|
print_progress(completed_tasks, total_possible_functions);
|
||||||
} else {
|
} else {
|
||||||
++task.current_max_coeff;
|
++task.current_max_coeff;
|
||||||
task_mutex.lock();
|
task_mutex.lock();
|
||||||
@@ -413,6 +410,7 @@ void process_task_lists() {
|
|||||||
} else {
|
} else {
|
||||||
//cout << "task finished, appending" << endl;
|
//cout << "task finished, appending" << endl;
|
||||||
++completed_tasks;
|
++completed_tasks;
|
||||||
|
print_progress(completed_tasks, total_possible_functions);
|
||||||
auto func_class = task.current;
|
auto func_class = task.current;
|
||||||
bool is_need_append = true;
|
bool is_need_append = true;
|
||||||
vector<decltype(shared_function_classes)::iterator> functions_to_remove;
|
vector<decltype(shared_function_classes)::iterator> functions_to_remove;
|
||||||
@@ -494,13 +492,7 @@ int main() {
|
|||||||
|
|
||||||
allowed_functions.erase(identical_x);
|
allowed_functions.erase(identical_x);
|
||||||
allowed_functions.erase(identical_y);
|
allowed_functions.erase(identical_y);
|
||||||
cout << "Total allowed " << allowed_functions.size() << " functions" << endl;
|
|
||||||
|
|
||||||
copy(
|
|
||||||
allowed_functions.begin(),
|
|
||||||
allowed_functions.end(),
|
|
||||||
back_inserter(possible_functions)
|
|
||||||
);
|
|
||||||
completed_tasks = 0;
|
completed_tasks = 0;
|
||||||
for (auto&& func: allowed_functions) {
|
for (auto&& func: allowed_functions) {
|
||||||
FunctionTask task;
|
FunctionTask task;
|
||||||
@@ -510,7 +502,7 @@ int main() {
|
|||||||
task_list.push_back(task);
|
task_list.push_back(task);
|
||||||
}
|
}
|
||||||
|
|
||||||
cout << "Total funcs in list" << task_list.size() << " functions" << endl;
|
cout << "Total funcs in list " << task_list.size() << " functions" << endl;
|
||||||
|
|
||||||
total_possible_functions = task_list.size();
|
total_possible_functions = task_list.size();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user