Logo
Explore Help
Register Sign In
tomoaki/hakorune
1
0
Fork 0
You've already forked hakorune
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
519560b64b66c69d325277bbdacf1c050cf8de0c
hakorune/local_tests/test_vm_simple_loop.nyash

12 lines
240 B
Plaintext
Raw Normal View History

WIP: Add Store instruction to MIR for variable assignments - Added Store instruction generation in build_assignment() - This partially addresses the VM infinite loop issue - However, the loop still uses old values (%0) instead of updated values - Need to implement proper SSA phi nodes for loop variables The root cause: MIR generation doesn't properly track variable updates in loops. Current SSA implementation lacks phi nodes. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-18 22:04:50 +09:00
// 超シンプルなVMループテスト
local i = 1
print("Before loop: i = " + i)
// 3回だけループ
loop(i <= 3) {
print("In loop: i = " + i)
i = i + 1
print("After increment: i = " + i)
}
print("After loop: i = " + i)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.2 Page: 31ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API