Code

Module(
    TypeSection(
        FunctionSig(['f64'], [])
        FunctionSig(['f64'], [])
        FunctionSig(['f64', 'f64'], ['f64'])
        FunctionSig([], [])
    )
    ImportSection(
        Import('js', 'alert', 'function', 0)
        Import('js', 'print_ln', 'function', 1)
    )
    FunctionSection(2, 3)
    ExportSection(
    
    )
    StartSection(3)
    CodeSection(
        FunctionDef([]
            Instruction('get_local', 0)
            Instruction('get_local', 1)
            Instruction('f64.add', )
        )
        FunctionDef(['f64']
            Instruction('loop', 'emptyblock')
            Instruction('get_local', 0)
            Instruction('call', 'print_ln')
            Instruction('f64.const', 1)
            Instruction('get_local', 0)
            Instruction('f64.add', )
            Instruction('tee_local', 0)
            Instruction('f64.const', 10)
            Instruction('f64.lt', )
            Instruction('br_if', 0)
            Instruction('end', )
        )
    )
)

Output