LANGUAGE · VERIFIED
Functions
fn add(a: int, b: int) -> int {
return a + b;
}
fn main() -> int {
return add(10, 20);
}Verified behavior
- Typed parameters and return types
- Function calls
- Multiple functions in one program
- Functions without an explicit return type in tested scenarios
- Return values and tail expressions
TRACEABILITY
Related Evidence
These references identify supplied project evidence related to the documented area. Test files indicate exercised scenarios; reports and source documents provide additional audit evidence. A listed item is not a claim that every related behavior is covered.
tests/examples/test_func.avstests/examples/test_call.avstests/examples/test_two_fns.avstests/examples/test_return.avs
