Bind typed source functions with exact effect contracts during deterministic specialization; retain nominal operation identity and ordinary AIR verification. Add spec/RFC/grammar, checked Quick Reference examples, source/AIR conformance, package/hosted CLI tests, scheduler/GC coverage and documentation budgets.
11 lines
383 B
Rust
11 lines
383 B
Rust
// expect: run
|
|
// result: 42
|
|
// phase: 6
|
|
// spec: docs/spec/15-source-language.md §18
|
|
// module: app.policy=source/static_functions/policy.aji.inc
|
|
// module: app.algorithm=source/static_functions/algorithm.aji.inc
|
|
module test.static_functions
|
|
import app.policy;
|
|
import app.algorithm;
|
|
fn main() -> u64 effects [] { return app.algorithm.apply::<u64, fn app.policy.identity>(42u64); }
|