Files
ziran/bootstrap/compiler_proof/compiler_proof.h
T
waozi 4dc2da6b09 Publish measured desktop, Android and web target matrix
Compare five real examples across four targets on three measured platforms, preserving raw samples, independent output verification and artifact provenance.

Complete the WebAssembly support needed by the examples, inspect ZX bundles, prune generated C dependencies while preserving C++ linkage, and validate native script execution. Optimize only the temporary bootstrap seed and retain fresh-build measurements and historical benchmark records under bench/results.

Local tests: all 522 cases passed across the full run and corrected header-test rerun; all 16 bootstrap modules match. Playground runtime, bundle runtime, private browser layouts and matrix controls, published artifacts and local site links passed.
2026-11-10 23:50:12 -03:00

136 lines
2.9 KiB
C

/* Generated by zi2c from compiler_proof.zi. */
#ifndef ZIRAN_COMPILER_PROOF_H
#define ZIRAN_COMPILER_PROOF_H
#include <stdbool.h>
#include "zir_string_types.h"
#include "zir_slice.h"
#include "compiler_ir.h"
#include "compiler_proof_kernel.h"
#include "compiler_services.h"
#include "compiler_source.h"
#include "compiler_text.h"
#include "vec.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef ZIRAN_COMPILER_PROOF_H_PRIVATE
#define NameMax 128
#endif
#ifdef ZIRAN_COMPILER_PROOF_H_PRIVATE
#define TextMax 4096
#endif
#ifdef ZIRAN_COMPILER_PROOF_H_PRIVATE
typedef struct Spelled Spelled;
#endif
#ifdef ZIRAN_COMPILER_PROOF_H_PRIVATE
typedef struct Long Long;
#endif
#ifdef ZIRAN_COMPILER_PROOF_H_PRIVATE
typedef struct Signature Signature;
#endif
#ifdef ZIRAN_COMPILER_PROOF_H_PRIVATE
typedef struct Binding Binding;
#endif
#ifdef ZIRAN_COMPILER_PROOF_H_PRIVATE
typedef struct Environment Environment;
#endif
#ifdef ZIRAN_COMPILER_PROOF_H_PRIVATE
typedef struct Continuation Continuation;
#endif
#ifdef ZIRAN_COMPILER_PROOF_H_PRIVATE
typedef struct Unfolds Unfolds;
#endif
#ifdef ZIRAN_COMPILER_PROOF_H_PRIVATE
typedef struct Context Context;
#endif
#ifndef ZIRAN_CONCRETE_FORWARD___type_838711075b90279a
#define ZIRAN_CONCRETE_FORWARD___type_838711075b90279a
typedef struct __type_838711075b90279a __type_838711075b90279a;
#endif
#ifdef ZIRAN_COMPILER_PROOF_H_PRIVATE
struct Spelled {
uint8_t bytes[128];
};
#endif
#ifdef ZIRAN_COMPILER_PROOF_H_PRIVATE
struct Long {
uint8_t bytes[4096];
};
#endif
#ifdef ZIRAN_COMPILER_PROOF_H_PRIVATE
struct Signature {
String names[16];
String types[16];
int32_t count;
};
#endif
#ifdef ZIRAN_COMPILER_PROOF_H_PRIVATE
struct Binding {
String name;
int32_t value;
};
#endif
#ifdef ZIRAN_COMPILER_PROOF_H_PRIVATE
struct Environment {
Binding bindings[64];
int32_t count;
};
#endif
#ifdef ZIRAN_COMPILER_PROOF_H_PRIVATE
struct Continuation {
int32_t start;
int32_t stop;
int32_t scope;
struct Continuation* next;
};
#endif
#ifdef ZIRAN_COMPILER_PROOF_H_PRIVATE
struct Unfolds {
ZirFunction* functions[64];
int32_t count;
bool all;
};
#endif
#ifdef ZIRAN_COMPILER_PROOF_H_PRIVATE
struct Context {
ProofKernel kernel;
ZirFunction* active[64];
int32_t active_count;
Unfolds unfold;
ZirLaw* laws[64];
int32_t law_count;
bool unsupported;
bool invalid;
String reason;
};
#endif
#ifndef ZIRAN_CONCRETE___type_838711075b90279a
#define ZIRAN_CONCRETE___type_838711075b90279a
struct __type_838711075b90279a {
uint8_t* data;
int64_t count;
int64_t capacity;
};
#endif
ZirLaw* FindVisibleLaw(ZirModule* m, uint8_t* name, ZirModule** owner);
int32_t ParseProofDeclaration(ZirModule* m, uint8_t* source, ZirSourceSpan span);
int32_t PrepareLawProofs(ZirProgram** programs, int32_t count);
int32_t EvaluateTheorem(ZirModule* module, ZirLaw* law, uint8_t* detail, size_t size);
#ifdef __cplusplus
}
#endif
#endif /* ZIRAN_COMPILER_PROOF_H */