Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions benchmarks/dds_replay_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@

#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <map>
#include <set>
#include <string>
#include <thread>
#include <utility>
#include <vector>

#include "recording.hpp"
Expand Down
4 changes: 4 additions & 0 deletions benchmarks/recording.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@
#include "recording.hpp"

#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <set>
#include <string>
#include <utility>
#include <vector>

namespace dds_replay {

Expand Down
3 changes: 3 additions & 0 deletions benchmarks/replay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <cstddef>
#include <memory>
#include <mutex>
#include <string>
#include <thread>

#include <api/dds_c_api.h>
#include <api/dll.h>
#include <vector>

namespace dds_replay {

Expand Down
2 changes: 2 additions & 0 deletions benchmarks/warm_tt_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
#include <chrono>
#include <cstdio>
#include <random>
#include <ratio>
#include <utility>
#include <vector>

#include <gtest/gtest.h>
Expand Down
1 change: 1 addition & 0 deletions library/src/ab_search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include "ab_search.hpp"
#include <ab_stats.hpp>
#include <cstddef>
#include <dump.hpp>
#include <later_tricks.hpp>
#include <quick_tricks.hpp>
Expand Down
2 changes: 2 additions & 0 deletions library/src/ab_stats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
ABstats is a simple object for AB statistics and return values.
*/

#include <fstream>
#include <iomanip>
#include <iostream>
#include <string>

#include "ab_stats.hpp"

Expand Down
1 change: 1 addition & 0 deletions library/src/dds_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <api/dds_api.hpp>
#include <api/calc_par.hpp>
#include <string>

// Creation
DLLEXPORT DDS_SOLVER_CTX dds_create_solvercontext_default()
Expand Down
3 changes: 3 additions & 0 deletions library/src/dump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@
#include <fstream>
#include <iomanip>
#include <iostream>
#include <memory>
#include <sstream>

#include "dump.hpp"
#include <solver_context/solver_context.hpp>
#include <string>
#include <trans_table/trans_table.hpp>
#include <utility/debug.h>
#include <vector>


std::string PrintSuit(const unsigned short suitCode);
Expand Down
4 changes: 4 additions & 0 deletions library/src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
See LICENSE and README.
*/

#include <algorithm>
#include <cstring>
#include <cstdio>
#include <iomanip>
#include <ios>
#include <memory>
#include <sstream>

#include <calc_tables.hpp>
Expand All @@ -18,6 +21,7 @@
#include <solve_board.hpp>
#include <lookup_tables/lookup_tables.hpp>
#include <solver_context/solver_context.hpp>
#include <string>
#include <system/scheduler.hpp>
#include <system/system.hpp>
#include <system/thread_mgr.hpp>
Expand Down
1 change: 1 addition & 0 deletions library/src/later_tricks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <algorithm>

#include "later_tricks.hpp"
#include <cstdio>
#include <solver_context/solver_context.hpp>


Expand Down
1 change: 1 addition & 0 deletions library/src/play_analyser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <solver_context/solver_context.hpp>
#include <system/scheduler.hpp>
#include <system/system.hpp>
#include <vector>

using namespace std;

Expand Down
1 change: 1 addition & 0 deletions library/src/solve_board.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <system/scheduler.hpp>
#include <system/system.hpp>
#include <utility/debug.h>
#include <vector>


extern Scheduler scheduler;
Expand Down
2 changes: 2 additions & 0 deletions library/src/solver_context/solver_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

#include <algorithm>
#include <atomic>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <memory>
#include <string>
Expand Down
1 change: 1 addition & 0 deletions library/src/solver_if.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "solver_if.hpp"
#include <api/solve_board.hpp>
#include <lookup_tables/lookup_tables.hpp>
#include <memory>
#include <solver_context/solver_context.hpp>
#include <system/scheduler.hpp>
#include <system/system.hpp>
Expand Down
1 change: 1 addition & 0 deletions library/src/system/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/

#include "file.hpp"
#include <fstream>

dds::File::~File()
{
Expand Down
1 change: 1 addition & 0 deletions library/src/system/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include "memory.hpp"
#include <cstdlib>
#include <string>
#include <trans_table/trans_table.hpp>

// After moving ThreadData ownership into SolverContext, Memory no longer
Expand Down
3 changes: 3 additions & 0 deletions library/src/system/parallel_boards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@
#include <algorithm>
#include <atomic>
#include <condition_variable>
#include <cstddef>
#include <cstdint>
#include <functional>
#include <memory>
#include <mutex>
#include <thread>
#include <utility>
#include <vector>

#if defined(__EMSCRIPTEN__)
Expand Down
2 changes: 2 additions & 0 deletions library/src/system/scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#include "scheduler.hpp"
#include <fstream>
#include <iomanip>
#include <utility>
#include <vector>
#ifdef DDS_SCHEDULER
#include <system/time_stat_list.hpp>

Expand Down
3 changes: 3 additions & 0 deletions library/src/system/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
See LICENSE and README.
*/

#include <cstdio>
#include <cstring>
#include <string>
#include <thread>
#include <vector>

#if defined(__linux__) || defined(__APPLE__) || defined(__unix__)
#include <unistd.h>
Expand Down
1 change: 1 addition & 0 deletions library/src/system/thread_data.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// ThreadData instance methods implementation
#include "thread_data.hpp"
#include <string>
#include <utility/debug.h>

using std::string;
Expand Down
1 change: 1 addition & 0 deletions library/src/system/thread_mgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <fstream>
#include <mutex>
#include <chrono>
#include <string>
#include <thread>

#include "thread_mgr.hpp"
Expand Down
1 change: 1 addition & 0 deletions library/src/system/time_stat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <iomanip>
#include <sstream>
#include <cmath>
#include <string>

#include "time_stat.hpp"

Expand Down
3 changes: 3 additions & 0 deletions library/src/system/timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
*/


#include <chrono>
#include <ctime>
#include <iostream>
#include <iomanip>
#include <ratio>
#include <sstream>

#include "timer.hpp"
Expand Down
2 changes: 2 additions & 0 deletions library/src/system/timer_group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
See LICENSE and README.
*/

#include <cstddef>
#include <string>
#define TIMER_DEPTH 50

#include <iostream>
Expand Down
2 changes: 2 additions & 0 deletions library/src/system/timer_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*/

#include "timer_list.hpp"
#include <fstream>
#include <ostream>


TimerList::TimerList()
Expand Down
4 changes: 4 additions & 0 deletions library/src/trans_table/trans_table_l.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,16 @@
#include <array>
#include <cmath>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <ios>
#include <new>

#include "trans_table_l.hpp"

#include <string>
#include <utility/constants.h>
#include <vector>

namespace
{
Expand Down
2 changes: 2 additions & 0 deletions library/src/trans_table/trans_table_s.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@

#include <array>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <new>
#include <api/dds.h>
#include <string>

#include "trans_table_s.hpp"

Expand Down
3 changes: 3 additions & 0 deletions library/tests/TestTimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@
*/


#include <chrono>
#include <ctime>
#include <iostream>
#include <iomanip>
#include <ratio>
#include <string>

#include "TestTimer.hpp"

Expand Down
1 change: 1 addition & 0 deletions library/tests/ab_search/make3_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <ab_search.hpp>
#include <api/dds.h>
#include <api/dll.h>
#include <memory>
#include <solver_context/solver_context.hpp>
#include <system/memory.hpp>
#include <utility/constants.h>
Expand Down
1 change: 1 addition & 0 deletions library/tests/ab_search/tt_lookup_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <ab_search.hpp>
#include <api/dds.h>
#include <api/dll.h>
#include <memory>
#include <solver_context/solver_context.hpp>
#include <system/memory.hpp>
#include <trans_table/trans_table.hpp>
Expand Down
1 change: 1 addition & 0 deletions library/tests/args.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <algorithm>
#include <cctype>
Expand Down
1 change: 1 addition & 0 deletions library/tests/args_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <filesystem>
#include <fstream>
#include <string>
#include <system_error>
#include <vector>

#ifdef _WIN32
Expand Down
1 change: 1 addition & 0 deletions library/tests/dds_c_api_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

#include <gtest/gtest.h>

#include <cstdio>
#include <cstring>

#include <api/dds_c_api.h>
Expand Down
1 change: 1 addition & 0 deletions library/tests/dtest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/


#include <cstdlib>
#include <iostream>
#if defined(__linux__) || defined(__APPLE__) || defined(__unix__)
#include <unistd.h>
Expand Down
1 change: 1 addition & 0 deletions library/tests/dtest_parallel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include <algorithm>
#include <atomic>
#include <functional>
#include <thread>
#include <vector>

Expand Down
1 change: 1 addition & 0 deletions library/tests/heuristic_sorting/minimal_weight_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* without segmentation faults on minimal input data.
*/

#include <cstring>
#include <gtest/gtest.h>
#include <iostream>
#include "heuristic_sorting/heuristic_sorting.hpp"
Expand Down
1 change: 1 addition & 0 deletions library/tests/heuristic_sorting/test_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "test_utils.hpp"
#include <sstream>
#include <cstring>
#include <string>
#include <vector>
#include <algorithm>

Expand Down
2 changes: 2 additions & 0 deletions library/tests/loop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
*/


#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
Expand Down
1 change: 1 addition & 0 deletions library/tests/loop_par_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <ios>
#include <regex>
#include <sstream>
#include <string>
Expand Down
Loading