Skip to content
This repository has been archived by the owner on Feb 22, 2021. It is now read-only.

Control flow analysis #16

Closed
0xd34d10cc opened this issue Jan 7, 2020 · 0 comments · Fixed by #21
Closed

Control flow analysis #16

0xd34d10cc opened this issue Jan 7, 2020 · 0 comments · Fixed by #21

Comments

@0xd34d10cc
Copy link
Owner

0xd34d10cc commented Jan 7, 2020

There is a problem in #15, following program:

fun lol() { return 42 } // function
fun kek() {}            // procedure

lol();
write(kek())

Fails to execute in Statements language (call to procedure kek in expression), but runs successfully in SM (writes 42 to output). Fix: add returns_value flag to Function and check that every Call in Expr .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant