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.
18 lines
419 B
LLVM
18 lines
419 B
LLVM
; expect: reject E3002
|
|
; phase: 6
|
|
; spec: docs/spec/15-source-language.md §18; docs/spec/03-memory-model.md
|
|
module test.static_functions
|
|
air 0
|
|
lang 0.1
|
|
features [capabilities, effects, heap, ownership, resources]
|
|
fn @selected(%value: own<u64>) -> u64
|
|
effects []
|
|
entry:
|
|
%result = const.u64 42
|
|
ret %result
|
|
fn @apply(%value: own<u64>) -> u64
|
|
effects []
|
|
entry:
|
|
%result = call @selected(%value)
|
|
ret %result
|