Skip to main content

luaur_code_gen/functions/
dump_dot.rs

1extern crate alloc;
2
3use crate::functions::to_dot::to_dot;
4use crate::records::ir_function::IrFunction;
5use alloc::string::String;
6
7pub fn dump_dot(function: &IrFunction, include_inst: bool) -> String {
8    let result = to_dot(function, include_inst);
9
10    std::println!("{}", result);
11
12    result
13}