MCPcopy Create free account
hub / github.com/NilFoundation/zkLLVM / int_arithmetic_example

Function int_arithmetic_example

examples/cpp/integer_arithmetics.cpp:9–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7}
8
9[[circuit]] int int_arithmetic_example(int a, int b) {
10 int c = (a + b) * a + b * (a + b) * (a + b);
11 const int constant = 77;
12 return c * c * c * (b - a) + pow_2(a) + constant;
13}

Callers

nothing calls this directly

Calls 1

pow_2Function · 0.70

Tested by

no test coverage detected