MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / ir_opt_preserves_control_flow_program

Function ir_opt_preserves_control_flow_program

tests/integration/vm_execution.rs:419–433  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

417main: () -> i32 {
418 bag: bags.Bag = { .. }
419 bag.count = 3
420 bag.items[0] = 20
421 bag.items[1] = 15
422 bag.items[2] = 7
423 return bags.total_of<bags.Bag>(&bag)
424}
425"#;
426 let closure = pipeline
427 .compile_program_closure("user", primary)
428 .expect("closure compile failed");
429
430 let mut modules: Vec<(&str, &AssembledOutput)> = cached_stdlib_objs()
431 .iter()
432 .map(|(n, o)| (n.as_str(), o))
433 .collect();
434 for (name, obj) in &closure {
435 modules.push((name.as_str(), obj));
436 }

Callers

nothing calls this directly

Calls 1

run_hll_optimizeFunction · 0.85

Tested by

no test coverage detected