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

Function decode_constant_val

crates/ffi/src/lean_env.rs:881–893  ·  view source on GitHub ↗
(
  obj: LeanBorrowed<'_>,
  cache: &mut Cache<'_>,
)

Source from the content-addressed store, hash-verified

879 },
880 7 => {
881 let binder_name = decode_name(e.get_obj(0), cache.global);
882 let binder_typ = decode_expr(e.get_obj(1), cache);
883 let body = decode_expr(e.get_obj(2), cache);
884 let binder_info = decode_binder_info(e.get_num_8(0));
885 Expr::all(binder_name, binder_typ, body, binder_info)
886 },
887 8 => {
888 let decl_name = decode_name(e.get_obj(0), cache.global);
889 let typ = decode_expr(e.get_obj(1), cache);
890 let value = decode_expr(e.get_obj(2), cache);
891 let body = decode_expr(e.get_obj(3), cache);
892 let nondep = e.get_num_8(0) != 0;
893 Expr::letE(decl_name, typ, value, body, nondep)
894 },
895 9 => {
896 let lit = LeanIxLiteral::from_ctor(e.get_obj(0).as_ctor());

Callers 1

decode_constant_infoFunction · 0.85

Calls 3

decode_nameFunction · 0.85
collect_list_borrowedFunction · 0.85
decode_exprFunction · 0.85

Tested by

no test coverage detected