Skip to main content

nanvm_harness/gen.fixtures/
closure.rs

1// @generated by `fjs compile`. Do not edit: recompile the source module instead.
2
3use nanvm_lib::vm::unstable::{f64_any, string_key};
4use nanvm_lib::vm::{Any, Array, IStaticFunction, ToAny, ToArray, ToObject};
5
6#[rustfmt::skip]
7#[allow(clippy::if_same_then_else)]
8pub fn module<A: IStaticFunction>(_runtime: Any<A>) -> Result<Any<A>, Any<A>> {
9    let _b7: Any<A> = A::static_function(|_self, _args| {
10        let _b648: Any<A> = _args.rest(0).to_any();
11        Ok(A::static_function(|_self, _args| {
12            let _b565: Any<A> = _args.rest(0).to_any();
13            (Any::dot(A::frame(_self)[0].clone(), f64_any(0x0000000000000000)).end())? + (Any::dot(_b565.clone(), f64_any(0x0000000000000000)).end())?
14        }, 0, [_b648.clone()].to_array(), Some("(...$1)=>$0[0]+$1[0]")).to_any())
15    }, 0, Array::default(), Some("(...$0)=>(...$1)=>$0[0]+$1[0]")).to_any();
16    let _b10: Any<A> = [f64_any(0x4024000000000000)].to_array().to_any();
17    let _b31: Any<A> = A::static_function(|_self, _args| {
18        let _b2640: Any<A> = _args.rest(0).to_any();
19        Ok(A::static_function(|_self, _args| {
20            let _b2557: Any<A> = _args.rest(0).to_any();
21            Ok(A::static_function(|_self, _args| {
22                let _b2474: Any<A> = _args.rest(0).to_any();
23                Ok([(Any::dot(A::frame(_self)[0].clone(), f64_any(0x0000000000000000)).end())?, (Any::dot(A::frame(_self)[1].clone(), f64_any(0x0000000000000000)).end())?, (Any::dot(_b2474.clone(), f64_any(0x0000000000000000)).end())?, (Any::dot(A::frame(_self)[0].clone(), f64_any(0x0000000000000000)).end())?].to_array().to_any())
24            }, 0, [A::frame(_self)[0].clone(), _b2557.clone()].to_array(), Some("(...$2)=>[$0[0],$1[0],$2[0],$0[0]]")).to_any())
25        }, 0, [_b2640.clone()].to_array(), Some("(...$1)=>(...$2)=>[$0[0],$1[0],$2[0],$0[0]]")).to_any())
26    }, 0, Array::default(), Some("(...$0)=>(...$1)=>(...$2)=>[$0[0],$1[0],$2[0],$0[0]]")).to_any();
27    Ok([(string_key("default"), {
28        let _b16: Any<A> = A::static_function(|_self, _args| {
29            let _b1395: Any<A> = _args.rest(0).to_any();
30            (Any::dot(A::frame(_self)[0].clone(), f64_any(0x0000000000000000)).end())? + (Any::dot(_b1395.clone(), f64_any(0x0000000000000000)).end())?
31        }, 0, [_b10.clone()].to_array(), Some("(...$1)=>$0[0]+$1[0]")).to_any();
32        let _b46: Any<A> = A::static_function(|_self, _args| {
33            let _b3885: Any<A> = _args.rest(0).to_any();
34            Ok(A::static_function(|_self, _args| {
35                let _b3802: Any<A> = _args.rest(0).to_any();
36                ((Any::dot(A::frame(_self)[0].clone(), f64_any(0x0000000000000000)).end())? + (Any::dot(_b3802.clone(), f64_any(0x0000000000000000)).end())?)? + (Any::dot(A::frame(_self)[1].clone(), f64_any(0x0000000000000000)).end())?
37            }, 0, [_b3885.clone(), A::frame(_self)[0].clone()].to_array(), Some("(...$2)=>$0[0]+$2[0]+$1[0]")).to_any())
38        }, 0, [_b10.clone()].to_array(), Some("(...$1)=>(...$2)=>$1[0]+$2[0]+$0[0]")).to_any();
39        [{
40            let _b8: Any<A> = (Any::call(_b7.clone(), [f64_any(0x3ff0000000000000)].to_array().to_any()))?;
41            (Any::call(_b8.clone(), [f64_any(0x4000000000000000)].to_array().to_any()))?
42        }, (Any::call(_b16.clone(), [f64_any(0x4014000000000000)].to_array().to_any()))?, {
43            let _b33: Any<A> = {
44                let _b32: Any<A> = (Any::call(_b31.clone(), [f64_any(0x3ff0000000000000)].to_array().to_any()))?;
45                (Any::call(_b32.clone(), [f64_any(0x4000000000000000)].to_array().to_any()))?
46            };
47            (Any::call(_b33.clone(), [f64_any(0x4008000000000000)].to_array().to_any()))?
48        }, {
49            let _b47: Any<A> = (Any::call(_b46.clone(), [f64_any(0x4034000000000000)].to_array().to_any()))?;
50            (Any::call(_b47.clone(), [f64_any(0x4028000000000000)].to_array().to_any()))?
51        }].to_array().to_any()
52    })].to_object().to_any())
53}