Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BEGIN WHILE WHILE REPEAT ELSE THEN #6

Open
drom opened this issue Nov 25, 2015 · 0 comments
Open

BEGIN WHILE WHILE REPEAT ELSE THEN #6

drom opened this issue Nov 25, 2015 · 0 comments
Labels
Milestone

Comments

@drom
Copy link
Member

drom commented Nov 25, 2015

Looks like one of the cases failing:

T{ : GI5 BEGIN DUP 2 > WHILE DUP 5 < WHILE DUP 1+ REPEAT 123 ELSE 345 THEN ; -> }T
T{ 1 GI5 -> 1 345 }T
T{ 2 GI5 -> 2 345 }T
T{ 3 GI5 -> 3 4 5 123 }T
T{ 4 GI5 -> 4 5 123 }T
T{ 5 GI5 -> 5 123 }T

Here is the failure:

Error: in line: 684 T{ 3 GI5 -> 3 4 5 123 }T  expected [ 3, 4, 291 ] to deeply equal [ 3, 4, 5, 291 ].

Decompiled code:

gi5: function () {
    L5: {
        L2:
            do {
                this[1]();
                this.dpush(2);
                this[45]();
                L3: {
                    if (!this.dpop())
                        break L2;
                    this[1]();
                    this.dpush(5);
                    this[46]();
                    L4: {
                        if (!this.dpop())
                            break L3;
                        this[1]();
                        this[27]();
                    }
                }
                this.dpush(123);
                break L5;
            } while (true);
        this.dpush(345);
    }
}
@drom drom added the bug label Nov 25, 2015
@drom drom added this to the v1 milestone Nov 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant