MCPcopy Create free account
hub / github.com/IntegralPilot/rustc_codegen_jvm / check_up_to

Function check_up_to

tests/binary/collatz/src/main.rs:11–19  ·  view source on GitHub ↗
(current: u32, limit: u32)

Source from the content-addressed store, hash-verified

9}
10
11fn check_up_to(current: u32, limit: u32) {
12 if current > limit {
13 return;
14 } else {
15 let result = collatz(current);
16 assert!(result == 1);
17 check_up_to(current + 1, limit);
18 }
19}
20
21const U32_TYPE_ID: core::any::TypeId = core::any::TypeId::of::<u32>();
22const U64_TYPE_ID: core::any::TypeId = core::any::TypeId::of::<u64>();

Callers 1

mainFunction · 0.85

Calls 1

collatzFunction · 0.85

Tested by

no test coverage detected