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

Function defn_const

crates/kernel/src/claim.rs:113–126  ·  view source on GitHub ↗
(refs: Vec<Address>)

Source from the content-addressed store, hash-verified

111mod tests {
112 use super::*;
113 use ix_common::env::DefinitionSafety;
114 use ixon::constant::{Axiom, Constant, ConstantInfo, DefKind, Definition};
115 use ixon::expr::Expr;
116 use ixon::merkle::leaf_hash;
117 use std::sync::Arc;
118
119 fn axiom_const(refs: Vec<Address>) -> Constant {
120 Constant::with_tables(
121 ConstantInfo::Axio(Axiom {
122 is_unsafe: false,
123 lvls: 0,
124 typ: Arc::new(Expr::Sort(0)),
125 }),
126 Vec::new(),
127 refs,
128 Vec::new(),
129 )

Calls 2

sortFunction · 0.85
varFunction · 0.70