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

Function whnf_system_platform_num_bits

crates/kernel/src/whnf.rs:4324–4337  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4322 let opaque = AE::cnst(mk_id("opaque"), Box::new([]));
4323 // Opaque should NOT be unfolded
4324 let result = tc.whnf(&opaque).unwrap();
4325 assert!(matches!(result.data(), ExprData::Const(..)));
4326 }
4327
4328 #[test]
4329 fn whnf_delta_opaque_hint_unfolds() {
4330 let mut env = env_with_id();
4331 let mut tc = TypeChecker::new(&mut env);
4332 let opaque_def = AE::cnst(mk_id("opaque_def"), Box::new([]));
4333 let result = tc.whnf(&opaque_def).unwrap();
4334 assert_eq!(result, sort1());
4335 }
4336
4337 #[test]
4338 fn major_scan_does_not_capture_an_unrelated_caller_let() {
4339 let target_id = mk_id("major-scan-target");
4340 let mut env = KEnv::new();

Callers

nothing calls this directly

Calls 5

usize_envFunction · 0.85
whnfMethod · 0.80
cnstFunction · 0.70
cloneMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected