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

Function pow_2

examples/cpp/integer_arithmetics.cpp:1–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1int pow_2(int a) {
2 int res = 1;
3 for (int i = 0; i < 2; ++i) {
4 res *= a;
5 }
6 return res;
7}
8
9[[circuit]] int int_arithmetic_example(int a, int b) {
10 int c = (a + b) * a + b * (a + b) * (a + b);

Callers 1

int_arithmetic_exampleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected