function main()
    local i::Int32
    local j::Int32
    j = 0
    for i ∈ 1:10
        j = j + i
    end
    if j ≠ 55
        println(Base.stderr, "ERROR STOP")
        exit(1)
    end
    println(j)
    j = 0
    for i ∈ 10:-1:1
        j = j + i
    end
    if j ≠ 55
        println(Base.stderr, "ERROR STOP")
        exit(1)
    end
    println(j)
    j = 0
    for i ∈ 1:2:9
        j = j + i
    end
    if j ≠ 25
        println(Base.stderr, "ERROR STOP")
        exit(1)
    end
    println(j)
    j = 0
    for i ∈ 9:-2:1
        j = j + i
    end
    if j ≠ 25
        println(Base.stderr, "ERROR STOP")
        exit(1)
    end
    println(j)
    j = 0
    for i ∈ 1:2:10
        j = j + i
    end
    if j ≠ 25
        println(Base.stderr, "ERROR STOP")
        exit(1)
    end
    println(j)
    j = 0
    for i ∈ 1:3:10
        j = j + i
    end
    if j ≠ 22
        println(Base.stderr, "ERROR STOP")
        exit(1)
    end
    println(j)
    j = 0
    for i ∈ 10:-3:1
        j = j + i
    end
    if j ≠ 22
        println(Base.stderr, "ERROR STOP")
        exit(1)
    end
    println(j)
    j = 0
    for i ∈ 1:1
        j = j + i
    end
    if j ≠ 1
        println(Base.stderr, "ERROR STOP")
        exit(1)
    end
    println(j)
    j = 0
    for i ∈ 1:-1:1
        j = j + i
    end
    if j ≠ 1
        println(Base.stderr, "ERROR STOP")
        exit(1)
    end
    println(j)
    j = 0
    for i ∈ 1:0
        j = j + i
    end
    if j ≠ 0
        println(Base.stderr, "ERROR STOP")
        exit(1)
    end
    println(j)
    j = 0
    for i ∈ 0:-1:1
        j = j + i
    end
    if j ≠ 0
        println(Base.stderr, "ERROR STOP")
        exit(1)
    end
    println(j)
end

main()
