% z88dk-zx81bas -d 7 t/80-codegen//input/def_proc.bas
Input file:  t/80-codegen/input/def_proc.bas
Output file: t/80-codegen/input/def_proc.p
% z88dk-ucpp -lg -zI -Z -D__ZX81BAS__ -o "t/80-codegen/input/def_proc.i" "t/80-codegen/input/def_proc.pp"
Prog {
    auto_start: true
    auto_start_line: 0
    auto_start_label: ""
    increment: 10
    rem_invert: false
    fast_mode: false
    dfile_lines: [
    ]
    dfile_collapsed: false
    sysvars_data: [
    ]
    stmts: [
        DefProcStmt {
            location: t/80-codegen/input/def_proc.bas:4
            name: "PROCID"
            params: [
                "PROCIDA"
            ]
            locals: [
            ]
            body: [
                LetStmt {
                    location: t/80-codegen/input/def_proc.bas:5
                    lhs: 
                        VariableExpr {
                            type: Number
                            location: t/80-codegen/input/def_proc.bas:5
                            name: "PROCID"
                        }
                    rhs: 
                        BinaryExpr {
                            type: Number
                            location: t/80-codegen/input/def_proc.bas:5
                            op: /
                            lhs: 
                                BinaryExpr {
                                    type: Number
                                    location: t/80-codegen/input/def_proc.bas:5
                                    op: *
                                    lhs: 
                                        VariableExpr {
                                            type: Number
                                            location: t/80-codegen/input/def_proc.bas:5
                                            name: "PROCIDA"
                                        }
                                    rhs: 
                                        VariableExpr {
                                            type: Number
                                            location: t/80-codegen/input/def_proc.bas:5
                                            name: "PROCIDA"
                                        }
                                }
                            rhs: 
                                VariableExpr {
                                    type: Number
                                    location: t/80-codegen/input/def_proc.bas:5
                                    name: "PROCIDA"
                                }
                        }
                }
            ]
        }
        DimStmt {
            location: t/80-codegen/input/def_proc.bas:8
            items: [
                DimItem {
                    name: "A"
                    dims: [
                        NumberExpr {
                            type: Number
                            location: t/80-codegen/input/def_proc.bas:8
                            value: 2.000000
                        }
                    ]
                }
            ]
        }
        LetStmt {
            location: t/80-codegen/input/def_proc.bas:9
            lhs: 
                ArrayRefExpr {
                    type: Number
                    location: t/80-codegen/input/def_proc.bas:9
                    name: "A"
                    indices: [
                        ProcCallExpr {
                            type: Number
                            location: t/80-codegen/input/def_proc.bas:9
                            name: "PROCID"
                            args: [
                                BinaryExpr {
                                    type: Number
                                    location: t/80-codegen/input/def_proc.bas:9
                                    op: -
                                    lhs: 
                                        NumberExpr {
                                            type: Number
                                            location: t/80-codegen/input/def_proc.bas:9
                                            value: 3.000000
                                        }
                                    rhs: 
                                        NumberExpr {
                                            type: Number
                                            location: t/80-codegen/input/def_proc.bas:9
                                            value: 2.000000
                                        }
                                }
                            ]
                        }
                    ]
                }
            rhs: 
                ProcCallExpr {
                    type: Number
                    location: t/80-codegen/input/def_proc.bas:9
                    name: "PROCID"
                    args: [
                        BinaryExpr {
                            type: Number
                            location: t/80-codegen/input/def_proc.bas:9
                            op: +
                            lhs: 
                                NumberExpr {
                                    type: Number
                                    location: t/80-codegen/input/def_proc.bas:9
                                    value: 10.000000
                                }
                            rhs: 
                                NumberExpr {
                                    type: Number
                                    location: t/80-codegen/input/def_proc.bas:9
                                    value: 1.000000
                                }
                        }
                    ]
                }
        }
        LetStmt {
            location: t/80-codegen/input/def_proc.bas:10
            lhs: 
                ArrayRefExpr {
                    type: Number
                    location: t/80-codegen/input/def_proc.bas:10
                    name: "A"
                    indices: [
                        ProcCallExpr {
                            type: Number
                            location: t/80-codegen/input/def_proc.bas:10
                            name: "PROCID"
                            args: [
                                BinaryExpr {
                                    type: Number
                                    location: t/80-codegen/input/def_proc.bas:10
                                    op: -
                                    lhs: 
                                        NumberExpr {
                                            type: Number
                                            location: t/80-codegen/input/def_proc.bas:10
                                            value: 3.000000
                                        }
                                    rhs: 
                                        NumberExpr {
                                            type: Number
                                            location: t/80-codegen/input/def_proc.bas:10
                                            value: 1.000000
                                        }
                                }
                            ]
                        }
                    ]
                }
            rhs: 
                ProcCallExpr {
                    type: Number
                    location: t/80-codegen/input/def_proc.bas:10
                    name: "PROCID"
                    args: [
                        BinaryExpr {
                            type: Number
                            location: t/80-codegen/input/def_proc.bas:10
                            op: *
                            lhs: 
                                NumberExpr {
                                    type: Number
                                    location: t/80-codegen/input/def_proc.bas:10
                                    value: 11.000000
                                }
                            rhs: 
                                NumberExpr {
                                    type: Number
                                    location: t/80-codegen/input/def_proc.bas:10
                                    value: 2.000000
                                }
                        }
                    ]
                }
        }
        PrintStmt {
            location: t/80-codegen/input/def_proc.bas:12
            items: [
                Expr:
                    StringLiteralExpr {
                        type: String
                        location: t/80-codegen/input/def_proc.bas:12
                        value: "424"
                    }
                Comma
                Expr:
                    BinaryExpr {
                        type: Number
                        location: t/80-codegen/input/def_proc.bas:12
                        op: +
                        lhs: 
                            BinaryExpr {
                                type: Number
                                location: t/80-codegen/input/def_proc.bas:12
                                op: *
                                lhs: 
                                    NumberExpr {
                                        type: Number
                                        location: t/80-codegen/input/def_proc.bas:12
                                        value: 10.000000
                                    }
                                rhs: 
                                    ProcCallExpr {
                                        type: Number
                                        location: t/80-codegen/input/def_proc.bas:12
                                        name: "PROCID"
                                        args: [
                                            NumberExpr {
                                                type: Number
                                                location: t/80-codegen/input/def_proc.bas:12
                                                value: 42.000000
                                            }
                                        ]
                                    }
                            }
                        rhs: 
                            ProcCallExpr {
                                type: Number
                                location: t/80-codegen/input/def_proc.bas:12
                                name: "PROCID"
                                args: [
                                    BinaryExpr {
                                        type: Number
                                        location: t/80-codegen/input/def_proc.bas:12
                                        op: +
                                        lhs: 
                                            NumberExpr {
                                                type: Number
                                                location: t/80-codegen/input/def_proc.bas:12
                                                value: 1.000000
                                            }
                                        rhs: 
                                            NumberExpr {
                                                type: Number
                                                location: t/80-codegen/input/def_proc.bas:12
                                                value: 3.000000
                                            }
                                    }
                                ]
                            }
                    }
            ]
        }
        PrintStmt {
            location: t/80-codegen/input/def_proc.bas:13
            items: [
                Expr:
                    StringLiteralExpr {
                        type: String
                        location: t/80-codegen/input/def_proc.bas:13
                        value: "11"
                    }
                Comma
                Expr:
                    ArrayRefExpr {
                        type: Number
                        location: t/80-codegen/input/def_proc.bas:13
                        name: "A"
                        indices: [
                            NumberExpr {
                                type: Number
                                location: t/80-codegen/input/def_proc.bas:13
                                value: 1.000000
                            }
                        ]
                    }
            ]
        }
        PrintStmt {
            location: t/80-codegen/input/def_proc.bas:14
            items: [
                Expr:
                    StringLiteralExpr {
                        type: String
                        location: t/80-codegen/input/def_proc.bas:14
                        value: "22"
                    }
                Comma
                Expr:
                    ArrayRefExpr {
                        type: Number
                        location: t/80-codegen/input/def_proc.bas:14
                        name: "A"
                        indices: [
                            NumberExpr {
                                type: Number
                                location: t/80-codegen/input/def_proc.bas:14
                                value: 2.000000
                            }
                        ]
                    }
            ]
        }
        DefProcStmt {
            location: t/80-codegen/input/def_proc.bas:16
            name: "PROC1"
            params: [
                "PROC1A"
                "PROC1B"
            ]
            locals: [
                "PROC1L"
                "PROC1L1"
                "PROC1L2"
                "PROC1L3"
            ]
            body: [
                IfStmt {
                    location: t/80-codegen/input/def_proc.bas:19
                    condition: 
                        NumberExpr {
                            type: Number
                            location: t/80-codegen/input/def_proc.bas:19
                            value: 1.000000
                        }
                    then_stmts: [
                    ]
                    else_stmts: [
                    ]
                }
                LetStmt {
                    location: t/80-codegen/input/def_proc.bas:22
                    lhs: 
                        VariableExpr {
                            type: Number
                            location: t/80-codegen/input/def_proc.bas:22
                            name: "PROC1L"
                        }
                    rhs: 
                        BinaryExpr {
                            type: Number
                            location: t/80-codegen/input/def_proc.bas:22
                            op: +
                            lhs: 
                                VariableExpr {
                                    type: Number
                                    location: t/80-codegen/input/def_proc.bas:22
                                    name: "PROC1A"
                                }
                            rhs: 
                                VariableExpr {
                                    type: Number
                                    location: t/80-codegen/input/def_proc.bas:22
                                    name: "PROC1B"
                                }
                        }
                }
                IfStmt {
                    location: t/80-codegen/input/def_proc.bas:23
                    condition: 
                        BinaryExpr {
                            type: Number
                            location: t/80-codegen/input/def_proc.bas:23
                            op: =
                            lhs: 
                                VariableExpr {
                                    type: Number
                                    location: t/80-codegen/input/def_proc.bas:23
                                    name: "PROC1A"
                                }
                            rhs: 
                                NumberExpr {
                                    type: Number
                                    location: t/80-codegen/input/def_proc.bas:23
                                    value: 2.000000
                                }
                        }
                    then_stmts: [
                        ExitStmt {
                            location: t/80-codegen/input/def_proc.bas:23
                        }
                    ]
                    else_stmts: [
                    ]
                }
                LetStmt {
                    location: t/80-codegen/input/def_proc.bas:24
                    lhs: 
                        VariableExpr {
                            type: Number
                            location: t/80-codegen/input/def_proc.bas:24
                            name: "RESULT"
                        }
                    rhs: 
                        VariableExpr {
                            type: Number
                            location: t/80-codegen/input/def_proc.bas:24
                            name: "PROC1L"
                        }
                }
                LetStmt {
                    location: t/80-codegen/input/def_proc.bas:25
                    lhs: 
                        VariableExpr {
                            type: Number
                            location: t/80-codegen/input/def_proc.bas:25
                            name: "PROC1"
                        }
                    rhs: 
                        VariableExpr {
                            type: Number
                            location: t/80-codegen/input/def_proc.bas:25
                            name: "PROC1L"
                        }
                }
            ]
        }
        ProcCallStmt {
            location: t/80-codegen/input/def_proc.bas:28
            name: "PROC1"
            args: [
                NumberExpr {
                    type: Number
                    location: t/80-codegen/input/def_proc.bas:28
                    value: 10.000000
                }
                NumberExpr {
                    type: Number
                    location: t/80-codegen/input/def_proc.bas:28
                    value: 20.000000
                }
            ]
        }
        PrintStmt {
            location: t/80-codegen/input/def_proc.bas:29
            items: [
                Expr:
                    StringLiteralExpr {
                        type: String
                        location: t/80-codegen/input/def_proc.bas:29
                        value: "30"
                    }
                Comma
                Expr:
                    VariableExpr {
                        type: Number
                        location: t/80-codegen/input/def_proc.bas:29
                        name: "RESULT"
                    }
            ]
        }
        ProcCallStmt {
            location: t/80-codegen/input/def_proc.bas:30
            name: "PROC1"
            args: [
                NumberExpr {
                    type: Number
                    location: t/80-codegen/input/def_proc.bas:30
                    value: 30.000000
                }
                NumberExpr {
                    type: Number
                    location: t/80-codegen/input/def_proc.bas:30
                    value: 40.000000
                }
            ]
        }
        PrintStmt {
            location: t/80-codegen/input/def_proc.bas:31
            items: [
                Expr:
                    StringLiteralExpr {
                        type: String
                        location: t/80-codegen/input/def_proc.bas:31
                        value: "70"
                    }
                Comma
                Expr:
                    VariableExpr {
                        type: Number
                        location: t/80-codegen/input/def_proc.bas:31
                        name: "RESULT"
                    }
            ]
        }
        PrintStmt {
            location: t/80-codegen/input/def_proc.bas:32
            items: [
                Expr:
                    StringLiteralExpr {
                        type: String
                        location: t/80-codegen/input/def_proc.bas:32
                        value: "111"
                    }
                Comma
                Expr:
                    BinaryExpr {
                        type: Number
                        location: t/80-codegen/input/def_proc.bas:32
                        op: +
                        lhs: 
                            NumberExpr {
                                type: Number
                                location: t/80-codegen/input/def_proc.bas:32
                                value: 1.000000
                            }
                        rhs: 
                            ProcCallExpr {
                                type: Number
                                location: t/80-codegen/input/def_proc.bas:32
                                name: "PROC1"
                                args: [
                                    NumberExpr {
                                        type: Number
                                        location: t/80-codegen/input/def_proc.bas:32
                                        value: 50.000000
                                    }
                                    NumberExpr {
                                        type: Number
                                        location: t/80-codegen/input/def_proc.bas:32
                                        value: 60.000000
                                    }
                                ]
                            }
                    }
            ]
        }
        PrintStmt {
            location: t/80-codegen/input/def_proc.bas:33
            items: [
                Expr:
                    StringLiteralExpr {
                        type: String
                        location: t/80-codegen/input/def_proc.bas:33
                        value: "111"
                    }
                Comma
                Expr:
                    BinaryExpr {
                        type: Number
                        location: t/80-codegen/input/def_proc.bas:33
                        op: +
                        lhs: 
                            NumberExpr {
                                type: Number
                                location: t/80-codegen/input/def_proc.bas:33
                                value: 1.000000
                            }
                        rhs: 
                            ProcCallExpr {
                                type: Number
                                location: t/80-codegen/input/def_proc.bas:33
                                name: "PROC1"
                                args: [
                                    NumberExpr {
                                        type: Number
                                        location: t/80-codegen/input/def_proc.bas:33
                                        value: 2.000000
                                    }
                                    NumberExpr {
                                        type: Number
                                        location: t/80-codegen/input/def_proc.bas:33
                                        value: 4.000000
                                    }
                                ]
                            }
                    }
            ]
        }
        DefProcStmt {
            location: t/80-codegen/input/def_proc.bas:35
            name: "PROCEMPTY"
            params: [
            ]
            locals: [
            ]
            body: [
                LetStmt {
                    location: t/80-codegen/input/def_proc.bas:36
                    lhs: 
                        VariableExpr {
                            type: Number
                            location: t/80-codegen/input/def_proc.bas:36
                            name: "PROCEMPTY"
                        }
                    rhs: 
                        BasicFuncCallExpr {
                            type: Number
                            location: t/80-codegen/input/def_proc.bas:36
                            keyword: "PI"
                            args: [
                            ]
                        }
                }
            ]
        }
        ProcCallStmt {
            location: t/80-codegen/input/def_proc.bas:39
            name: "PROCEMPTY"
            args: [
            ]
        }
        PrintStmt {
            location: t/80-codegen/input/def_proc.bas:40
            items: [
                Expr:
                    StringLiteralExpr {
                        type: String
                        location: t/80-codegen/input/def_proc.bas:40
                        value: "3.1415927"
                    }
                Comma
                Expr:
                    VariableExpr {
                        type: Number
                        location: t/80-codegen/input/def_proc.bas:40
                        name: "PROCEMPTY"
                    }
            ]
        }
        ProcCallStmt {
            location: t/80-codegen/input/def_proc.bas:41
            name: "PROCEMPTY"
            args: [
            ]
        }
        PrintStmt {
            location: t/80-codegen/input/def_proc.bas:42
            items: [
                Expr:
                    StringLiteralExpr {
                        type: String
                        location: t/80-codegen/input/def_proc.bas:42
                        value: "3.1415927"
                    }
                Comma
                Expr:
                    VariableExpr {
                        type: Number
                        location: t/80-codegen/input/def_proc.bas:42
                        name: "PROCEMPTY"
                    }
            ]
        }
        PrintStmt {
            location: t/80-codegen/input/def_proc.bas:43
            items: [
                Expr:
                    StringLiteralExpr {
                        type: String
                        location: t/80-codegen/input/def_proc.bas:43
                        value: "4.1415927"
                    }
                Comma
                Expr:
                    BinaryExpr {
                        type: Number
                        location: t/80-codegen/input/def_proc.bas:43
                        op: +
                        lhs: 
                            NumberExpr {
                                type: Number
                                location: t/80-codegen/input/def_proc.bas:43
                                value: 1.000000
                            }
                        rhs: 
                            ProcCallExpr {
                                type: Number
                                location: t/80-codegen/input/def_proc.bas:43
                                name: "PROCEMPTY"
                                args: [
                                ]
                            }
                    }
            ]
        }
        DefProcStmt {
            location: t/80-codegen/input/def_proc.bas:45
            name: "PROC2"
            params: [
                "PROC2A"
            ]
            locals: [
            ]
            body: [
                LetStmt {
                    location: t/80-codegen/input/def_proc.bas:46
                    lhs: 
                        VariableExpr {
                            type: Number
                            location: t/80-codegen/input/def_proc.bas:46
                            name: "PROC2"
                        }
                    rhs: 
                        BinaryExpr {
                            type: Number
                            location: t/80-codegen/input/def_proc.bas:46
                            op: *
                            lhs: 
                                NumberExpr {
                                    type: Number
                                    location: t/80-codegen/input/def_proc.bas:46
                                    value: 10.000000
                                }
                            rhs: 
                                VariableExpr {
                                    type: Number
                                    location: t/80-codegen/input/def_proc.bas:46
                                    name: "PROC2A"
                                }
                        }
                }
            ]
        }
        PrintStmt {
            location: t/80-codegen/input/def_proc.bas:49
            items: [
                Expr:
                    StringLiteralExpr {
                        type: String
                        location: t/80-codegen/input/def_proc.bas:49
                        value: "1000"
                    }
                Comma
                Expr:
                    BinaryExpr {
                        type: Number
                        location: t/80-codegen/input/def_proc.bas:49
                        op: *
                        lhs: 
                            NumberExpr {
                                type: Number
                                location: t/80-codegen/input/def_proc.bas:49
                                value: 10.000000
                            }
                        rhs: 
                            ProcCallExpr {
                                type: Number
                                location: t/80-codegen/input/def_proc.bas:49
                                name: "PROC2"
                                args: [
                                    BinaryExpr {
                                        type: Number
                                        location: t/80-codegen/input/def_proc.bas:49
                                        op: +
                                        lhs: 
                                            NumberExpr {
                                                type: Number
                                                location: t/80-codegen/input/def_proc.bas:49
                                                value: 5.000000
                                            }
                                        rhs: 
                                            NumberExpr {
                                                type: Number
                                                location: t/80-codegen/input/def_proc.bas:49
                                                value: 5.000000
                                            }
                                    }
                                ]
                            }
                    }
            ]
        }
        DefProcStmt {
            location: t/80-codegen/input/def_proc.bas:51
            name: "PROCNOTCALLED"
            params: [
            ]
            locals: [
            ]
            body: [
                LetStmt {
                    location: t/80-codegen/input/def_proc.bas:52
                    lhs: 
                        VariableExpr {
                            type: Number
                            location: t/80-codegen/input/def_proc.bas:52
                            name: "PROCNOTCALLED"
                        }
                    rhs: 
                        BinaryExpr {
                            type: Number
                            location: t/80-codegen/input/def_proc.bas:52
                            op: *
                            lhs: 
                                NumberExpr {
                                    type: Number
                                    location: t/80-codegen/input/def_proc.bas:52
                                    value: 2.000000
                                }
                            rhs: 
                                BasicFuncCallExpr {
                                    type: Number
                                    location: t/80-codegen/input/def_proc.bas:52
                                    keyword: "PI"
                                    args: [
                                    ]
                                }
                        }
                }
            ]
        }
    ]
    pragma_vars: [
    ]
}
