interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / src / physics0 / ladder / pd0_codes.c

36 lines · 2608 bytes Raw Blame History
1/* SPDX-License-Identifier: Apache-2.0
2 * Copyright 2026 Drake Stapleton (AIEN / aien-dev)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include "pd0_codes.h"
18#define C(x) case x: return #x;
19const char *pd0v_name(int code)
20{
21 switch (code) {
22 C(PD0V_OK) C(PD0V_BAD_MAGIC) C(PD0V_BAD_VERSION) C(PD0V_TRUNCATED) C(PD0V_HASH_MISMATCH) C(PD0V_CHAIN_BROKEN) C(PD0V_BAD_FIELD) C(PD0V_TOO_LARGE)
23 C(PD0V_T1_TOO_FEW_RECORDS) C(PD0V_T1_TOO_FEW_EPISODES)
24 C(PD0V_T2_NO_EVIDENCE) C(PD0V_T2_CORR_TOO_WEAK) C(PD0V_T2_P_TOO_HIGH) C(PD0V_T2_TOO_FEW_SHUFFLES) C(PD0V_T2_CORR_MISMATCH) C(PD0V_T2_TOO_FEW_RECORDS)
25 C(PD0V_T3_NO_CANDIDATE) C(PD0V_T3_SIZE_EXCEEDED) C(PD0V_T3_FIT_ERROR_TOO_HIGH) C(PD0V_T3_RESIDUALS_NOT_WHITE) C(PD0V_T3_DEGREE_EXCEEDED) C(PD0V_T3_BAD_RELATION)
26 C(PD0V_T4_NO_RIVAL) C(PD0V_T4_NO_FALSIFIER) C(PD0V_T4_EPS_ABOVE_BOUND) C(PD0V_T4_FALSIFIER_AFTER_TRIAL) C(PD0V_T4_UNKNOWN_CANDIDATE) C(PD0V_T4_UNKNOWN_RIVAL)
27 C(PD0V_T5_TOO_FEW_PREREG) C(PD0V_T5_SCHEDULE_REUSED) C(PD0V_T5_MISSING_RIVAL_PREDICTION) C(PD0V_T5_PREREG_AFTER_TRIAL) C(PD0V_T5_OUT_OF_BOUNDS)
28 C(PD0V_T6_TRIAL_MISSING) C(PD0V_T6_TRIAL_FAILED) C(PD0V_T6_TRIAL_NOT_PREREGISTERED)
29 C(PD0V_T7_TOO_FEW_BATCHES) C(PD0V_T7_BATCH_TOO_SMALL) C(PD0V_T7_BATCH_FAILED) C(PD0V_T7_STREAM_REUSED) C(PD0V_T7_ORIGIN_IMBALANCE) C(PD0V_REP_INFLUENCED_FIT) C(PD0V_T7_EPISODE_ABOVE_3EPS)
30 C(PD0V_T8_STATE_SKIPPED) C(PD0V_T8_CONFIDENCE_MISMATCH) C(PD0V_T8_EXCEPTIONS_MISMATCH) C(PD0V_T8_EXPERIMENT_MISSING) C(PD0V_T8_CHAIN_ROOT_MISMATCH) C(PD0V_T8_CLAIM_FORBIDDEN_WORD)
31 C(PD0V_T8_CLAIM_TEXT_MISMATCH) C(PD0V_T8_DOMAIN_MISMATCH) C(PD0V_LAW_ID_MISMATCH) C(PD0V_LAW_DEMOTED) C(PD0V_T8_RELATION_MISMATCH) C(PD0V_T8_REFUTATION_COUNT_MISMATCH) C(PD0V_T8_STATE_MISMATCH)
32 C(PD0V_SCORE_INBOX_NRMSE) C(PD0V_SCORE_EXTRAP_NRMSE) C(PD0V_SCORE_ONESTEP_NRMSE) C(PD0V_SCORE_SIZE) C(PD0V_SCORE_SUPPORT_MISSING) C(PD0V_SCORE_CONSTANT_OFF)
33 C(PD0V_SCORE_DEGREE) C(PD0V_SCORE_L6_LATENT_MISSING) C(PD0V_SCORE_L6_REFERENCE_TOO_GOOD) C(PD0V_SCORE_BITS_MISMATCH) C(PD0V_RECEIPT_IO)
34 default: return "PD0V_UNKNOWN";
35 }
36}