{
    "kind": "module",
    "id": "mod-imp-001",
    "name": "modules",
    "imports": [
        {
            "kind": "import",
            "id": "imp-log-001",
            "module": "math",
            "names": [
                "log"
            ]
        },
        {
            "kind": "import",
            "id": "imp-io-001",
            "module": "io",
            "names": [
                "read_line"
            ]
        }
    ],
    "definitions": [
        {
            "kind": "fn",
            "id": "fn-hyp-001",
            "name": "hypotenuse",
            "params": [
                {
                    "kind": "param",
                    "id": "param-a-imp-001",
                    "name": "a",
                    "type": {
                        "kind": "basic",
                        "name": "Int"
                    }
                },
                {
                    "kind": "param",
                    "id": "param-b-imp-001",
                    "name": "b",
                    "type": {
                        "kind": "basic",
                        "name": "Int"
                    }
                }
            ],
            "effects": [
                "pure"
            ],
            "returnType": {
                "kind": "basic",
                "name": "Int"
            },
            "contracts": [],
            "body": [
                {
                    "kind": "binop",
                    "id": "expr-sum-sq-001",
                    "op": "+",
                    "left": {
                        "kind": "call",
                        "id": "call-pow-a-001",
                        "fn": {
                            "kind": "ident",
                            "id": "ident-pow-a-001",
                            "name": "pow"
                        },
                        "args": [
                            {
                                "kind": "ident",
                                "id": "ident-a-imp-001",
                                "name": "a"
                            },
                            {
                                "kind": "literal",
                                "id": "lit-two-imp-001",
                                "value": 2
                            }
                        ]
                    },
                    "right": {
                        "kind": "call",
                        "id": "call-pow-b-001",
                        "fn": {
                            "kind": "ident",
                            "id": "ident-pow-b-001",
                            "name": "pow"
                        },
                        "args": [
                            {
                                "kind": "ident",
                                "id": "ident-b-imp-001",
                                "name": "b"
                            },
                            {
                                "kind": "literal",
                                "id": "lit-two-imp-002",
                                "value": 2
                            }
                        ]
                    }
                }
            ]
        },
        {
            "kind": "fn",
            "id": "fn-main-001",
            "name": "main",
            "params": [],
            "effects": [
                "pure"
            ],
            "returnType": {
                "kind": "basic",
                "name": "Int"
            },
            "contracts": [],
            "body": [
                {
                    "kind": "let",
                    "id": "let-h-main",
                    "name": "h",
                    "value": {
                        "kind": "call",
                        "id": "call-hyp-main",
                        "fn": {
                            "kind": "ident",
                            "id": "id-hyp-main",
                            "name": "hypotenuse"
                        },
                        "args": [
                            {
                                "kind": "literal",
                                "id": "lit-3-main",
                                "value": 3
                            },
                            {
                                "kind": "literal",
                                "id": "lit-4-main",
                                "value": 4
                            }
                        ]
                    }
                },
                {
                    "kind": "literal",
                    "id": "lit-ret-main",
                    "value": 0
                }
            ]
        }
    ]
}
