Files
aji/tests/conformance/static_functions/copy.air
T
dev f02f4bd55b cli: add explicit static function parameters
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.
2026-10-07 10:23:03 +03:00

24 lines
465 B
LLVM

; expect: run
; result: 42
; phase: 6
; spec: docs/spec/15-source-language.md §18; docs/spec/07a-air-instructions.md call
module test.static_functions
air 0
lang 0.1
features [effects]
fn @identity(%value: u64) -> u64
effects []
entry:
ret %value
fn @apply(%value: u64) -> u64
effects []
entry:
%result = call @identity(%value)
ret %result
fn @main() -> u64
effects []
entry:
%value = const.u64 42
%result = call @apply(%value)
ret %result