MCPcopy Create free account
hub / github.com/argumentcomputer/ix / cap_flags_infeasible_atomic_block

Function cap_flags_infeasible_atomic_block

crates/kernel/src/shard.rs:2234–2243  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2232 let order: Vec<u32> = if n_fine < 2 {
2233 (0..nblocks as u32).collect()
2234 } else {
2235 let h = Hypergraph::from_profile(profile);
2236 let (fine_of, fine_tree) = h.partition_with_tree(n_fine, epsilon);
2237 let mut leaf_order = Vec::with_capacity(n_fine);
2238 dfs_leaf_order(&fine_tree, &mut leaf_order);
2239 let mut rank = vec![0u32; n_fine];
2240 for (r, &sid) in leaf_order.iter().enumerate() {
2241 rank[sid as usize] = r as u32;
2242 }
2243 let mut order: Vec<u32> = (0..nblocks as u32).collect();
2244 order.sort_by_key(|&b| (rank[fine_of[b as usize] as usize], b));
2245 order
2246 };

Callers

nothing calls this directly

Calls 4

partition_for_cycle_capFunction · 0.85
blockMethod · 0.80
addrFunction · 0.70
finishMethod · 0.45

Tested by

no test coverage detected