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

-O2에서만 작동이 안 되는 코드가 있습니다. #16

Closed
Sait2000 opened this issue May 21, 2019 · 1 comment
Closed

-O2에서만 작동이 안 되는 코드가 있습니다. #16

Sait2000 opened this issue May 21, 2019 · 1 comment

Comments

@Sait2000
Copy link

$ python2 rpaheui/rpaheui.py ./aheui-aheui.aheui -O1 <snippets/hello-world/hello-world.puzzlet.aheui 
[Warning] It is running without rlib/jit.
Hello, world!
$ python2 rpaheui/rpaheui.py ./aheui-aheui.aheui -O0 <snippets/hello-world/hello-world.puzzlet.aheui                              
[Warning] It is running without rlib/jit.
Hello, world!
$ python2 rpaheui/rpaheui.py ./aheui-aheui.aheui -O2 <snippets/hello-world/hello-world.puzzlet.aheui                              
[Warning] It is running without rlib/jit.
Traceback (most recent call last):
  File "rpaheui/rpaheui.py", line 19, in <module>
    sys.exit(entry_point(sys.argv))
  File "/home/ubuntu/workspace/rpaheui/aheui/aheui.py", line 559, in entry_point
    compiler = prepare_compiler(contents, int(str_opt_level), source, aheuic_output, add_debug_info)
  File "/home/ubuntu/workspace/rpaheui/aheui/aheui.py", line 534, in prepare_compiler
    compiler.optimize2()
  File "/home/ubuntu/workspace/rpaheui/aheui/compile.py", line 374, in optimize2
    self.optimize_jump()
  File "/home/ubuntu/workspace/rpaheui/aheui/compile.py", line 418, in optimize_jump
    op, operand = self.lines[direct_target]
IndexError: list index out of range

https://gist.github.com/Sait2000/e4fd8e6b30a85809c08865da137207c7

@mhsr21
Copy link

mhsr21 commented Oct 14, 2023

-O1도 aheui/snippets의 pi.jinseo.aheui를 통과 못 하고 Segmentation fault가 뜨네요.
-O0는 통과합니다.

puzzlet added a commit to puzzlet/rpaheui that referenced this issue Mar 30, 2024
youknowone added a commit that referenced this issue Mar 31, 2024
optimize 버그 수정 (Fixes #16)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants