Skip to content

operations.aug ​

Function-call benchmark · Source and specification

Files in this project

Code ​

aug
// aug-spec: "operations.aug.md" explains this file. Read it before changes; refresh with aug spec.
step(int value) returns int:
    int product = value * 48271 + 1
    return product - product / 2147483647 * 2147483647
aug
// aug-spec: "operations.aug.md" explains this file. Read it before changes; refresh with aug spec.
step(int value) returns int {
    int product = value * 48271 + 1
    return product - product / 2147483647 * 2147483647
}

Compiled specification ​

Interactions and sequences

step · source ​

It takes value as an integer. It sets product to (value times 48271) plus 1. It returns product minus ((product divided by 2147483647) times 2147483647). source

Checked interface
text
step(int value) returns int

It takes value as an integer.

Last updated:

The world runs on language