fn vm_print_lifetimes(args: &ArgMatches) {
    let function_name = args.value_of("function").unwrap();
    let file_name = args.value_of("bytecode").unwrap();

    let mut module_loader = ModuleLoader::from_module(std_module());
    let id = module_loader.load_module(file_name).unwrap();
    let module = module_loader
        .get_by_id(id)
        .expect("missing module")
        .expect("missing impl");
    let func = module.get_function_by_name(function_name).unwrap();
    let cfg = ControlFlowGraph::from_function_instructions(func);
    let intervals = &cfg.liveness_intervals(func);
    func.print_liveness(intervals);
}
/// Prints the computed register lifetimes of a function.
///
/// The function is specified by the `function` command line argument.
/// The module is specified by the `bytecode` command line argument.
///
/// Arguments: 
/// * `args`: Command line arguments
Prints the computed register lifetimes of a function.
The function is specified by the `function` command line argument.
The module is specified by the `bytecode` command line argument.

`args`: Command line arguments
Prints the computed register lifetimes of a function . The function is specified by the ` function ` command line argument . The module is specified by the ` bytecode ` command line argument . ` args ` : Command line arguments
fn vm_print_lifetimes(args: &ArgMatches) {
    let function_name = args.value_of("function").unwrap();
    let file_name = args.value_of("bytecode").unwrap();
    let mut module_loader = ModuleLoader::from_module(std_module());
    let id = module_loader.load_module(file_name).unwrap();
    let module = module_loader
        .get_by_id(id)
        .expect("missing module")
        .expect("missing impl");
    let func = module.get_function_by_name(function_name).unwrap();
    let cfg = ControlFlowGraph::from_function_instructions(func);
    let intervals = &cfg.liveness_intervals(func);
    func.print_liveness(intervals);
}
fn vm_print_lifetimes ( args : & ArgMatches ) { let function_name = args . value_of ( " " ) . unwrap ( ) ; let file_name = args . value_of ( " " ) . unwrap ( ) ; let mut module_loader = ModuleLoader :: from_module ( std_module ( ) ) ; let id = module_loader . load_module ( file_name ) . unwrap ( ) ; let module = module_loader . get_by_id ( id ) . expect ( " " ) . expect ( " " ) ; let func = module . get_function_by_name ( function_name ) . unwrap ( ) ; let cfg = ControlFlowGraph :: from_function_instructions ( func ) ; let intervals = & cfg . liveness_intervals ( func ) ; func . print_liveness ( intervals ) ; }
Prints the computed register lifetimes of a function.
Prints the computed register lifetimes of a function .
args
&ArgMatches
args
&ArgMatches