26_tail_live_pressure.toy (514B)
1 fn sink(a: i64, b: i64, c: i64, d: i64, 2 e: i64, f: i64, g: i64, h: i64): i64 { 3 return a + b * 2 + c * 3 + d * 4 + 4 e * 5 + f * 6 + g * 7 + h * 8; 5 } 6 7 fn pressure(x: i64): i64 { 8 let a: i64 = x + 1; 9 let b: i64 = x + 2; 10 let c: i64 = x + 3; 11 let d: i64 = x + 4; 12 let e: i64 = x + 5; 13 let f: i64 = x + 6; 14 let g: i64 = x + 7; 15 let h: i64 = x + 8; 16 return tail sink(h, f, d, b, g, e, c, a); 17 } 18 19 fn __user_main(): i64 { 20 return pressure(1); 21 } 22 23 fn main(): i32 { return __user_main() as i32; }