51 "import \"math.aw\";\n"
52 "let answer = add(40, 2);\n"});
64 std::cerr << label <<
" failed\n";
65 std::cerr <<
driver.diagnostics_text();
66 if (
const auto *
messages =
driver.find_artifact(
"driver.messages");
76 std::istringstream
input(text);
81 std::cout << line <<
'\n';
95 std::cout <<
"=== imports.order ===\n";
97 std::cout <<
"=== run.result ===\n";
98 std::cout <<
run_driver.find_artifact(
"run.result")->text;
99 std::cout <<
"=== run.globals ===\n";
100 std::cout <<
run_driver.run_output().globals_text;
104 Compiler_Driver_Action::Emit_Bytecode))
107 std::cout <<
"\n=== bytecode ===\n";
112 c_options.c_backend_options.emit_main =
true;
118 std::cout <<
"\n=== emit-c (first 24 lines) ===\n";
End-to-end multi-file driver for the compiler-support pipeline.
Reusable orchestration object for compiler pipeline experiments.
const Compiler_Driver_Artifact * find_artifact(std::string_view label) const noexcept
Finds one artifact by label.
T & append()
Allocate a new entry to the end of array.
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.
and
Check uniqueness with explicit hash + equality functors.
std::string module_name
Prefix used to derive stable C identifiers.
std::string text
Deterministic plain-text artifact payload.
Immutable configuration shared by all runs of one driver object.
Compiler_C_Backend_Options c_backend_options
Backend-C emission options used by emit-c.