37# include <gtest/gtest.h>
60 return static_cast<long long>(
_getpid());
62 return static_cast<long long>(
getpid());
69 namespace fs = std::filesystem;
77 static std::atomic<unsigned long long>
counter{0};
78 return fs::temp_directory_path() /
79 (
"aleph_" +
stem +
"_" +
81 "_" + std::to_string(process_id()) +
82 "_" + std::to_string(
counter++) +
105 const auto p0 =
sm.position(
id, 0);
109 const auto p2 =
sm.position(
id, 2);
113 const auto p3 =
sm.position(
id, 3);
117 const auto p7 =
sm.position(
id, 7);
127 const auto sp =
sm.span(
id, 6, 10);
140 const auto sp =
sm.span(
id, 6, 10);
156 const auto sp =
sm.span(
id, 1, 1);
168 namespace fs = std::filesystem;
172 std::ofstream
out(path, std::ios::binary);
173 out <<
"line1\nline2\n";
Source file and span management utilities for compiler-style tooling.
size_t size_t int32_t * out
Stores source files and resolves offsets into human-readable data.
Source_File_Id load_file(const std::string &path)
Loads a file from disk and registers it.
Source_File_Id add_virtual_file(const std::string &name, const std::string &text)
Registers an in-memory source file.
size_t blossom_maximum_cardinality_matching(const GT &g, DynDlist< typename GT::Arc * > &matching, SA sa=SA())
Alias of compute_maximum_cardinality_general_matching().
Main namespace for Aleph-w library functions.
Itor::difference_type count(const Itor &beg, const Itor &end, const T &value)
Count elements equal to a value.