rust 1,859,989 · typescript 235,537 · javascript 132,952 · python 20,426 · 6,407 files · digest 4f42637fac12 · built in 1.2 s · crystals off
crates/cre8-app-inference-proof/src/riscv_kernel.rs
Items
const ZERO const A0 const A7 const T0 const T1 const T2 const T3 const T4 const T5 const T6 const ECALL const ENTRY const W_BASE const V_BASE const SYS_EXIT const EHDR const PHDR const ELFCLASS64 const ELFDATA2LSB const ET_EXEC const EM_RISCV const PT_LOAD struct RiscvChunkedAttestation struct SignedRiscvChunkedAttestation const INT8_LAYER_MODEL const MAX_LAYER_WEIGHT_BYTES const CODE_PAGE const DATA_BASE const DATA_LUI const LAYER_OUT_BASE const LAYER_OUT_LUI const A1 const A2 const A3 struct LayerSpec impl LayerSpec struct LayerArtifact const EHDR const PHDR const PAGE const PT_LOAD struct Int8LayerRun const LAYER_PROOF_POLICY
Functions
By call-graph weight (PageRank; 1.0 is the average function). 64 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| LayerSpec::weight_bytessrc/riscv_kernel.rs:482 | method | 3 | 1 | 14 | 0 | 4.4 | |
| i_typesrc/riscv_kernel.rs:49 | fn | 3 | 1 | 4 | 0 | 3.5 | |
| r_typesrc/riscv_kernel.rs:46 | fn | 3 | 1 | 3 | 0 | 2.2 | |
| requantize_activationssrc/riscv_kernel.rs:821 | fn | 4 | 1 | 6 | 0 | 1.9 | |
| addisrc/riscv_kernel.rs:72 | fn | 3 | 1 | 5 | 1 | 1.6 | |
| build_riscv_elfsrc/riscv_kernel.rs:176 | fn | 41 | 1 | 2 | 3 | 1.4 | |
| value_matmul_referencesrc/riscv_kernel.rs:157 | fn | 3 | 1 | 3 | 0 | 1.3 | |
| centered_matmul_referencesrc/riscv_kernel.rs:346 | fn | 3 | 1 | 3 | 0 | 1.3 | |
| u_typesrc/riscv_kernel.rs:67 | fn | 3 | 1 | 1 | 0 | 1.3 | |
| LayerSpec::max_stepssrc/riscv_kernel.rs:488 | method | 4 | 1 | 4 | 0 | 1.2 | |
| build_int8_layer_elfsrc/riscv_kernel.rs:594 | fn | 56 | 6 | 7 | 5 | 1.1 | |
| s_typesrc/riscv_kernel.rs:52 | fn | 4 | 1 | 1 | 0 | 1.1 | |
| b_typesrc/riscv_kernel.rs:56 | fn | 11 | 1 | 1 | 0 | 1.1 | |
| build_value_matmul_elfsrc/riscv_kernel.rs:164 | fn | 8 | 2 | 2 | 2 | 1.1 | |
| build_centered_matmul_elfsrc/riscv_kernel.rs:351 | fn | 8 | 2 | 2 | 2 | 1.1 | |
| int8_layer_referencesrc/riscv_kernel.rs:573 | fn | 11 | 1 | 4 | 0 | 1.1 | |
| put_u16src/riscv_kernel.rs:218 | fn | 3 | 1 | 2 | 0 | 1 | |
| put_u32src/riscv_kernel.rs:221 | fn | 3 | 1 | 2 | 0 | 1 | |
| put_u64src/riscv_kernel.rs:224 | fn | 3 | 1 | 2 | 0 | 1 | |
| value_matmul_programsrc/riscv_kernel.rs:112 | fn | 42 | 1 | 1 | 9 | 1 | |
| centered_matmul_programsrc/riscv_kernel.rs:305 | fn | 39 | 1 | 1 | 10 | 1 | |
| prove_value_matmul_riscvsrc/riscv_kernel.rs:258 | fn | 35 | 1 | 1 | 2 | 0.9 | |
| prove_centered_matmul_riscvsrc/riscv_kernel.rs:379 | fn | 38 | 1 | 1 | 2 | 0.9 | |
| int8_layer_run_from_resultsrc/riscv_kernel.rs:742 | fn | 15 | 2 | 2 | 3 | 0.9 | |
| luisrc/riscv_kernel.rs:96 | fn | 3 | 1 | 4 | 1 | 0.9 | |
| lisrc/riscv_kernel.rs:99 | fn | 3 | 1 | 4 | 1 | 0.9 | |
| slice_ref_forsrc/riscv_kernel.rs:973 | fn | 10 | 1 | 5 | 2 | 0.9 | |
| patternsrc/riscv_kernel.rs:969 | fn | 3 | 1 | 5 | 0 | 0.9 | |
| run_int8_layersrc/riscv_kernel.rs:760 | fn | 8 | 2 | 5 | 2 | 0.9 | |
| align_upsrc/riscv_kernel.rs:585 | fn | 3 | 1 | 2 | 0 | 0.8 | |
| activation_bytessrc/riscv_kernel.rs:734 | fn | 3 | 1 | 2 | 0 | 0.8 | |
| layer_outputs_from_resultsrc/riscv_kernel.rs:711 | fn | 11 | 2 | 1 | 0 | 0.7 | |
| verify_layer_chainsrc/riscv_kernel.rs:827 | fn | 18 | 3 | 3 | 2 | 0.7 | |
| addsrc/riscv_kernel.rs:78 | fn | 3 | 1 | 3 | 1 | 0.7 | |
| mulsrc/riscv_kernel.rs:84 | fn | 3 | 1 | 3 | 1 | 0.7 | |
| sdsrc/riscv_kernel.rs:90 | fn | 3 | 1 | 3 | 1 | 0.7 | |
| bltsrc/riscv_kernel.rs:93 | fn | 3 | 1 | 3 | 1 | 0.7 | |
| int8_layer_programsrc/riscv_kernel.rs:535 | fn | 35 | 1 | 1 | 9 | 0.7 | |
| build_riscv_elf_with_datasrc/riscv_kernel.rs:656 | fn | 52 | 1 | 1 | 4 | 0.7 | |
| sllisrc/riscv_kernel.rs:75 | fn | 3 | 1 | 2 | 1 | 0.7 | |
| ldsrc/riscv_kernel.rs:87 | fn | 3 | 1 | 2 | 1 | 0.7 | |
| layer_ir_hash_hexsrc/riscv_kernel.rs:803 | fn | 3 | 1 | 1 | 1 | 0.6 | |
| layer_output_schema_hexsrc/riscv_kernel.rs:809 | fn | 3 | 1 | 1 | 1 | 0.6 | |
| layer_proof_policy_hexsrc/riscv_kernel.rs:814 | fn | 3 | 1 | 1 | 1 | 0.6 | |
| prove_int8_layersrc/riscv_kernel.rs:774 | fn | 6 | 1 | 1 | 2 | 0.6 | |
| subsrc/riscv_kernel.rs:81 | fn | 3 | 1 | 1 | 1 | 0.6 | |
| lbsrc/riscv_kernel.rs:455 | fn | 3 | 1 | 1 | 1 | 0.6 | |
| li32src/riscv_kernel.rs:460 | fn | 13 | 4 | 1 | 3 | 0.6 | |
| LayerSpec::validatesrc/riscv_kernel.rs:493 | method | 12 | 4 | 0 | 1 | 0.5 | |
| serializesrc/riscv_kernel.rs:525 | fn | 3 | 1 | 0 | 1 | 0.5 | |
| deserializesrc/riscv_kernel.rs:529 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| value_matmul_kernel_runs_and_matches_referencesrc/riscv_kernel.rs:854 | fn | 20 | 1 | 0 | 2 | 0.5 | |
| value_matmul_chunked_proof_folds_and_verifiessrc/riscv_kernel.rs:880 | fn | 22 | 1 | 0 | 1 | 0.5 | |
| reference_is_correctsrc/riscv_kernel.rs:905 | fn | 9 | 1 | 0 | 2 | 0.5 | |
| centered_matmul_runs_signed_and_matches_referencesrc/riscv_kernel.rs:919 | fn | 18 | 1 | 0 | 2 | 0.5 | |
| centered_matmul_chunked_proof_folds_signedsrc/riscv_kernel.rs:943 | fn | 15 | 1 | 0 | 1 | 0.5 | |
| int8_layer_assembly_is_deterministic_and_binds_every_weight_bytesrc/riscv_kernel.rs:985 | fn | 19 | 1 | 0 | 5 | 0.5 | |
| int8_layer_emulation_matches_the_native_referencesrc/riscv_kernel.rs:1006 | fn | 16 | 1 | 0 | 7 | 0.5 | |
| int8_layer_is_assembled_from_corpus_chunks_and_a_bad_chunk_is_refused_firstsrc/riscv_kernel.rs:1024 | fn | 27 | 1 | 0 | 8 | 0.5 | |
| int8_layer_attestation_commits_to_the_artifact_content_addresssrc/riscv_kernel.rs:1053 | fn | 14 | 1 | 0 | 5 | 0.5 | |
| int8_layer_shape_and_budget_guardssrc/riscv_kernel.rs:1069 | fn | 22 | 1 | 0 | 4 | 0.5 | |
| requantize_shifts_arithmetically_and_clampssrc/riscv_kernel.rs:1093 | fn | 9 | 1 | 0 | 1 | 0.5 | |
| two_layers_chain_by_activation_hash_and_a_swapped_vector_breaks_the_chainsrc/riscv_kernel.rs:1104 | fn | 29 | 1 | 0 | 10 | 0.5 | |
| layer_parcel_components_are_fixed_strings_of_the_kernel_and_shapesrc/riscv_kernel.rs:1135 | fn | 13 | 1 | 0 | 4 | 0.5 |
Source not readable from this process.