| Did you know ... | Search Documentation: |
| Pack starlog -- ARCHITECTURE.md |
For the Stage 8/9 IR pipeline, the practical inspection flow is:
lowered_ir(...)).
This keeps machine output (neurocode(...)) and human-readable inspection output separate.
?- use_module(starlog).
?- IR = lowered_ir([lowered_poly_eval(n, [0,0.5,0.5], result)]),
npl_stage9_generate_code(IR, Generated),
npl_stage9_compile_ir(IR, Neurocode),
npl_ir_to_annotated_source_text(IR, [source_file('examples/generated_input.pl')], Text).