mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-26 19:51:52 +03:00
23 lines
394 B
Plaintext
23 lines
394 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_files: ../inputs/shift_and_pow.in
|
|
*/
|
|
|
|
program test.aleo {
|
|
transition unsigned(a: u8, b: u8, c: u16, d: u32) -> u8 {
|
|
a **= b;
|
|
a **= c;
|
|
a **= d;
|
|
|
|
return a;
|
|
}
|
|
|
|
function signed(a: i8, b: u8, c: u16, d: u32) -> i8 {
|
|
a **= b;
|
|
a **= c;
|
|
a **= d;
|
|
|
|
return a;
|
|
}}
|