main.aug
Function-call benchmark · Source and specification
Files in this project
Code
aug
// aug-spec: "main.aug.md" explains this file. Read it before changes; refresh with aug spec.
import step from operations
int iterations = 200000
int state = 123
int index = 0
while index < iterations:
state = step(value=state)
index = index + 1
print(value=state)Compiled specification
Startup
It sets iterations to 200000. It sets state to 123. It sets index to 0. While index is less than iterations, it sets state to step with value from state; then it increases index by 1. source
After the loop, it prints state. source
Dependencies
It uses step from operations.
Built-in operations follow the language reference.