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

Function build_claims_are_deterministic

crates/kernel/src/claim.rs:275–284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

273 fn shard_check_env_claim_is_thin_frontier() {
274 // a -> b -> c: owned {a} gives frontier {b} only — c is below the
275 // first layer and must NOT enter the asm set.
276 let env = Env::new();
277 let a = Address::hash(b"a");
278 let b = Address::hash(b"b");
279 let c = Address::hash(b"c");
280 env.store_const(a.clone(), defn_const(vec![b.clone()]));
281 env.store_const(b.clone(), defn_const(vec![c.clone()]));
282 env.store_const(c.clone(), defn_const(vec![]));
283 let (claim, frontier) =
284 build_shard_check_env_claim(&env, std::slice::from_ref(&a)).unwrap();
285 assert_eq!(frontier, vec![b.clone()]);
286 match claim {
287 Claim::CheckEnv { root, assumptions: Some(asm) } => {

Callers

nothing calls this directly

Calls 4

build_check_claimFunction · 0.85
store_constMethod · 0.80
defn_constFunction · 0.70
cloneMethod · 0.45

Tested by

no test coverage detected