diff --git a/Cargo.toml b/Cargo.toml index bfde35b3..62e5506d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,13 +11,15 @@ categories = ["development-tools::parsing", "interpreters"] # Default features - minimal CLI only [features] -default = ["cli"] +default = ["cli", "plugins"] cli = [] gui = ["dep:egui", "dep:eframe", "dep:egui_extras", "dep:image"] gui-examples = ["gui"] all-examples = ["gui-examples"] dynamic-file = [] wasm-backend = ["dep:wasmtime", "dep:wabt"] +# プラグイン機構の有効化(ネイティブ環境のみ推奨) +plugins = ["dep:libloading"] # Note: LLVM feature requires inkwell dependency and LLVM development libraries # llvm = ["dep:inkwell"] @@ -104,7 +106,7 @@ once_cell = "1.20" # デバッグ・ログ log = "0.4" env_logger = "0.11" -libloading = "0.8" +libloading = { version = "0.8", optional = true } toml = "0.8" # 日時処理 diff --git a/build_errors_only.txt b/build_errors_only.txt new file mode 100644 index 00000000..0ea9a292 --- /dev/null +++ b/build_errors_only.txt @@ -0,0 +1,267 @@ + Compiling proc-macro2 v1.0.95 + Compiling unicode-ident v1.0.18 + Compiling serde v1.0.219 + Compiling cfg-if v1.0.1 + Compiling wasm-bindgen-shared v0.2.100 + Compiling memchr v2.7.5 + Compiling log v0.4.27 + Compiling bumpalo v3.19.0 + Compiling rustversion v1.0.21 + Compiling utf8parse v0.2.2 + Compiling autocfg v1.5.0 + Compiling regex-syntax v0.8.5 + Compiling is_terminal_polyfill v1.70.1 + Compiling anstyle v1.0.11 + Compiling colorchoice v1.0.4 + Compiling crossbeam-utils v0.8.21 + Compiling wasm-bindgen v0.2.100 + Compiling once_cell v1.21.3 + Compiling anstyle-query v1.1.3 + Compiling serde_json v1.0.142 + Compiling hashbrown v0.15.5 + Compiling equivalent v1.0.2 + Compiling itoa v1.0.15 + Compiling strsim v0.11.1 + Compiling heck v0.5.0 + Compiling clap_lex v0.7.5 + Compiling ryu v1.0.20 + Compiling thiserror v2.0.12 + Compiling rayon-core v1.12.1 + Compiling toml_write v0.1.2 + Compiling anyhow v1.0.98 + Compiling anstyle-parse v0.2.7 + Compiling either v1.15.0 + Compiling libc v0.2.174 + Compiling winnow v0.7.12 + Compiling half v2.6.0 + Compiling iana-time-zone v0.1.63 + Compiling jiff v0.2.15 + Compiling aho-corasick v1.1.3 + Compiling indexmap v2.10.0 + Compiling anstream v0.6.19 + Compiling plotters-backend v0.3.7 + Compiling ciborium-io v0.2.2 + Compiling itertools v0.10.5 + Compiling libloading v0.8.8 + Compiling same-file v1.0.6 + Compiling lazy_static v1.5.0 + Compiling cast v0.3.0 + Compiling oorandom v11.1.5 + Compiling anes v0.1.6 + Compiling ciborium-ll v0.2.2 + Compiling num-traits v0.2.19 + Compiling plotters-svg v0.3.7 + Compiling walkdir v2.5.0 + Compiling clap_builder v4.5.42 + Compiling regex-automata v0.4.9 + Compiling criterion-plot v0.5.0 + Compiling regex v1.11.1 + Compiling env_filter v0.1.3 + Compiling crossbeam-epoch v0.9.18 + Compiling env_logger v0.11.8 + Compiling crossbeam-deque v0.8.6 + Compiling quote v1.0.40 + Compiling syn v2.0.104 + Compiling rayon v1.10.0 + Compiling is-terminal v0.4.16 + Compiling chrono v0.4.41 + Compiling plotters v0.3.7 + Compiling wasm-bindgen-backend v0.2.100 + Compiling serde_derive v1.0.219 + Compiling clap_derive v4.5.41 + Compiling thiserror-impl v2.0.12 + Compiling wasm-bindgen-macro-support v0.2.100 + Compiling wasm-bindgen-macro v0.2.100 + Compiling clap v4.5.42 + Compiling js-sys v0.3.77 + Compiling console_error_panic_hook v0.1.7 + Compiling toml_datetime v0.6.11 + Compiling serde_spanned v0.6.9 + Compiling ciborium v0.2.2 + Compiling toml_edit v0.22.27 + Compiling tinytemplate v1.2.1 + Compiling criterion v0.5.1 + Compiling toml v0.8.23 + Compiling web-sys v0.3.77 + Compiling nyash-rust v0.1.0 (/mnt/c/git/nyash-project/nyash) +error: couldn't read `examples/C:/Windows/Fonts/arial.ttf`: No such file or directory (os error 2) + --> examples/simple_notepad_win.rs:32:57 + | +32 | std::sync::Arc::new(egui::FontData::from_static(include_bytes!( + | _________________________________________________________^ +33 | | "C:/Windows/Fonts/arial.ttf" +34 | | ))), + | |_________^ + +error[E0432]: unresolved import `nyash_rust::backend::wasm` + --> tests/wasm_poc1_basic_operations.rs:15:26 + | +15 | use nyash_rust::backend::wasm::WasmBackend; + | ^^^^ could not find `wasm` in `backend` + | +note: found an item that was configured out + --> /mnt/c/git/nyash-project/nyash/src/backend/mod.rs:9:9 + | +9 | pub mod wasm; + | ^^^^ +note: the item is gated behind the `wasm-backend` feature + --> /mnt/c/git/nyash-project/nyash/src/backend/mod.rs:8:7 + | +8 | #[cfg(feature = "wasm-backend")] + | ^^^^^^^^^^^^^^^^^^^^^^^^ + +error[E0432]: unresolved import `nyash_rust::backend::wasm` + --> tests/wasm_poc2_box_operations.rs:17:26 + | +17 | use nyash_rust::backend::wasm::WasmBackend; + | ^^^^ could not find `wasm` in `backend` + | +note: found an item that was configured out + --> /mnt/c/git/nyash-project/nyash/src/backend/mod.rs:9:9 + | +9 | pub mod wasm; + | ^^^^ +note: the item is gated behind the `wasm-backend` feature + --> /mnt/c/git/nyash-project/nyash/src/backend/mod.rs:8:7 + | +8 | #[cfg(feature = "wasm-backend")] + | ^^^^^^^^^^^^^^^^^^^^^^^^ + +error[E0432]: unresolved import `nyash_rust::backend::wasm` + --> tests/wasm_string_constants.rs:15:26 + | +15 | use nyash_rust::backend::wasm::WasmBackend; + | ^^^^ could not find `wasm` in `backend` + | +note: found an item that was configured out + --> /mnt/c/git/nyash-project/nyash/src/backend/mod.rs:9:9 + | +9 | pub mod wasm; + | ^^^^ +note: the item is gated behind the `wasm-backend` feature + --> /mnt/c/git/nyash-project/nyash/src/backend/mod.rs:8:7 + | +8 | #[cfg(feature = "wasm-backend")] + | ^^^^^^^^^^^^^^^^^^^^^^^^ + +For more information about this error, try `rustc --explain E0432`. +error: could not compile `nyash-rust` (test "wasm_poc1_basic_operations") due to 1 previous error +warning: build failed, waiting for other jobs to finish... +error: could not compile `nyash-rust` (test "wasm_string_constants") due to 1 previous error +error: could not compile `nyash-rust` (test "wasm_poc2_box_operations") due to 1 previous error +error[E0433]: failed to resolve: unresolved import + --> tests/array_state_sharing_test.rs:4:16 + | +4 | use crate::boxes::array::ArrayBox; + | ^^^^^ + | | + | unresolved import + | help: a similar path exists: `nyash_rust::boxes` + +error[E0432]: unresolved import `crate::mir` + --> tests/mir_phase8_5_hierarchical_25_instructions.rs:7:12 + | +7 | use crate::mir::{ + | ^^^ + | | + | unresolved import + | help: a similar path exists: `nyash_rust::mir` + +error[E0432]: unresolved import `crate::interpreter` + --> tests/array_state_sharing_test.rs:3:16 + | +3 | use crate::interpreter::Interpreter; + | ^^^^^^^^^^^ + | | + | unresolved import + | help: a similar path exists: `nyash_rust::interpreter` + +error[E0432]: unresolved import `crate::box_trait` + --> tests/array_state_sharing_test.rs:5:16 + | +5 | use crate::box_trait::{NyashBox, IntegerBox, StringBox}; + | ^^^^^^^^^ + | | + | unresolved import + | help: a similar path exists: `nyash_rust::box_trait` + +Some errors have detailed explanations: E0432, E0433. +For more information about an error, try `rustc --explain E0432`. +error: could not compile `nyash-rust` (test "array_state_sharing_test") due to 3 previous errors +error: could not compile `nyash-rust` (test "mir_phase8_5_hierarchical_25_instructions") due to 1 previous error +error[E0432]: unresolved import `eframe` + --> examples/simple_notepad_win.rs:4:5 + | +4 | use eframe::egui; + | ^^^^^^ use of unresolved module or unlinked crate `eframe` + | + = help: if you wanted to use a crate named `eframe`, use `cargo add eframe` to add it to your `Cargo.toml` + +error[E0433]: failed to resolve: use of unresolved module or unlinked crate `eframe` + --> examples/simple_notepad_win.rs:6:14 + | +6 | fn main() -> eframe::Result { + | ^^^^^^ use of unresolved module or unlinked crate `eframe` + | + = help: if you wanted to use a crate named `eframe`, use `cargo add eframe` to add it to your `Cargo.toml` + +error[E0433]: failed to resolve: use of unresolved module or unlinked crate `eframe` + --> examples/simple_notepad_win.rs:7:19 + | +7 | let options = eframe::NativeOptions { + | ^^^^^^ use of unresolved module or unlinked crate `eframe` + | + = help: if you wanted to use a crate named `eframe`, use `cargo add eframe` to add it to your `Cargo.toml` + +error[E0433]: failed to resolve: use of unresolved module or unlinked crate `eframe` + --> examples/simple_notepad_win.rs:14:5 + | +14 | eframe::run_native( + | ^^^^^^ use of unresolved module or unlinked crate `eframe` + | + = help: if you wanted to use a crate named `eframe`, use `cargo add eframe` to add it to your `Cargo.toml` + +error[E0433]: failed to resolve: use of unresolved module or unlinked crate `eframe` + --> examples/simple_notepad_win.rs:69:6 + | +69 | impl eframe::App for NyashNotepad { + | ^^^^^^ use of unresolved module or unlinked crate `eframe` + | + = help: if you wanted to use a crate named `eframe`, use `cargo add eframe` to add it to your `Cargo.toml` + +error[E0433]: failed to resolve: use of unresolved module or unlinked crate `eframe` + --> examples/simple_notepad_win.rs:70:60 + | +70 | fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) { + | ^^^^^^ use of unresolved module or unlinked crate `eframe` + | + = help: if you wanted to use a crate named `eframe`, use `cargo add eframe` to add it to your `Cargo.toml` + +error: could not compile `nyash-rust` (example "simple_notepad_win") due to 7 previous errors +error[E0599]: no method named `to_string_box` found for struct `box_trait::StringBox` in the current scope + --> src/main.rs:77:31 + | +77 | assert_eq!(string_box.to_string_box().value, "test"); + | ^^^^^^^^^^^^^ + | + ::: src/box_trait.rs:96:8 + | +96 | fn to_string_box(&self) -> StringBox; + | ------------- the method is available for `box_trait::StringBox` here +... +127 | pub struct StringBox { + | -------------------- method `to_string_box` not found for this struct + | + = help: items from traits can only be used if the trait is in scope +help: trait `NyashBox` which provides `to_string_box` is implemented but not in scope; perhaps you want to import it + | +70 + use crate::box_trait::NyashBox; + | +help: there is a method `to_string` with a similar name + | +77 - assert_eq!(string_box.to_string_box().value, "test"); +77 + assert_eq!(string_box.to_string().value, "test"); + | + +For more information about this error, try `rustc --explain E0599`. +error: could not compile `nyash-rust` (bin "nyash" test) due to 1 previous error diff --git a/docs/予定/instance_v2_unified_box_registry_plan.md b/docs/予定/instance_v2_unified_box_registry_plan.md new file mode 100644 index 00000000..58d4eead --- /dev/null +++ b/docs/予定/instance_v2_unified_box_registry_plan.md @@ -0,0 +1,123 @@ +# Instance v2 統一レジストリ設計メモ(提案) + +目的: ユーザー定義 / ビルトイン / プラグインの3系統を instance_v2 で一元管理し、同一の生成(birth)/破棄(fini)ライフサイクルで扱えるようにする。また、wasm-bindgen ターゲットでプラグイン機構を安全に無効化できる切替を用意する。 + +--- + +## 現状の整理(実装済み) +- ユーザー定義Box + - インタプリタの AST → InstanceBox 生成で対応済み。 + - `execute_new` は最初に統一レジストリを呼び、ユーザー定義については最終的に `InstanceBox` を構築し、birth 相当のコンストラクタ実行を行う。 +- ビルトインBox + - 統一レジストリ経由で生成可能。ユーザー定義と同じ呼び出し経路に乗る。 +- プラグインBox(v2) + - `nyash.toml v2` を `PluginLoaderV2` が読み込み、`nyash_plugin_invoke` の birth 呼び出しでインスタンスを生成。 + - 現状、`PluginBoxV2` は `clone_box=新birth`、`share_box=同一 instance_id` を実装済み。 + +--- + +## 目標 +1. 3系統(ユーザー定義/ビルトイン/プラグイン)を「統一レジストリ→instance_v2」で一元管理。 +2. birth/fini ライフサイクルの整合をとる。 +3. wasm-bindgen ターゲット(`wasm32-unknown-unknown`)ではプラグイン機構をコンパイル時に無効化し、ビルド可能にする。 + +--- + +## 設計方針 + +### 1) 統一レジストリの責務 +- 名前(クラス名)と引数(`Box` の配列)を入力に、ユーザー定義/ビルトイン/プラグインの順で解決・生成を試みる。 +- 生成に成功したら `Box` を返す。 + - ユーザー定義: `InstanceBox` とし、インタプリタがコンストラクタ(birth)を実行。 + - ビルトイン: 直接生成(必要なら簡易birth相当の初期化) + - プラグイン: `PluginLoaderV2` の `invoke_fn(type_id, method_id=0=birth, ...)` を呼ぶ。 + +### 2) birth / fini ライフサイクル +- birth: + - ユーザー定義: 既存通り AST 上のコンストラクタ(birth)を呼ぶ。 + - プラグイン: `nyash.toml` の `methods.birth` の method_id=0 を使い、`invoke_fn` 呼び出しで instance_id を取得済み。 +- fini: + - InstanceBox のフィールド差し替え時、旧値が InstanceBox なら `fini()` を呼んで finalize 済みIDとしてマーキング(実装済み)。 + - プラグインBoxについても `nyash.toml` で `methods.fini`(例: 0xFFFF)を定義し、差し替えやスコープ終端で `invoke_fn(type_id, method_id=fini, instance_id, ...)` を呼ぶ。エラーは握りつぶさずログ化。 + +### 3) wasm-bindgen ターゲットでの切り替え +- Cargo features によるコンパイル時ガードを導入: + - `plugins`(デフォルトON)、`wasm-backend`(WASMビルド用)の2フラグを用意。 + - `#[cfg(all(feature = "plugins", not(target_arch = "wasm32")))]` のときのみ `plugin_loader_v2` 実体を有効化。 + - それ以外では `plugin_loader_v2` のスタブ実装を使う(常に `Err(BidError::PluginError)` を返すなど)。 + - 統一レジストリはプラグインFactoryの登録を `#[cfg(feature="plugins")]` でガードし、WASMビルドでもユーザー定義/ビルトインは動かせる。 + - `nyash.toml` のファイルI/O(`from_file`)も `cfg` で握り、WASMではロードしない。 + +--- + +## nyash.toml v2 との整合 +- 既存: + - `libraries..boxes = ["FileBox"]` + - `libraries...methods.birth = { method_id = 0 }` + - `... .fini = { method_id = 4294967295 }` など +- 追加検討: + - 将来、ユーザー定義Boxをプラグインで置換したい場合: + - クラス名→プラグインBox型の上書きマップを `nyash.toml` に追加(例:`overrides = { "DataBox" = "libX::RemoteDataBox" }`)。 + - 統一レジストリがこのマップを見て、ユーザー定義をスキップしてプラグインへ委譲。 + +--- + +## API/コード上の具体案(抜粋) +- features(`Cargo.toml`): + ```toml + [features] + default = ["plugins"] + plugins = [] + wasm-backend = [] + ``` +- プラグインローダ(`src/runtime/plugin_loader_v2.rs`): + ```rust + #[cfg(all(feature = "plugins", not(target_arch = "wasm32")))] + pub mod real_loader { /* 現在の実装 */ } + + #[cfg(any(not(feature = "plugins"), target_arch = "wasm32"))] + pub mod stub_loader { + use crate::bid::{BidResult, BidError}; + use crate::box_trait::NyashBox; + pub struct PluginLoaderV2; // ダミー + impl PluginLoaderV2 { pub fn new() -> Self { Self } } + impl PluginLoaderV2 { + pub fn load_config(&mut self, _p: &str) -> BidResult<()> { Ok(()) } + pub fn load_all_plugins(&self) -> BidResult<()> { Ok(()) } + pub fn create_box(&self, _t: &str, _a: &[Box]) -> BidResult> { + Err(BidError::PluginError) + } + } + } + ``` +- 統一レジストリのFactory登録部は `#[cfg(feature = "plugins")]` でプラグインFactoryの登録を条件化。 + +--- + +## マイグレーション手順(段階) +1. Cargo features と cfg ガードの導入(プラグイン機構のスタブ化を含む)。 +2. 統一レジストリのプラグインFactory登録の条件化。 +3. プラグインBoxの `fini` 呼び出し用メソッドを InstanceBox 置換/破棄パスへ組み込む。 +4. 必要に応じて `nyash.toml` の `methods.fini` を明記。 +5. 追加要件(ユーザー定義のプラグイン置換)を `overrides` マップで設計 → 実装。 + +--- + +## テスト観点 +- ユニット: + - birth/fini の呼び出し順と複数回置換時の `fini` 呼び出し保証。 + - `plugins` ON/OFF、`wasm-backend` ON の3軸でビルド/テストが通ること。 +- 統合テスト: + - `nyash.toml` によるビルトイン→プラグインの透過切替。 + - ユーザー定義→ビルトイン→プラグインの優先順位が想定通り。 + +--- + +## メモ +- すでに `execute_new` は統一レジストリ優先の実装になっており、この設計と整合が良い。 +- WASM ターゲットでは `libloading` が使えないため、コンパイル時に完全にプラグインコードを外す方針(cfg/feature)は自然。 +- `nyash.toml` のロードはネイティブ時のみで十分(WASM は将来、バンドルまたは JS 側から供給する計画があるなら別途)。 + +--- + +以上。必要であれば、この方針でPRを小さく分割(features→レジストリ→fini→overrides)して入れていきます。 diff --git a/docs/予定/plugins_and_wasm_build_guide.md b/docs/予定/plugins_and_wasm_build_guide.md new file mode 100644 index 00000000..7fbd4160 --- /dev/null +++ b/docs/予定/plugins_and_wasm_build_guide.md @@ -0,0 +1,81 @@ +# プラグイン機構と WASM ビルド切替ガイド + +本書は、nyash のプラグイン機構(nyash.toml v2 / PluginLoaderV2)と、wasm-bindgen を使う WASM ビルドでの切替手順をまとめたものです。目的は「ネイティブではプラグインON、WASMでは安全にプラグインOFF」でビルド/実行できるようにすることです。 + +--- + +## 1. Cargo features 構成(現状) + +- `default = ["cli", "plugins"]` +- `plugins`: プラグイン機構を有効化(`libloading` 等の動的ロードに依存) +- `wasm-backend`: WASM バックエンドを有効化(`wabt`/`wasmtime` 等) + +これにより、デフォルトではネイティブ開発時にプラグインが有効になります。WASM ターゲットでプラグインを完全に外したい場合は、`--no-default-features` を使います。 + +--- + +## 2. ビルド/テスト コマンド例 + +### 2.1 ネイティブ(プラグインON・デフォルト) + +- ビルド: `cargo build` +- テスト: `cargo test` + +nyash.toml v2 によるプラグインの透過切替(ビルトイン→プラグイン)はこの構成で有効です。 + +### 2.2 ネイティブ(プラグインOFF) + +- テスト: `cargo test --no-default-features --features cli` + +`plugins` を外すとプラグインローダはスタブ化され、プラグイン経由の生成は失敗(適切なエラー)になります。 + +### 2.3 WASM ターゲット(プラグインOFF) + +- 初回のみ: `rustup target add wasm32-unknown-unknown` +- ビルド例: `cargo build --target wasm32-unknown-unknown --no-default-features --features wasm-backend` + +この構成では `plugins` が無効のため、`libloading` 等の動的ロードに依存せずビルドできます。 + +--- + +## 3. runtime 側の切替実装(概要) + +`src/runtime/plugin_loader_v2.rs` は cfg で2パスを提供: + +- `#[cfg(all(feature = "plugins", not(target_arch = "wasm32")))]` … 実体実装(libloading + invoke_fn) +- `#[cfg(any(not(feature = "plugins"), target_arch = "wasm32"))]` … スタブ実装(常にエラー返却) + +`src/runtime/unified_registry.rs` は、`#[cfg(feature = "plugins")]` のときだけプラグインFactoryをレジストリに登録します。WASMやpluginsオフ時は登録されず、ユーザー定義/ビルトインのみが対象になります。 + +--- + +## 4. nyash.toml v2 の取り扱い + +- ネイティブ: `init_global_loader_v2()` により `nyash.toml` を読み込み、`libraries`/`methods.birth`/`methods.fini` などの設定に従ってプラグインをロードします。 +- WASM/プラグインOFF: `init_global_loader_v2()` はスタブ化され、ファイルI/Oや動的ロードは行いません。 + +--- + +## 5. ライフサイクル(birth/fini)整合(設計) + +- ユーザー定義: AST上のコンストラクタ(birth)実行・フィールド差し替え時に `fini()` 呼び出し(InstanceBox側実装) +- プラグイン: `methods.birth=0` で生成済み。差し替え/破棄時に `methods.fini`(例: `0xFFFF`)を `invoke_fn(type_id, method_id=fini, instance_id)` で呼ぶフックを今後統合予定。 + +--- + +## 6. よくある質問 + +- Q. なぜランタイム切替ではなくコンパイル時切替? + - A. WASM ターゲットでは `libloading` が使えないため、リンク/依存段階で除去する必要があり、features/cfg によるコンパイル時切替が安全・簡潔です。 + +- Q. `nyash.toml` はWASMでも使える? + - A. ファイルI/O前提のため、現状はネイティブのみ。将来、バンドルや JS 側から設定注入をする場合は別アプローチで設計します。 + +--- + +## 7. 今後の拡張 + +- `nyash.toml` にクラス名→プラグインBox型の `overrides` マップを追加し、ユーザー定義Boxの外部置換をサポート(任意)。 +- プラグインBoxの `fini` 呼び出しを InstanceBox の破棄/置換パスへ統合し、birth/fini ライフサイクルを完全整合。 + +以上。 diff --git a/docs/説明書/reference/boxes-system/plugin_lifecycle.md b/docs/説明書/reference/boxes-system/plugin_lifecycle.md new file mode 100644 index 00000000..9779fd40 --- /dev/null +++ b/docs/説明書/reference/boxes-system/plugin_lifecycle.md @@ -0,0 +1,73 @@ +# プラグインBoxのライフサイクルと nyash.toml methods 定義 + +本書は、プラグインBox(PluginBoxV2)の生成(birth)と終了(fini)の流れ、ならびに nyash.toml v2 における `methods` 定義の役割をまとめたものです。 + +--- + +## 1. 用語 +- birth: プラグインBoxのインスタンス生成(`method_id=0`) +- fini: プラグインBoxの終了処理(任意の `method_id`。例: `4294967295`) +- invoke_fn: プラグイン側の単一エントリポイント(`nyash_plugin_invoke`) + +--- + +## 2. 生成(birth)の流れ +1. `unified registry` が `PluginLoaderV2::create_box(box_type, args)` を呼び出す。 +2. `PluginLoaderV2` は `nyash.toml` から `type_id` と `methods` を読み込む。 +3. `invoke_fn(type_id, method_id=0 /* birth */, instance_id=0, ...)` を呼び、戻り値(出力TLV)の先頭4バイトから `instance_id` を取得。 +4. `PluginBoxV2 { type_id, instance_id, invoke_fn, fini_method_id }` を生成して返す。 + +補足: +- `fini_method_id` は `nyash.toml` の `methods` から `fini` の `method_id` を取り出して保持します。未定義の場合は `None`。 + +--- + +## 3. 終了(fini)の流れ(現状) +- フィールド差し替え時(代入で旧値を置き換えるとき): + - 旧値が `InstanceBox` の場合: インタプリタが `fini()` を呼び、finalized としてマーキングします。 + - 旧値が `PluginBoxV2` の場合: `fini_method_id` が設定されていれば `invoke_fn(type_id, fini_method_id, instance_id, ...)` を呼びます。 +- 破棄(Drop)時: + - RustのDropでFFIを呼ぶのは安全性の観点でリスクがあるため、現状は「明示タイミング(フィールド差し替えなど)」での fini 呼び出しを優先しています。 + +注意: +- ローカル変数のスコープ終了時に自動で fini を呼ぶ実装は、現時点では入っていません(将来検討)。 + +--- + +## 4. nyash.toml v2 の定義例 + +```toml +[libraries] +[libraries."libnyash_filebox_plugin.so"] +boxes = ["FileBox"] +path = "./plugins/nyash-filebox-plugin/target/release/libnyash_filebox_plugin.so" + +[libraries."libnyash_filebox_plugin.so".FileBox] +type_id = 6 + +[libraries."libnyash_filebox_plugin.so".FileBox.methods] +birth = { method_id = 0 } +open = { method_id = 1 } +read = { method_id = 2 } +write = { method_id = 3 } +close = { method_id = 4 } +fini = { method_id = 4294967295 } # 任意の終端ID +``` + +要点: +- `methods` に `fini` を定義すれば、差し替え時などに fini が呼ばれます。 +- `fini` 未定義の場合、プラグインBoxの終了処理は呼ばれません(フォールバック動作)。 + +--- + +## 5. WASM(wasm-bindgen)との関係 +- WASMターゲットでは `libloading` が使えないため、プラグイン機構は features/cfg でスタブ化しています。 +- `plugins` フィーチャを外す、または `target_arch = "wasm32"` のときは、プラグイン生成・fini 呼び出しのコードはコンパイル対象外になります(ビルド可能化のため)。 + +--- + +## 6. 将来拡張の方向 +- ローカル変数のスコープ終了時(関数/メソッド呼び出しの戻りなど)に、InstanceBox/PluginBoxV2 の fini を安全に呼び出す仕組み(順序・例外耐性・二重呼び出し防止を含む)。 +- `nyash.toml` にクラス名→プラグインBox型の `overrides` を加え、ユーザー定義Boxの外部置換を許可する設計(任意)。 + +以上。 diff --git a/final_test_output.txt b/final_test_output.txt new file mode 100644 index 00000000..b740d338 --- /dev/null +++ b/final_test_output.txt @@ -0,0 +1,9838 @@ +warning: unused imports: `BasicBlockIdGenerator`, `BasicBlock`, `CompareOp`, `EffectMask`, `MirFunction`, and `ValueIdGenerator` + --> src/mir/loop_builder.rs:9:21 + | +9 | MirInstruction, BasicBlock, BasicBlockId, MirFunction, ValueId, + | ^^^^^^^^^^ ^^^^^^^^^^^ +10 | ConstValue, CompareOp, BasicBlockIdGenerator, ValueIdGenerator, EffectMask + | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: unused import: `HashSet` + --> src/mir/loop_builder.rs:13:33 + | +13 | use std::collections::{HashMap, HashSet}; + | ^^^^^^^ + +warning: unexpected `cfg` condition value: `llvm` + --> src/backend/mod.rs:13:7 + | +13 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + = note: `#[warn(unexpected_cfgs)]` on by default + +warning: unexpected `cfg` condition value: `llvm` + --> src/backend/mod.rs:23:7 + | +23 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unused import: `MirInstruction` + --> src/backend/vm_phi.rs:9:41 + | +9 | use crate::mir::{BasicBlockId, ValueId, MirInstruction}; + | ^^^^^^^^^^^^^^ + +warning: unused import: `super::Usize` + --> src/bid/types.rs:1:5 + | +1 | use super::Usize; + | ^^^^^^^^^^^^ + +warning: unused import: `std::os::raw::c_char` + --> src/bid/plugin_api.rs:2:5 + | +2 | use std::os::raw::c_char; + | ^^^^^^^^^^^^^^^^^^^^ + +warning: unused imports: `NyashHostVtable`, `NyashMethodInfo`, and `NyashPluginInfo` + --> src/bid/plugins/filebox/mod.rs:7:18 + | +7 | use crate::bid::{NyashPluginInfo, NyashMethodInfo, NyashHostVtable}; + | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ + +warning: unused imports: `SeekFrom` and `Seek` + --> src/bid/plugins/filebox/mod.rs:10:28 + | +10 | use std::io::{Read, Write, Seek, SeekFrom}; + | ^^^^ ^^^^^^^^ + +warning: unused imports: `c_char` and `c_void` + --> src/bid/plugins/filebox/mod.rs:11:20 + | +11 | use std::os::raw::{c_char, c_void}; + | ^^^^^^ ^^^^^^ + +warning: unused imports: `CStr` and `CString` + --> src/bid/plugins/filebox/mod.rs:13:16 + | +13 | use std::ffi::{CStr, CString}; + | ^^^^ ^^^^^^^ + +warning: unused import: `std::ffi::c_void` + --> src/bid/loader.rs:3:5 + | +3 | use std::ffi::c_void; + | ^^^^^^^^^^^^^^^^ + +warning: unused imports: `TlvDecoder` and `TlvEncoder` + --> src/bid/generic_plugin_box.rs:2:23 + | +2 | use crate::bid::tlv::{TlvEncoder, TlvDecoder}; + | ^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused import: `crate::bid::types::BidTag` + --> src/bid/generic_plugin_box.rs:3:5 + | +3 | use crate::bid::types::BidTag; + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `BoxBase` + --> src/runtime/plugin_loader_v2.rs:7:43 + | +7 | use crate::box_trait::{NyashBox, BoxCore, BoxBase, StringBox}; + | ^^^^^^^ + +warning: unused import: `std::ffi::c_void` + --> src/runtime/plugin_loader_v2.rs:11:5 + | +11 | use std::ffi::c_void; + | ^^^^^^^^^^^^^^^^ + +warning: unused variable: `registry` + --> src/box_factory/plugin.rs:53:13 + | +53 | let registry = get_global_registry(); + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_registry` + | + = note: `#[warn(unused_variables)]` on by default + +warning: unused variable: `args` + --> src/instance_v2.rs:147:28 + | +147 | pub fn init(&mut self, args: &[Box]) -> Result<(), String> { + | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` + +warning: unused variable: `nyash_value` + --> src/instance_v2.rs:289:21 + | +289 | if let Some(nyash_value) = self.fields_ng.lock().unwrap().get(field_name) { + | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nyash_value` + +warning: unused variable: `block_id` + --> src/mir/loop_builder.rs:246:39 + | +246 | fn mark_block_unsealed(&mut self, block_id: BasicBlockId) -> Result<(), String> { + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_id` + +warning: unused variable: `block_id` + --> src/mir/loop_builder.rs:273:49 + | +273 | fn get_variable_at_block(&self, name: &str, block_id: BasicBlockId) -> Option { + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_id` + +warning: unused variable: `dst` + --> src/backend/vm_phi.rs:48:9 + | +48 | dst: ValueId, + | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` + +warning: unused variable: `f` + --> src/bid/plugin_api.rs:167:36 + | +167 | pub fn with_alloc(mut self, f: F) -> Self + | ^ help: if this is intentional, prefix it with an underscore: `_f` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:167:26 + | +167 | pub fn with_alloc(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: unused variable: `f` + --> src/bid/plugin_api.rs:176:35 + | +176 | pub fn with_free(mut self, f: F) -> Self + | ^ help: if this is intentional, prefix it with an underscore: `_f` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:176:25 + | +176 | pub fn with_free(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `f` + --> src/bid/plugin_api.rs:183:34 + | +183 | pub fn with_log(mut self, f: F) -> Self + | ^ help: if this is intentional, prefix it with an underscore: `_f` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:183:24 + | +183 | pub fn with_log(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `args` + --> src/runtime/plugin_loader_v2.rs:236:46 + | +236 | pub fn create_box(&self, box_type: &str, args: &[Box]) -> BidResult> { + | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` + +warning: type `FileMode` is more private than the item `FileBoxRegistry::open` + --> src/bid/plugins/filebox/mod.rs:44:5 + | +44 | pub fn open(&mut self, path: &str, mode: FileMode) -> Result { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `FileBoxRegistry::open` is reachable at visibility `pub` + | +note: but type `FileMode` is only usable at visibility `pub(self)` + --> src/bid/plugins/filebox/mod.rs:29:1 + | +29 | enum FileMode { + | ^^^^^^^^^^^^^ + = note: `#[warn(private_interfaces)]` on by default + +warning: field `block_var_maps` is never read + --> src/mir/loop_builder.rs:35:5 + | +27 | pub struct LoopBuilder<'a> { + | ----------- field in this struct +... +35 | block_var_maps: HashMap>, + | ^^^^^^^^^^^^^^ + | + = note: `#[warn(dead_code)]` on by default + +warning: fields `type_name_holder` and `method_holders` are never read + --> src/bid/metadata.rs:148:5 + | +143 | pub struct PluginMetadata { + | -------------- fields in this struct +... +148 | type_name_holder: Option, + | ^^^^^^^^^^^^^^^^ +149 | method_holders: Vec<(NyashMethodInfo, CString)>, + | ^^^^^^^^^^^^^^ + +warning: fields `path` and `mode` are never read + --> src/bid/plugins/filebox/mod.rs:24:5 + | +22 | struct FileBoxState { + | ------------ fields in this struct +23 | file: File, +24 | path: String, + | ^^^^ +25 | mode: FileMode, + | ^^^^ + +warning: fields `box_types` and `init_fn` are never read + --> src/runtime/plugin_loader_v2.rs:20:5 + | +15 | pub struct LoadedPluginV2 { + | -------------- fields in this struct +... +20 | box_types: Vec, + | ^^^^^^^^^ +... +23 | init_fn: Option i32>, + | ^^^^^^^ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:62:9 + | +62 | self.add_predecessor(header_id, preheader_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled + = note: `#[warn(unused_must_use)]` on by default +help: use `let _ = ...` to ignore the resulting value + | +62 | let _ = self.add_predecessor(header_id, preheader_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:66:9 + | +66 | self.mark_block_unsealed(header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +66 | let _ = self.mark_block_unsealed(header_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:78:9 + | +78 | self.add_predecessor(body_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +78 | let _ = self.add_predecessor(body_id, header_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:79:9 + | +79 | self.add_predecessor(after_loop_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +79 | let _ = self.add_predecessor(after_loop_id, header_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:93:9 + | +93 | self.add_predecessor(header_id, latch_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +93 | let _ = self.add_predecessor(header_id, latch_id); + | +++++++ + +warning: creating a shared reference to mutable static + --> src/bid/plugins/filebox/mod.rs:102:12 + | +102 | if FILEBOX_REGISTRY.is_none() { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static + | + = note: for more information, see + = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives + = note: `#[warn(static_mut_refs)]` on by default + +warning: creating a shared reference to mutable static + --> src/bid/plugins/filebox/mod.rs:105:9 + | +105 | FILEBOX_REGISTRY.as_ref().unwrap().clone() + | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static + | + = note: for more information, see + = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives + +warning: unused imports: `BoolBox`, `IntegerBox`, and `StringBox` + --> src/ast.rs:885:28 + | +885 | use crate::box_trait::{StringBox, IntegerBox, BoolBox}; + | ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: unused import: `Mutex` + --> src/instance_v2.rs:387:26 + | +387 | use std::sync::{Arc, Mutex}; + | ^^^^^ + +warning: unused imports: `BasicBlockIdGenerator`, `BasicBlock`, `CompareOp`, `EffectMask`, `MirFunction`, and `ValueIdGenerator` + --> src/mir/loop_builder.rs:9:21 + | +9 | MirInstruction, BasicBlock, BasicBlockId, MirFunction, ValueId, + | ^^^^^^^^^^ ^^^^^^^^^^^ +10 | ConstValue, CompareOp, BasicBlockIdGenerator, ValueIdGenerator, EffectMask + | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused import: `BasicBlock` + --> src/mir/verification.rs:311:75 + | +311 | use crate::mir::{MirFunction, FunctionSignature, MirType, EffectMask, BasicBlock}; + | ^^^^^^^^^^ + +warning: unused imports: `BasicBlock`, `EffectMask`, `FunctionSignature`, `MirFunction`, `MirModule`, and `MirType` + --> src/backend/vm.rs:860:22 + | +860 | use crate::mir::{MirModule, MirFunction, FunctionSignature, MirType, EffectMask, BasicBlock}; + | ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused imports: `BidHandle` and `BoxTypeId` + --> src/runtime/tests.rs:10:22 + | +10 | use crate::bid::{BidHandle, BoxTypeId}; + | ^^^^^^^^^ ^^^^^^^^^ + +warning: variable does not need to be mutable + --> src/mir/basic_block.rs:314:13 + | +314 | let mut bb = BasicBlock::new(bb_id); + | ----^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: unused variable: `child` + --> src/mir/ownership_verifier_simple.rs:313:13 + | +313 | let child = value_gen.next(); + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_child` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:167:26 + | +167 | pub fn with_alloc(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tests/box_tests.rs:11:13 + | +11 | let mut array = ArrayBox::new(); + | ----^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tests/box_tests.rs:90:13 + | +90 | let mut stream = NyashStreamBox::from_data(vec![72, 101, 108, 108, 111]); // "Hello" + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: `nyash-rust` (lib) generated 41 warnings (run `cargo fix --lib -p nyash-rust` to apply 17 suggestions) +warning: `nyash-rust` (lib test) generated 50 warnings (39 duplicates) (run `cargo fix --lib -p nyash-rust --tests` to apply 10 suggestions) +warning: unused import: `std::collections::HashMap` + --> tests/integration_tests.rs:9:5 + | +9 | use std::collections::HashMap; + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: function `execute_nyash_code` is never used + --> tests/integration_tests.rs:12:4 + | +12 | fn execute_nyash_code(code: &str) -> Result { + | ^^^^^^^^^^^^^^^^^^ + | + = note: `#[warn(dead_code)]` on by default + +warning: unexpected `cfg` condition value: `llvm` + --> src/runner.rs:22:7 + | +22 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unexpected `cfg` condition value: `llvm` + --> src/runner.rs:503:15 + | +503 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unexpected `cfg` condition value: `llvm` + --> src/runner.rs:526:19 + | +526 | #[cfg(not(feature = "llvm"))] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unused import: `BoxCore` + --> src/main.rs:71:32 + | +71 | use box_trait::{StringBox, BoxCore, NyashBox}; + | ^^^^^^^ + +warning: variable does not need to be mutable + --> src/runner.rs:286:17 + | +286 | let mut printer = if self.config.mir_verbose { + | ----^^^^^^^ + | | + | help: remove this `mut` + +warning: type `FileMode` is more private than the item `bid::plugins::filebox::FileBoxRegistry::open` + --> src/bid/plugins/filebox/mod.rs:44:5 + | +44 | pub fn open(&mut self, path: &str, mode: FileMode) -> Result { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `bid::plugins::filebox::FileBoxRegistry::open` is reachable at visibility `pub` + | +note: but type `FileMode` is only usable at visibility `pub(self)` + --> src/bid/plugins/filebox/mod.rs:29:1 + | +29 | enum FileMode { + | ^^^^^^^^^^^^^ + = note: `#[warn(private_interfaces)]` on by default + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:62:9 + | +62 | self.add_predecessor(header_id, preheader_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled + = note: `#[warn(unused_must_use)]` on by default +help: use `let _ = ...` to ignore the resulting value + | +62 | let _ = self.add_predecessor(header_id, preheader_id); + | +++++++ + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:66:9 + | +66 | self.mark_block_unsealed(header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +66 | let _ = self.mark_block_unsealed(header_id); + | +++++++ + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:78:9 + | +78 | self.add_predecessor(body_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +78 | let _ = self.add_predecessor(body_id, header_id); + | +++++++ + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:79:9 + | +79 | self.add_predecessor(after_loop_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +79 | let _ = self.add_predecessor(after_loop_id, header_id); + | +++++++ + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:93:9 + | +93 | self.add_predecessor(header_id, latch_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +93 | let _ = self.add_predecessor(header_id, latch_id); + | +++++++ + +warning: unused import: `VMValue` + --> tests/mir_phase6_vm_ref_ops.rs:11:31 + | +11 | use nyash_rust::backend::{VM, VMValue}; + | ^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: unused import: `NyashBox` + --> tests/mir_phase6_vm_ref_ops.rs:12:41 + | +12 | use nyash_rust::box_trait::{IntegerBox, NyashBox}; + | ^^^^^^^^ + +warning: unused variable: `vm` + --> tests/mir_phase6_vm_ref_ops.rs:139:13 + | +139 | let mut vm = VM::new(); + | ^^ help: if this is intentional, prefix it with an underscore: `_vm` + | + = note: `#[warn(unused_variables)]` on by default + +warning: variable does not need to be mutable + --> tests/mir_phase6_vm_ref_ops.rs:139:9 + | +139 | let mut vm = VM::new(); + | ----^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: variable does not need to be mutable + --> src/runner.rs:286:17 + | +286 | let mut printer = if self.config.mir_verbose { + | ----^^^^^^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: unexpected `cfg` condition value: `mir-v2` + --> tests/mir_phase8_5_hierarchical_25_instructions.rs:7:8 + | +7 | #![cfg(feature = "mir-v2")] + | ^^^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `mir-v2` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + = note: `#[warn(unexpected_cfgs)]` on by default + +warning: struct `NyashNotepad` is never constructed + --> examples/simple_notepad_win.rs:58:8 + | +58 | struct NyashNotepad { + | ^^^^^^^^^^^^ + | + = note: `NyashNotepad` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis + = note: `#[warn(dead_code)]` on by default + +warning: associated function `new` is never used + --> examples/simple_notepad_win.rs:64:8 + | +63 | impl NyashNotepad { + | ----------------- associated function in this implementation +64 | fn new() -> Self { + | ^^^ + +warning: `nyash-rust` (test "integration_tests") generated 2 warnings (run `cargo fix --test "integration_tests"` to apply 1 suggestion) +warning: `nyash-rust` (bin "nyash" test) generated 53 warnings (42 duplicates) (run `cargo fix --bin "nyash" --tests` to apply 2 suggestions) +warning: `nyash-rust` (test "mir_phase6_vm_ref_ops") generated 4 warnings (run `cargo fix --test "mir_phase6_vm_ref_ops"` to apply 2 suggestions) +warning: `nyash-rust` (bin "nyash") generated 45 warnings (44 duplicates) (run `cargo fix --bin "nyash"` to apply 1 suggestion) +warning: `nyash-rust` (test "mir_phase8_5_hierarchical_25_instructions") generated 1 warning +warning: `nyash-rust` (example "simple_notepad_win") generated 2 warnings + Finished `test` profile [unoptimized + debuginfo] target(s) in 2.29s + Running unittests src/lib.rs (target/debug/deps/nyash_rust-027bd4c76143e77b) + +running 156 tests +test bid::metadata::tests::test_host_vtable ... ok +test box_arithmetic::tests::test_add_box_integers ... ok +test box_arithmetic::tests::test_modulo_box ... ok +test box_arithmetic::tests::test_modulo_chip8_pattern ... ok +🚀 Running benchmark: bench_light +test box_arithmetic::tests::test_compare_box ... ok +test bid::types::tests::test_handle_packing ... ok +test box_operators::tests::test_boolean_arithmetic ... ok +test box_arithmetic::tests::test_multiply_box ... ok +test bid::tlv::tests::test_encode_decode_handle ... ok +test bid::tlv::tests::test_encode_decode_primitives ... ok +test backend::vm::tests::test_binary_operations ... ok +test bid::metadata::tests::test_plugin_metadata_creation ... ok +test box_operators::tests::test_integer_addition ... ok +test box_arithmetic::tests::test_subtract_box ... ok +test ast::tests::test_ast_node_creation ... ok +test ast::tests::test_binary_operator ... ok +test ast::tests::test_method_call ... ok +test box_arithmetic::tests::test_add_box_strings ... ok +test box_operators::tests::test_string_concatenation ... ok +test bid::plugin_api::tests::test_plugin_handle ... ok +test backend::vm_phi::tests::test_phi_selection ... ok +test box_factory::tests::test_registry_creation ... ok +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: test box_arithmetic::tests::test_divide_box ... okProgram + +🔍 DEBUG: Executing program with 1test box_operators::tests::test_string_repetition ... ok statements +🔍 DEBUG: Executing statement +1 of test box_operators::tests::test_can_add_with ... ok1: +BoxDeclaration +test box_operators::tests::test_dynamic_addition ... ok +test bid::types::tests::test_type_tags ... ok +test box_arithmetic::tests::test_modulo_by_zero ... ok +test ast::tests::test_binary_operation ... ok +test box_trait::tests::test_add_box_integers ... ok +test box_arithmetic::tests::test_divide_by_zero ... ok +test bid::types::tests::test_arg_type_mapping ... ok +test backend::vm::tests::test_basic_vm_execution ... ok +🔍 execute_statement called with node type: "test box_trait::tests::test_add_box_strings ... okBoxDeclaration" + +test box_trait::tests::test_bool_box_creation ... 🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'okMain' definition registered in statics namespace + +🔍 DEBUG: Statement 1Instance: StringBox + completed +Instance: MyBox +🔍 DEBUG: Starting interpreter execution... +test box_trait::tests::test_box_equality ... 🔍 DEBUG: execute_node called with node type: Programok + +test box_trait::tests::test_box_ids_unique ... ok🔍 DEBUG: Executing program with 1 + statements +test ast::tests::test_complex_ast ... ok🔍 DEBUG: Executing statement 1 + of 1test box_trait::tests::test_integer_box_creation ... ok: Assignment + +test box_trait::tests::test_string_box_creation ... ok🔍 execute_statement called with node type: " +Assignment"test bid::bridge::tests::test_string_box_bid_conversion ... ok + +🔍 About to call execute_assignment... +test bid::bridge::tests::test_box_registry ... ok🔍 execute_assignment called, evaluating value expression... + +🔍 execute_new called for class: IntegerBoxtest bid::bridge::tests::test_integer_box_bid_conversion ... ok, with 1 + arguments +test box_trait::tests::test_void_box ... ok🔍 Trying unified registry for class: IntegerBox + +test bid::bridge::tests::test_future_box_bid_conversion ... ok🌍 statics namespace already exists - skipping creation + +🔍 DEBUG: Starting interpreter execution... +test boxes::null_box::tests::test_get_or_default ... ok🔍 DEBUG: execute_node called with node type: Program + +test boxes::null_box::tests::test_null_check ... ok🔍 DEBUG: Executing program with 2 + statements +test boxes::null_box::tests::test_null_creation ... ok🔍 DEBUG: Executing statement 1 + of 2test boxes::null_box::tests::test_null_equality ... ok: Assignment + +test cli::tests::test_default_config ... ok🔍 execute_statement called with node type: " +Assignment"test cli::tests::test_parse_debug_fuel ... ok + +🔍 About to call execute_assignment... +test environment::tests::test_error_handling ... ok🔍 execute_assignment called, evaluating value expression... + +🔍 execute_new called for class: BoolBoxtest environment::tests::test_global_environment ... ok, with 1 + arguments +test environment::tests::test_nested_scopes ... ok🔍 Trying unified registry for class: BoolBox + +test environment::tests::test_python_compat ... ok🔍 DEBUG: Starting interpreter execution... + +🔍 DEBUG: execute_node called with node type: Programtest environment::tests::test_scope_info ... ok + +🔍 DEBUG: Executing program with 2test environment::tests::test_variable_setting ... ok statements + +🔍 DEBUG: Executing statement 1test environment::tests::test_variable_shadowing ... ok of 2 +: Assignmenttest finalization::tests::test_finalization_tracking ... ok + +🔍 execute_statement called with node type: "test instance_v2::tests::test_field_operations ... okAssignment" + +test instance_v2::tests::test_from_any_box_creation ... ok🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +test instance_v2::tests::test_from_declaration_creation ... ok🔍 execute_new called for class: IntegerBox +, with 1test instance_v2::tests::test_unified_approach ... ok arguments + +🔍 Trying unified registry for class: IntegerBoxtest bid::plugins::filebox::tests::test_filebox_plugin ... ok + +🔥 Static box 'Maintest config::nyash_toml_v2::tests::test_parse_v2_config ... ok' instance registered in statics namespace + +🔍 DEBUG: Starting interpreter execution... +test mir::basic_block::tests::test_basic_block_creation ... ok🔍 DEBUG: execute_node called with node type: Program + +test mir::basic_block::tests::test_basic_block_id_generator ... ok🔍 DEBUG: Executing program with 4 + statements +test mir::basic_block::tests::test_branch_successors ... ok🔍 DEBUG: Executing statement 1 + of 4test mir::basic_block::tests::test_instruction_addition ... ok: BoxDeclaration + +test mir::basic_block::tests::test_phi_instruction_ordering ... ok🔍 execute_statement called with node type: " +BoxDeclaration"test mir::basic_block::tests::test_terminator_addition ... ok + +🏭 Unified registry created: IntegerBoxtest mir::basic_block::tests::test_value_tracking ... ok + +🔍 execute_statement called with node type: "test mir::builder::tests::test_binary_op_building ... okMethodCall" + +test mir::builder::tests::test_if_statement_building ... ok🔍 execute_new called for class: IntegerBox +, with 1test mir::builder::tests::test_literal_building ... ok arguments + +🔍 Trying unified registry for class: IntegerBoxtest mir::effect::tests::test_effect_combination ... ok + +🔍 DEBUG: Statement 1test mir::effect::tests::test_effect_display ... ok completed + +🔍 DEBUG: Executing statement 2test mir::effect::tests::test_effect_mask_creation ... ok of 4 +: Assignmenttest mir::effect::tests::test_effect_names ... ok + +🔍 execute_statement called with node type: "test mir::effect::tests::test_effect_union ... okAssignment" + +test mir::effect::tests::test_parallel_safety ... ok🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +test mir::function::tests::test_function_creation ... ok🔍 execute_new called for class: TestBox +, with 0test mir::function::tests::test_function_stats ... ok arguments + +🔍 Trying unified registry for class: TestBoxtest mir::function::tests::test_module_creation ... ok + +🔍 DEBUG: resolve_variable: name='statics', local_vars=[]test mir::function::tests::test_value_id_generation ... ok + +🔍 DEBUG: Checking GlobalBox for 'staticstest mir::instruction::tests::test_barrier_instructions ... ok'... + +🔍 DEBUG: Found 'staticstest mir::instruction::tests::test_binop_instruction ... ok' in GlobalBox + +🏭 Unified registry created: BoolBoxtest mir::instruction::tests::test_call_instruction ... ok + +✅ FIELD ACCESS: Returning shared reference id=143test mir::instruction::tests::test_const_instruction ... ok + +🔍 execute_assignment: value expression evaluated successfully +test mir::instruction::tests::test_extern_call_instruction ... ok🏭 Unified registry created: IntegerBox + +test mir::instruction::tests::test_ref_get_instruction ... ok🔍 execute_statement called with node type: " +Local"test mir::instruction::tests::test_ref_new_instruction ... ok + +🔍 DEBUG: Statement 1test mir::instruction::tests::test_ref_set_instruction ... ok completed + +🔍 DEBUG: Executing statement 2test mir::instruction::tests::test_weak_load_instruction ... ok of 2 +: Iftest mir::instruction::tests::test_weak_new_instruction ... ok + +🔍 execute_statement called with node type: "test mir::instruction_v2::tests::test_effect_categories ... okIf" + +test mir::instruction_v2::tests::test_instruction_count ... ok🔍 execute_statement called with node type: " +Assignment"test mir::instruction_v2::tests::test_ownership_operations ... ok + +🔍 About to call execute_assignment... +test mir::ownership_verifier_simple::tests::test_basic_ref_set ... ok🔍 execute_assignment called, evaluating value expression... + +🔍 execute_new called for class: IntegerBoxtest mir::ownership_verifier_simple::tests::test_ownership_forest_basic ... ok, with 1 + arguments +test mir::ownership_verifier_simple::tests::test_weak_reference_tracking ... ok🔍 Trying unified registry for class: IntegerBox + +test mir::printer::tests::test_empty_module_printing ... ok🏭 Unified registry created: IntegerBox + +test mir::printer::tests::test_function_printing ... ok🔧 execute_binary_op: op=Add +, left=IntegerBoxtest mir::printer::tests::test_verbose_printing ... ok, right=IntegerBox + +test mir::tests::test_basic_mir_compilation ... ok🔍 try_add_operation: left=IntegerBox +, right=IntegerBoxtest mir::tests::test_loop_compilation ... ok + +🔍 After unwrap: left=IntegerBoxtest mir::tests::test_mir_dump ... ok, right=IntegerBox + +test mir::tests::test_throw_compilation ... ok🔍 IntegerBox + IntegerBox detected + +🔍 execute_assignment: value expression evaluated successfully +test mir::tests::test_try_catch_compilation ... ok🔍 DEBUG: resolve_variable: name='x', local_vars=[] + +test mir::value_id::tests::test_local_id_creation ... ok🔍 DEBUG: Checking GlobalBox for 'x +'... +test mir::value_id::tests::test_local_id_generator ... ok🔍 DEBUG: Found 'x +' in GlobalBox +test mir::value_id::tests::test_value_id_creation ... ok🔍 execute_statement called with node type: " +Assignment"test mir::value_id::tests::test_value_id_generator ... ok + +🔍 About to call execute_assignment... +test mir::value_id::tests::test_value_id_ordering ... ok🔍 execute_assignment called, evaluating value expression... + +🔍 execute_new called for class: StringBoxtest mir::verification::tests::test_undefined_value_detection ... ok, with 1 + arguments +test mir::verification::tests::test_valid_function_verification ... ok🔍 Trying unified registry for class: StringBox + +test runtime::box_registry::tests::test_builtin_registration ... ok🔍 execute_assignment: value expression evaluated successfully + +🔍 DEBUG: Statement 1test runtime::box_registry::tests::test_plugin_override ... ok completed + +🏭 Unified registry created: TestBoxtest runtime::plugin_config::tests::test_parse_empty_config ... ok + +🔍 DEBUG: Statement 1test runtime::plugin_config::tests::test_parse_simple_config ... ok completed + +🔍 DEBUG: Executing statement 2test runtime::plugin_config::tests::test_parse_with_comments ... ok of 2 +: Printtest runtime::tests::tests::test_box_registry_builtin ... ok + +🔍 execute_statement called with node type: "test runtime::tests::tests::test_box_registry_plugin_override ... okPrint" + +test runtime::tests::tests::test_multiple_plugin_types ... ok🏭 Unified registry created: IntegerBox + +test runtime::tests::tests::test_plugin_config_parsing ... ok🔍 DEBUG: Interpreter execution completed + +test runtime::tests::tests::test_transparent_box_switching ... 🔍 execute_assignment: value expression evaluated successfully +ok +🔍 DEBUG: resolve_variable: name='x', local_vars=[]test tests::box_tests::tests::test_array_box_nyash_trait ... ok + +test tests::box_tests::tests::test_box_id_uniqueness ... 🔍 DEBUG: Checking GlobalBox for 'xok +'... +test tests::box_tests::tests::test_buffer_box_nyash_trait ... ok🔍 DEBUG: Found 'x +test tests::box_tests::tests::test_future_box_nyash_trait ... ' in GlobalBox +ok🔍 DEBUG: resolve_variable: name='result', local_vars=[] + +test tests::box_tests::tests::test_result_box_nyash_trait ... 🔍 DEBUG: Checking GlobalBox for 'resultok'... + +🔍 DEBUG: Found 'resulttest tests::box_tests::tests::test_stream_box_nyash_trait ... ' in GlobalBox +ok🏭 Unified registry created: StringBox + +test tokenizer::tests::test_comments ... 🔍 execute_assignment: value expression evaluated successfully +ok🔍 execute_assignment: value expression evaluated successfully + +🔍 DEBUG: Statement 2test tests::box_tests::tests::test_json_box_nyash_trait ... completed +ok🔍 DEBUG: Executing statement 3 + of 4test tokenizer::tests::test_complex_code ... : Assignmentok + +🔍 execute_statement called with node type: "test tokenizer::tests::test_error_handling ... Assignment"ok + +🔍 About to call execute_assignment... +test tokenizer::tests::test_identifier ... 🔍 execute_assignment called, evaluating value expression... +ok🔍 execute_new called for class: StringBox +, with 1test tokenizer::tests::test_line_numbers ... arguments +ok🔍 Trying unified registry for class: StringBox + +test tokenizer::tests::test_number_literal ... 🔍 DEBUG: Statement 2ok completed + +🔍 execute_statement called with node type: "test tokenizer::tests::test_operators ... Assignment"ok + +🔍 About to call execute_assignment... +test tokenizer::tests::test_simple_tokens ... 🔍 execute_assignment called, evaluating value expression... +ok🔍 execute_new called for class: IntegerBox +, with 1test tokenizer::tests::test_string_literal ... arguments +ok🔍 Trying unified registry for class: IntegerBox + +test value::tests::test_basic_creation ... 🏭 Unified registry created: StringBoxok + +🔍 DEBUG: Interpreter execution completed +42 +🔍 execute_assignment: value expression evaluated successfully +test value::tests::test_cross_type_equality ... ok🏭 Unified registry created: IntegerBox + +test value::tests::test_object_creation ... ok🔍 execute_assignment: value expression evaluated successfully + +🔍 DEBUG: Statement 2test value::tests::test_type_conversion ... ok completed + +🔍 DEBUG: resolve_variable: name='obj', local_vars=[]test value::tests::test_type_names ... ok + +🔍 DEBUG: Checking GlobalBox for 'objtest value::tests::test_weak_reference_basic ... ok'... + +test value::tests::test_weak_reference_drop ... 🔍 DEBUG: Found 'objok +' in GlobalBox +test value::tests::test_weak_reference_equality ... ok🔍 DEBUG: Interpreter execution completed + +🔍 DEBUG: resolve_variable: name='y', local_vars=[]test value::tests::test_weak_reference_string_representation ... ok + +🔍 DEBUG: Checking GlobalBox for 'ytest interpreter::core::tests::test_arithmetic ... ok'... + +🔍 DEBUG: Found 'ytest interpreter::core::tests::test_simple_execution ... ok' in GlobalBox + +🔍 execute_statement called with node type: "test interpreter::core::tests::test_if_statement ... Assignment"ok + +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🔍 DEBUG: Statement 3 completed +🔍 DEBUG: Executing statement 4 of 4: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 stdlib not initialized for method call +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='obj', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'obj'... +🔍 DEBUG: Found 'obj' in GlobalBox +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='a', local_vars=["a", "c", "b", "me", "result"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=204 +🔍 DEBUG: resolve_variable: name='me', local_vars=["me"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=184 +🔍 DEBUG: resolve_variable: name='b', local_vars=["a", "c", "b", "me", "result"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=220 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +✅ FIELD ACCESS: Returning shared reference id=217 +🔍 DEBUG: resolve_variable: name='result', local_vars=["a", "c", "b", "me", "result"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=229 +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='c', local_vars=["a", "c", "b", "me", "result"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=226 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: Statement 4 completed +🔍 DEBUG: resolve_variable: name='result', local_vars=["a", "c", "b", "me", "result"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=233 +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: resolve_variable: name='a', local_vars=["a", "c", "b", "me", "result"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=204 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='obj', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'obj'... +🔍 DEBUG: Found 'obj' in GlobalBox +🔍 DEBUG: resolve_variable: name='result', local_vars=["a", "c", "b", "me", "result"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=235 +🔍 DEBUG: resolve_variable: name='result', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'result'... +🔍 DEBUG: Found 'result' in GlobalBox +🔍 DEBUG: resolve_variable: name='b', local_vars=["a", "c", "b", "me", "result"]test interpreter::core::tests::test_box_instance_creation ... ok +🔍 DEBUG: Found ' +b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=220 +🔧 execute_binary_op: op=Divide, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Print" +🔍 DEBUG: resolve_variable: name='result', local_vars=["a", "c", "b", "me", "result"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=238 +88 +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='result', local_vars=["a", "c", "b", "me", "result"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=238 +🔍 DEBUG: Interpreter execution completed + 📊 Interpreter: First run completed +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=247 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='a', local_vars=["me", "a", "c", "result", "b"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=256 +🔍 DEBUG: resolve_variable: name='b', local_vars=["me", "a", "c", "result", "b"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=260 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result', local_vars=["me", "a", "c", "result", "b"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=266 +🔍 DEBUG: resolve_variable: name='c', local_vars=["me", "a", "c", "result", "b"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=264 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result', local_vars=["me", "a", "c", "result", "b"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=268 +🔍 DEBUG: resolve_variable: name='a', local_vars=["me", "a", "c", "result", "b"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=256 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result', local_vars=["me", "a", "c", "result", "b"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=270 +🔍 DEBUG: resolve_variable: name='b', local_vars=["me", "a", "c", "result", "b"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=260 +🔧 execute_binary_op: op=Divide, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Print" +🔍 DEBUG: resolve_variable: name='result', local_vars=["me", "a", "c", "result", "b"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=272 +88 +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='result', local_vars=["me", "a", "c", "result", "b"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=272 +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=281 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='a', local_vars=["b", "me", "result", "a", "c"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=290 +🔍 DEBUG: resolve_variable: name='b', local_vars=["b", "me", "result", "a", "c"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=294 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result', local_vars=["b", "me", "result", "a", "c"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=300 +🔍 DEBUG: resolve_variable: name='c', local_vars=["b", "me", "result", "a", "c"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=298 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result', local_vars=["b", "me", "result", "a", "c"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=302 +🔍 DEBUG: resolve_variable: name='a', local_vars=["b", "me", "result", "a", "c"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=290 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result', local_vars=["b", "me", "result", "a", "c"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=304 +🔍 DEBUG: resolve_variable: name='b', local_vars=["b", "me", "result", "a", "c"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=294 +🔧 execute_binary_op: op=Divide, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Print" +🔍 DEBUG: resolve_variable: name='result', local_vars=["b", "me", "result", "a", "c"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=306 +88 +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='result', local_vars=["b", "me", "result", "a", "c"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=306 +🔍 DEBUG: Interpreter execution completed +88 + 🏎️ VM: First run completed +88 +88 +🚀 Running benchmark: bench_medium +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=318 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔗 DEBUG: Variable 'sum' set to 0 - simulating object drop +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=320 +🔗 DEBUG: Old value being dropped: void +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=331 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=326 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=340 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=331 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=347 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=342 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=356 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=347 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=363 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=358 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=372 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=363 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=379 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=374 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=388 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=379 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=395 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=390 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=404 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=395 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=411 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=406 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=420 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=411 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=427 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=422 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=436 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=427 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=443 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=438 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=452 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=443 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=459 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=454 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=468 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=459 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=475 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=470 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=484 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Print" +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=486 +140 +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=486 +🔍 DEBUG: Interpreter execution completed + 📊 Interpreter: First run completed +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=495 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔗 DEBUG: Variable 'sum' set to 0 - simulating object drop +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=497 +🔗 DEBUG: Old value being dropped: void +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=508 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=503 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=517 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=508 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=524 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=519 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=533 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=524 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=540 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=535 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=549 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=540 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=556 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=551 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=565 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=556 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=572 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=567 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=581 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=572 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=588 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=583 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=597 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=588 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=604 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=599 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=613 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=604 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=620 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=615 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=629 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=620 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=636 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=631 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=645 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=636 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=652 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=647 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=661 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Print" +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=663 +140 +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=663 +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=672 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔗 DEBUG: Variable 'sum' set to 0 - simulating object drop +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=674 +🔗 DEBUG: Old value being dropped: void +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=685 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=680 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=694 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=685 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=701 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=696 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=710 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=701 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=717 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=712 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=726 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=717 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=733 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=728 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=742 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=733 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=749 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=744 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=758 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=749 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=765 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=760 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=774 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=765 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=781 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=776 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=790 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=781 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=797 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=792 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=806 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=797 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=813 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=808 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=822 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=813 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=829 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=824 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=838 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Print" +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=840 +140 +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "sum", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=840 +🔍 DEBUG: Interpreter execution completed +140 + 🏎️ VM: First run completed +140 +140 +🚀 Running benchmark: bench_heavy +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=852 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='a', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=873 +🔍 DEBUG: resolve_variable: name='b', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=877 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='c', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=881 +🔍 DEBUG: resolve_variable: name='d', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=885 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='e', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=889 +🔍 DEBUG: resolve_variable: name='f', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=893 +🔧 execute_binary_op: op=Divide, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='g', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=897 +🔍 DEBUG: resolve_variable: name='h', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=901 +🔍 DEBUG: resolve_variable: name='i', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=905 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='j', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=909 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='a', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=873 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result1', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=915 +🔍 DEBUG: resolve_variable: name='result2', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=920 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='b', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=877 +🔍 DEBUG: resolve_variable: name='c', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=881 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result3', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'result3' in local_vars +✅ RESOLVE_VARIABLE shared reference: result3 id=924 +🔍 DEBUG: resolve_variable: name='a', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=873 +🔍 DEBUG: resolve_variable: name='b', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=877 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='c', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=881 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result4', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'result4' in local_vars +✅ RESOLVE_VARIABLE shared reference: result4 id=928 +🔍 DEBUG: resolve_variable: name='result1', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=915 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='result2', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=920 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result5', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=931 +🔍 DEBUG: resolve_variable: name='a', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=873 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='b', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=877 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='c', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=881 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result1', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=935 +🔍 DEBUG: resolve_variable: name='d', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=885 +🔍 DEBUG: resolve_variable: name='e', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=889 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='f', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=893 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result2', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=939 +🔍 DEBUG: resolve_variable: name='g', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=897 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='h', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=901 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='i', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=905 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result3', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'result3' in local_vars +✅ RESOLVE_VARIABLE shared reference: result3 id=943 +🔍 DEBUG: resolve_variable: name='j', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=909 +🔍 DEBUG: resolve_variable: name='a', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=873 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='b', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=877 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result4', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'result4' in local_vars +✅ RESOLVE_VARIABLE shared reference: result4 id=947 +🔍 DEBUG: resolve_variable: name='c', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=881 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='d', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=885 +🔍 DEBUG: resolve_variable: name='e', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=889 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result5', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=951 +🔍 DEBUG: resolve_variable: name='f', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=893 +🔍 DEBUG: resolve_variable: name='g', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=897 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='h', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=901 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result1', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=955 +🔍 DEBUG: resolve_variable: name='i', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=905 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='j', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=909 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='a', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=873 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result2', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=959 +🔍 DEBUG: resolve_variable: name='b', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=877 +🔍 DEBUG: resolve_variable: name='c', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=881 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='d', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=885 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result3', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'result3' in local_vars +✅ RESOLVE_VARIABLE shared reference: result3 id=963 +🔍 DEBUG: resolve_variable: name='e', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=889 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='f', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=893 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='g', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=897 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result4', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'result4' in local_vars +✅ RESOLVE_VARIABLE shared reference: result4 id=967 +🔍 DEBUG: resolve_variable: name='h', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=901 +🔍 DEBUG: resolve_variable: name='i', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=905 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='j', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=909 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result5', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=971 +🔍 DEBUG: resolve_variable: name='a', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=873 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='b', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=877 +🔍 DEBUG: resolve_variable: name='c', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=881 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result1', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=975 +🔍 DEBUG: resolve_variable: name='d', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=885 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='e', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=889 +🔍 DEBUG: resolve_variable: name='f', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=893 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result2', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=979 +🔍 DEBUG: resolve_variable: name='g', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=897 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='h', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=901 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='i', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=905 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result3', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'result3' in local_vars +✅ RESOLVE_VARIABLE shared reference: result3 id=983 +🔍 DEBUG: resolve_variable: name='j', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=909 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='a', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=873 +🔍 DEBUG: resolve_variable: name='b', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=877 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result4', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'result4' in local_vars +✅ RESOLVE_VARIABLE shared reference: result4 id=987 +🔍 DEBUG: resolve_variable: name='c', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=881 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='d', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=885 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='e', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=889 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Print" +🔍 DEBUG: resolve_variable: name='result5', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=991 +6301391 +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='result5', local_vars=["h", "i", "e", "d", "a", "result1", "f", "j", "b", "c", "result5", "result2", "g", "me", "result3", "result4"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=991 +🔍 DEBUG: Interpreter execution completed + 📊 Interpreter: First run completed +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=1000 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='a', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=1021 +🔍 DEBUG: resolve_variable: name='b', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=1025 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='c', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=1029 +🔍 DEBUG: resolve_variable: name='d', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=1033 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='e', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=1037 +🔍 DEBUG: resolve_variable: name='f', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=1041 +🔧 execute_binary_op: op=Divide, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='g', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=1045 +🔍 DEBUG: resolve_variable: name='h', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=1049 +🔍 DEBUG: resolve_variable: name='i', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=1053 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='j', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=1057 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='a', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=1021 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result1', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=1063 +🔍 DEBUG: resolve_variable: name='result2', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=1068 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='b', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=1025 +🔍 DEBUG: resolve_variable: name='c', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=1029 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result3', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'result3' in local_vars +✅ RESOLVE_VARIABLE shared reference: result3 id=1072 +🔍 DEBUG: resolve_variable: name='a', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=1021 +🔍 DEBUG: resolve_variable: name='b', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=1025 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='c', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=1029 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result4', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'result4' in local_vars +✅ RESOLVE_VARIABLE shared reference: result4 id=1076 +🔍 DEBUG: resolve_variable: name='result1', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=1063 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='result2', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=1068 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result5', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=1079 +🔍 DEBUG: resolve_variable: name='a', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=1021 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='b', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=1025 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='c', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=1029 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result1', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=1083 +🔍 DEBUG: resolve_variable: name='d', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=1033 +🔍 DEBUG: resolve_variable: name='e', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=1037 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='f', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=1041 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result2', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=1087 +🔍 DEBUG: resolve_variable: name='g', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=1045 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='h', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=1049 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='i', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=1053 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result3', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'result3' in local_vars +✅ RESOLVE_VARIABLE shared reference: result3 id=1091 +🔍 DEBUG: resolve_variable: name='j', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=1057 +🔍 DEBUG: resolve_variable: name='a', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=1021 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='b', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=1025 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result4', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'result4' in local_vars +✅ RESOLVE_VARIABLE shared reference: result4 id=1095 +🔍 DEBUG: resolve_variable: name='c', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=1029 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='d', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=1033 +🔍 DEBUG: resolve_variable: name='e', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=1037 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result5', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=1099 +🔍 DEBUG: resolve_variable: name='f', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=1041 +🔍 DEBUG: resolve_variable: name='g', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=1045 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='h', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=1049 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result1', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=1103 +🔍 DEBUG: resolve_variable: name='i', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=1053 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='j', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=1057 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='a', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=1021 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result2', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=1107 +🔍 DEBUG: resolve_variable: name='b', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=1025 +🔍 DEBUG: resolve_variable: name='c', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=1029 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='d', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=1033 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result3', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'result3' in local_vars +✅ RESOLVE_VARIABLE shared reference: result3 id=1111 +🔍 DEBUG: resolve_variable: name='e', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=1037 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='f', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=1041 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='g', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=1045 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result4', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'result4' in local_vars +✅ RESOLVE_VARIABLE shared reference: result4 id=1115 +🔍 DEBUG: resolve_variable: name='h', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=1049 +🔍 DEBUG: resolve_variable: name='i', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=1053 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='j', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=1057 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result5', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=1119 +🔍 DEBUG: resolve_variable: name='a', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=1021 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='b', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=1025 +🔍 DEBUG: resolve_variable: name='c', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=1029 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result1', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=1123 +🔍 DEBUG: resolve_variable: name='d', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=1033 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='e', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=1037 +🔍 DEBUG: resolve_variable: name='f', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=1041 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result2', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=1127 +🔍 DEBUG: resolve_variable: name='g', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=1045 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='h', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=1049 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='i', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=1053 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result3', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'result3' in local_vars +✅ RESOLVE_VARIABLE shared reference: result3 id=1131 +🔍 DEBUG: resolve_variable: name='j', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=1057 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='a', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=1021 +🔍 DEBUG: resolve_variable: name='b', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=1025 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result4', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'result4' in local_vars +✅ RESOLVE_VARIABLE shared reference: result4 id=1135 +🔍 DEBUG: resolve_variable: name='c', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=1029 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='d', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=1033 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='e', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=1037 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Print" +🔍 DEBUG: resolve_variable: name='result5', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=1139 +6301391 +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='result5', local_vars=["h", "f", "e", "i", "result1", "result3", "j", "b", "result2", "result5", "a", "result4", "me", "g", "d", "c"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=1139 +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=1148 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='a', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=1169 +🔍 DEBUG: resolve_variable: name='b', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=1173 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='c', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=1177 +🔍 DEBUG: resolve_variable: name='d', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=1181 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='e', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=1185 +🔍 DEBUG: resolve_variable: name='f', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=1189 +🔧 execute_binary_op: op=Divide, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='g', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=1193 +🔍 DEBUG: resolve_variable: name='h', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=1197 +🔍 DEBUG: resolve_variable: name='i', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=1201 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='j', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=1205 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='a', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=1169 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result1', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=1211 +🔍 DEBUG: resolve_variable: name='result2', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=1216 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='b', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=1173 +🔍 DEBUG: resolve_variable: name='c', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=1177 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result3', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'result3' in local_vars +✅ RESOLVE_VARIABLE shared reference: result3 id=1220 +🔍 DEBUG: resolve_variable: name='a', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=1169 +🔍 DEBUG: resolve_variable: name='b', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=1173 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='c', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=1177 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result4', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'result4' in local_vars +✅ RESOLVE_VARIABLE shared reference: result4 id=1224 +🔍 DEBUG: resolve_variable: name='result1', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=1211 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='result2', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=1216 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result5', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=1227 +🔍 DEBUG: resolve_variable: name='a', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=1169 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='b', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=1173 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='c', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=1177 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result1', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=1231 +🔍 DEBUG: resolve_variable: name='d', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=1181 +🔍 DEBUG: resolve_variable: name='e', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=1185 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='f', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=1189 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result2', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=1235 +🔍 DEBUG: resolve_variable: name='g', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=1193 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='h', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=1197 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='i', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=1201 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result3', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'result3' in local_vars +✅ RESOLVE_VARIABLE shared reference: result3 id=1239 +🔍 DEBUG: resolve_variable: name='j', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=1205 +🔍 DEBUG: resolve_variable: name='a', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=1169 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='b', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=1173 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result4', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'result4' in local_vars +✅ RESOLVE_VARIABLE shared reference: result4 id=1243 +🔍 DEBUG: resolve_variable: name='c', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=1177 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='d', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=1181 +🔍 DEBUG: resolve_variable: name='e', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=1185 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result5', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=1247 +🔍 DEBUG: resolve_variable: name='f', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=1189 +🔍 DEBUG: resolve_variable: name='g', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=1193 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='h', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=1197 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result1', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=1251 +🔍 DEBUG: resolve_variable: name='i', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=1201 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='j', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=1205 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='a', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=1169 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result2', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=1255 +🔍 DEBUG: resolve_variable: name='b', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=1173 +🔍 DEBUG: resolve_variable: name='c', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=1177 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='d', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=1181 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result3', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'result3' in local_vars +✅ RESOLVE_VARIABLE shared reference: result3 id=1259 +🔍 DEBUG: resolve_variable: name='e', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=1185 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='f', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=1189 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='g', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=1193 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result4', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'result4' in local_vars +✅ RESOLVE_VARIABLE shared reference: result4 id=1263 +🔍 DEBUG: resolve_variable: name='h', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=1197 +🔍 DEBUG: resolve_variable: name='i', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=1201 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='j', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=1205 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result5', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=1267 +🔍 DEBUG: resolve_variable: name='a', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=1169 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='b', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=1173 +🔍 DEBUG: resolve_variable: name='c', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=1177 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result1', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=1271 +🔍 DEBUG: resolve_variable: name='d', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=1181 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='e', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=1185 +🔍 DEBUG: resolve_variable: name='f', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=1189 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result2', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=1275 +🔍 DEBUG: resolve_variable: name='g', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=1193 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='h', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=1197 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='i', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=1201 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result3', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'result3' in local_vars +✅ RESOLVE_VARIABLE shared reference: result3 id=1279 +🔍 DEBUG: resolve_variable: name='j', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=1205 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='a', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=1169 +🔍 DEBUG: resolve_variable: name='b', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=1173 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result4', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'result4' in local_vars +✅ RESOLVE_VARIABLE shared reference: result4 id=1283 +🔍 DEBUG: resolve_variable: name='c', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=1177 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='d', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=1181 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='e', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=1185 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Print" +🔍 DEBUG: resolve_variable: name='result5', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=1287 +6301391 +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='result5', local_vars=["result5", "h", "me", "i", "result2", "c", "g", "e", "f", "d", "j", "result4", "result3", "a", "b", "result1"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=1287 +🔍 DEBUG: Interpreter execution completed +6301391 + 🏎️ VM: First run completed +6301391 +6301391 + +📊 Nyash Performance Benchmark Results +===================================== +Iterations per test: 3 + +🎯 bench_heavy + Backend | Avg Time (ms) | Total Time (ms) | Speed Ratio + --------------|---------------|-----------------|------------ + Interpreter | 295.162 | 885.5 | 384.70x + VM | 0.767 | 2.3 | 1.00x + +🎯 bench_medium + Backend | Avg Time (ms) | Total Time (ms) | Speed Ratio + --------------|---------------|-----------------|------------ + Interpreter | 245.216 | 735.6 | 373.98x + VM | 0.656 | 2.0 | 1.00x + +🎯 bench_light + Backend | Avg Time (ms) | Total Time (ms) | Speed Ratio + --------------|---------------|-----------------|------------ + Interpreter | 88.599 | 265.8 | 279.30x + VM | 0.317 | 1.0 | 1.00x + +💡 Performance Summary: + 📈 Average across all benchmarks: + Interpreter: 209.66 ms + VM: 0.58 ms (361.4x faster than interpreter) + WASM: NaN ms (NaNx faster than interpreter) +test benchmarks::tests::test_benchmark_light ... ok + +test result: ok. 156 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.93s + + Running unittests src/main.rs (target/debug/deps/nyash-272ca05a1be10a69) + +running 145 tests +test box_arithmetic::tests::test_compare_box ... ok +test bid::types::tests::test_handle_packing ... ok +test bid::types::tests::test_type_tags ... ok +test bid::metadata::tests::test_host_vtable ... ok +test box_trait::tests::test_add_box_integers ... ok +test box_arithmetic::tests::test_multiply_box ... ok +🚀 Running benchmark: bench_light +test box_arithmetic::tests::test_subtract_box ... ok +test box_arithmetic::tests::test_add_box_integers ... ok +test box_arithmetic::tests::test_modulo_box ... ok +test bid::metadata::tests::test_plugin_metadata_creation ... ok +test bid::tlv::tests::test_encode_decode_primitives ... ok +test bid::tlv::tests::test_encode_decode_handle ... ok +test box_trait::tests::test_integer_box_creation ... ok +test ast::tests::test_binary_operation ... ok +test ast::tests::test_binary_operator ... ok +test ast::tests::test_ast_node_creation ... ok +test box_arithmetic::tests::test_add_box_strings ... ok +test box_factory::tests::test_registry_creation ... ok +test ast::tests::test_method_call ... ok +test box_arithmetic::tests::test_divide_box ... ok +test box_trait::tests::test_string_box_creation ... ok +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: test box_trait::tests::test_box_ids_unique ... okProgram + +🔍 DEBUG: Executing program with 1test box_trait::tests::test_box_equality ... ok statements +🔍 DEBUG: Executing statement +1 of test box_arithmetic::tests::test_modulo_by_zero ... ok1: +BoxDeclaration +test box_trait::tests::test_add_box_strings ... ok +test box_arithmetic::tests::test_divide_by_zero ... ok +test backend::vm::tests::test_basic_vm_execution ... ok +test box_arithmetic::tests::test_modulo_chip8_pattern ... ok +test box_trait::tests::test_void_box ... ok +Instance: StringBox +Instance: MyBox +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: test bid::plugin_api::tests::test_plugin_handle ... okProgram + +🔍 DEBUG: Executing program with 1test bid::types::tests::test_arg_type_mapping ... ok statements + +🔍 DEBUG: Executing statement 1test boxes::null_box::tests::test_get_or_default ... ok of 1 +: Assignmenttest box_trait::tests::test_bool_box_creation ... ok + +🔍 execute_statement called with node type: "test boxes::null_box::tests::test_null_check ... okAssignment" + +test backend::vm::tests::test_binary_operations ... ok🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +test boxes::null_box::tests::test_null_creation ... ok🔍 execute_new called for class: IntegerBox +, with 1test backend::vm_phi::tests::test_phi_selection ... ok arguments + +🔍 Trying unified registry for class: IntegerBoxtest boxes::null_box::tests::test_null_equality ... ok + +🔍 DEBUG: Starting interpreter execution... +test cli::tests::test_default_config ... ok🔍 DEBUG: execute_node called with node type: Program + +test ast::tests::test_complex_ast ... ok🔍 DEBUG: Executing program with 4 + statements +test bid::bridge::tests::test_integer_box_bid_conversion ... ok🔍 DEBUG: Executing statement 1 + of 4test bid::bridge::tests::test_box_registry ... ok: BoxDeclaration + +test bid::bridge::tests::test_future_box_bid_conversion ... ok🔍 execute_statement called with node type: " +BoxDeclaration"test bid::bridge::tests::test_string_box_bid_conversion ... ok + +test cli::tests::test_parse_debug_fuel ... 🔍 DEBUG: Starting interpreter execution... +ok +🔍 DEBUG: execute_node called with node type: Programtest environment::tests::test_error_handling ... ok + +🔍 DEBUG: Executing program with 2test environment::tests::test_global_environment ... ok statements + +🔍 DEBUG: Executing statement 1test environment::tests::test_nested_scopes ... ok of 2 +: Assignmenttest environment::tests::test_python_compat ... ok + +🔍 execute_statement called with node type: "test environment::tests::test_variable_setting ... okAssignment" + +test environment::tests::test_scope_info ... ok🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +test environment::tests::test_variable_shadowing ... ok🔍 execute_new called for class: BoolBox +, with 1test finalization::tests::test_finalization_tracking ... ok arguments + +🔍 Trying unified registry for class: BoolBoxtest instance_v2::tests::test_field_operations ... ok + +🔍 execute_statement called with node type: "test instance_v2::tests::test_from_any_box_creation ... okBoxDeclaration" + +test instance_v2::tests::test_from_declaration_creation ... ok🏭 Unified registry created: IntegerBox + +test instance_v2::tests::test_unified_approach ... ok🔍 DEBUG: Statement 1 + completed +test config::nyash_toml_v2::tests::test_parse_v2_config ... ok🔍 DEBUG: Executing statement 2 + of 4test mir::basic_block::tests::test_basic_block_creation ... ok: Assignment + +test bid::plugins::filebox::tests::test_filebox_plugin ... ok🔍 execute_statement called with node type: " +Assignment"test mir::basic_block::tests::test_basic_block_id_generator ... ok + +🔍 About to call execute_assignment... +test mir::basic_block::tests::test_branch_successors ... ok🔍 execute_assignment called, evaluating value expression... + +🔍 execute_new called for class: TestBoxtest mir::basic_block::tests::test_instruction_addition ... ok, with 0 + arguments +test mir::basic_block::tests::test_phi_instruction_ordering ... ok🔍 Trying unified registry for class: TestBox + +test mir::basic_block::tests::test_terminator_addition ... ok🔍 execute_new called for class: IntegerBox +, with 1test mir::basic_block::tests::test_value_tracking ... ok arguments + +🔍 Trying unified registry for class: IntegerBoxtest mir::builder::tests::test_binary_op_building ... ok + +🔍 DEBUG: Starting interpreter execution... +test mir::builder::tests::test_if_statement_building ... ok🔍 DEBUG: execute_node called with node type: Program + +test mir::builder::tests::test_literal_building ... ok🔍 DEBUG: Executing program with 2 + statements +test mir::effect::tests::test_effect_combination ... ok🔍 DEBUG: Executing statement 1 + of 2test mir::effect::tests::test_effect_display ... ok: Assignment + +test mir::effect::tests::test_effect_mask_creation ... ok🔍 execute_statement called with node type: " +Assignment"test mir::effect::tests::test_effect_names ... ok + +🔍 About to call execute_assignment... +test mir::effect::tests::test_effect_union ... ok🔍 execute_assignment called, evaluating value expression... + +🔍 execute_new called for class: IntegerBoxtest mir::effect::tests::test_parallel_safety ... ok, with 1 + arguments +test mir::function::tests::test_function_creation ... ok🔍 Trying unified registry for class: IntegerBox + +test mir::function::tests::test_function_stats ... ok🌍 statics namespace created in GlobalBox successfully + +🔥 Static Box 'Maintest mir::function::tests::test_module_creation ... ok' definition registered in statics namespace + +🔍 DEBUG: Statement 1test mir::function::tests::test_value_id_generation ... ok completed + +🏭 Unified registry created: BoolBoxtest mir::instruction::tests::test_barrier_instructions ... ok + +🌍 statics namespace already exists - skipping creation +test mir::instruction::tests::test_binop_instruction ... ok🔍 execute_assignment: value expression evaluated successfully + +🏭 Unified registry created: TestBoxtest mir::instruction::tests::test_call_instruction ... ok + +🔥 Static box 'Maintest mir::instruction::tests::test_const_instruction ... ok' instance registered in statics namespace + +🔍 DEBUG: Statement 1test mir::instruction::tests::test_extern_call_instruction ... ok completed + +🔍 DEBUG: Executing statement 2test mir::instruction::tests::test_ref_get_instruction ... ok of 2 +: Iftest mir::instruction::tests::test_ref_new_instruction ... ok + +🔍 execute_statement called with node type: "test mir::instruction::tests::test_ref_set_instruction ... okIf" + +test mir::instruction::tests::test_weak_load_instruction ... ok🔍 execute_statement called with node type: " +MethodCall"test mir::instruction::tests::test_weak_new_instruction ... ok + +🔍 execute_assignment: value expression evaluated successfully +test mir::instruction_v2::tests::test_effect_categories ... ok🏭 Unified registry created: IntegerBox + +test mir::instruction_v2::tests::test_instruction_count ... ok🔍 DEBUG: resolve_variable: name='x', local_vars=[] + +test mir::instruction_v2::tests::test_ownership_operations ... ok🔍 DEBUG: Checking GlobalBox for 'x +'... +test mir::ownership_verifier_simple::tests::test_basic_ref_set ... ok🔍 DEBUG: Found 'x +' in GlobalBox +test mir::ownership_verifier_simple::tests::test_ownership_forest_basic ... ok🔍 execute_statement called with node type: " +Assignment"test mir::ownership_verifier_simple::tests::test_weak_reference_tracking ... ok + +🔍 About to call execute_assignment... +test mir::printer::tests::test_empty_module_printing ... ok🔍 execute_assignment called, evaluating value expression... + +🔍 execute_new called for class: StringBoxtest mir::printer::tests::test_function_printing ... ok, with 1 + arguments +test mir::printer::tests::test_verbose_printing ... ok🔍 Trying unified registry for class: StringBox + +test mir::tests::test_basic_mir_compilation ... ok🏭 Unified registry created: IntegerBox + +test mir::tests::test_loop_compilation ... ok🔍 DEBUG: Statement 2 + completed +test mir::tests::test_mir_dump ... ok🔍 DEBUG: Executing statement 3 + of 4test mir::tests::test_throw_compilation ... ok: Assignment + +test mir::tests::test_try_catch_compilation ... ok🔍 execute_statement called with node type: " +Assignment"test mir::value_id::tests::test_local_id_creation ... ok + +🔍 About to call execute_assignment... +test mir::value_id::tests::test_local_id_generator ... ok🔍 execute_assignment called, evaluating value expression... + +🔍 execute_new called for class: StringBoxtest mir::value_id::tests::test_value_id_creation ... ok, with 1 + arguments +test mir::value_id::tests::test_value_id_generator ... ok🔍 Trying unified registry for class: StringBox + +test mir::value_id::tests::test_value_id_ordering ... ok🔍 execute_assignment: value expression evaluated successfully + +🏭 Unified registry created: StringBoxtest mir::verification::tests::test_undefined_value_detection ... ok + +🔍 DEBUG: resolve_variable: name='statics', local_vars=[]test mir::verification::tests::test_valid_function_verification ... ok + +🔍 DEBUG: Checking GlobalBox for 'staticstest runner::tests::test_runner_creation ... ok'... + +🔍 DEBUG: Found 'staticstest runtime::box_registry::tests::test_builtin_registration ... ok' in GlobalBox + +🔍 execute_assignment: value expression evaluated successfully +test runtime::box_registry::tests::test_plugin_override ... ok🏭 Unified registry created: StringBox + +test runtime::plugin_config::tests::test_parse_empty_config ... ok🔍 execute_assignment: value expression evaluated successfully + +test runtime::plugin_config::tests::test_parse_simple_config ... 🔍 DEBUG: Statement 1ok + completed +test runtime::plugin_config::tests::test_parse_with_comments ... ok🔍 DEBUG: Executing statement 2 +test runtime::tests::tests::test_box_registry_builtin ... of 2ok +: Printtest runtime::tests::tests::test_box_registry_plugin_override ... ok + +test runtime::tests::tests::test_multiple_plugin_types ... 🔍 execute_statement called with node type: "ok +Print"test runtime::tests::tests::test_plugin_config_parsing ... ok + +test runtime::tests::tests::test_transparent_box_switching ... 🔧 execute_binary_op: op=Addok +, left=IntegerBoxtest tests::test_main_functionality ... ok, right=IntegerBox +test tokenizer::tests::test_comments ... +ok +🔍 try_add_operation: left=IntegerBoxtest tokenizer::tests::test_complex_code ... ok, right=IntegerBox +test tokenizer::tests::test_error_handling ... +ok +🔍 After unwrap: left=IntegerBoxtest tokenizer::tests::test_identifier ... ok, right=IntegerBox +test tokenizer::tests::test_line_numbers ... +ok +🔍 IntegerBox + IntegerBox detected +test tokenizer::tests::test_number_literal ... ok🔍 execute_assignment: value expression evaluated successfully + +🔍 DEBUG: resolve_variable: name='obj', local_vars=[]test tokenizer::tests::test_operators ... ok + +🔍 DEBUG: Checking GlobalBox for 'objtest tokenizer::tests::test_simple_tokens ... ok'... + +test tokenizer::tests::test_string_literal ... 🔍 DEBUG: Found 'objok +' in GlobalBox +test value::tests::test_basic_creation ... ok🔍 DEBUG: resolve_variable: name='x', local_vars=[] + +test value::tests::test_cross_type_equality ... ok🔍 DEBUG: Checking GlobalBox for 'x +'... +test value::tests::test_object_creation ... ok🔍 DEBUG: Found 'x +' in GlobalBox +test value::tests::test_type_conversion ... 🔍 DEBUG: Statement 2ok completed + +🔍 DEBUG: Statement 342 + completed +test value::tests::test_type_names ... ok🔍 DEBUG: Executing statement 4 + of 4test value::tests::test_weak_reference_basic ... ok: Assignment + +test value::tests::test_weak_reference_drop ... ok🔍 execute_statement called with node type: " +Assignment"test value::tests::test_weak_reference_equality ... ok + +🔍 About to call execute_assignment... +test value::tests::test_weak_reference_string_representation ... ok🔍 execute_assignment called, evaluating value expression... + +🔍 stdlib not initialized for method call +✅ FIELD ACCESS: Returning shared reference id=136 +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: Statement 2 completed +🔍 DEBUG: Statement 1 completed +🔍 DEBUG: resolve_variable: name='obj', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'obj'... +🔍 DEBUG: Found 'obj' in GlobalBox +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: Interpreter execution completed +test interpreter::core::tests::test_simple_execution ... ok🔍 execute_statement called with node type: " +Local" +🔍 DEBUG: resolve_variable: name='y', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'y'... +🔍 DEBUG: Found 'y' in GlobalBox +🔍 execute_statement called with node type: "test interpreter::core::tests::test_if_statement ... okAssignment" + +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='result', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'result'... +🔍 DEBUG: Found 'result' in GlobalBox +🏭 Unified registry created: IntegerBoxtest interpreter::core::tests::test_arithmetic ... ok + +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='me', local_vars=["me"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=135 +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +✅ FIELD ACCESS: Returning shared reference id=150 +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🔍 DEBUG: Statement 4 completed +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Interpreter execution completed +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='obj', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'obj'... +🔍 DEBUG: Found 'obj' in GlobalBox +🔍 DEBUG: resolve_variable: name='a', local_vars=["b", "result", "c", "me", "a"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=171 +🔍 DEBUG: resolve_variable: name='result', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'result'... +🔍 DEBUG: Found 'result' in GlobalBox +🔍 DEBUG: resolve_variable: name='b', local_vars=["b", "result", "c", "me", "a"]test interpreter::core::tests::test_box_instance_creation ... ok +🔍 DEBUG: Found ' +b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=176 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result', local_vars=["b", "result", "c", "me", "a"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=185 +🔍 DEBUG: resolve_variable: name='c', local_vars=["b", "result", "c", "me", "a"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=182 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result', local_vars=["b", "result", "c", "me", "a"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=187 +🔍 DEBUG: resolve_variable: name='a', local_vars=["b", "result", "c", "me", "a"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=171 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result', local_vars=["b", "result", "c", "me", "a"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=189 +🔍 DEBUG: resolve_variable: name='b', local_vars=["b", "result", "c", "me", "a"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=176 +🔧 execute_binary_op: op=Divide, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Print" +🔍 DEBUG: resolve_variable: name='result', local_vars=["b", "result", "c", "me", "a"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=191 +88 +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='result', local_vars=["b", "result", "c", "me", "a"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=191 +🔍 DEBUG: Interpreter execution completed + 📊 Interpreter: First run completed +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=200 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='a', local_vars=["c", "b", "a", "me", "result"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=209 +🔍 DEBUG: resolve_variable: name='b', local_vars=["c", "b", "a", "me", "result"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=213 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result', local_vars=["c", "b", "a", "me", "result"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=219 +🔍 DEBUG: resolve_variable: name='c', local_vars=["c", "b", "a", "me", "result"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=217 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result', local_vars=["c", "b", "a", "me", "result"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=221 +🔍 DEBUG: resolve_variable: name='a', local_vars=["c", "b", "a", "me", "result"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=209 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result', local_vars=["c", "b", "a", "me", "result"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=223 +🔍 DEBUG: resolve_variable: name='b', local_vars=["c", "b", "a", "me", "result"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=213 +🔧 execute_binary_op: op=Divide, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Print" +🔍 DEBUG: resolve_variable: name='result', local_vars=["c", "b", "a", "me", "result"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=225 +88 +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='result', local_vars=["c", "b", "a", "me", "result"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=225 +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=234 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='a', local_vars=["me", "result", "a", "b", "c"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=243 +🔍 DEBUG: resolve_variable: name='b', local_vars=["me", "result", "a", "b", "c"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=247 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result', local_vars=["me", "result", "a", "b", "c"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=253 +🔍 DEBUG: resolve_variable: name='c', local_vars=["me", "result", "a", "b", "c"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=251 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result', local_vars=["me", "result", "a", "b", "c"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=255 +🔍 DEBUG: resolve_variable: name='a', local_vars=["me", "result", "a", "b", "c"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=243 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result', local_vars=["me", "result", "a", "b", "c"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=257 +🔍 DEBUG: resolve_variable: name='b', local_vars=["me", "result", "a", "b", "c"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=247 +🔧 execute_binary_op: op=Divide, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Print" +🔍 DEBUG: resolve_variable: name='result', local_vars=["me", "result", "a", "b", "c"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=259 +88 +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='result', local_vars=["me", "result", "a", "b", "c"] +🔍 DEBUG: Found 'result' in local_vars +✅ RESOLVE_VARIABLE shared reference: result id=259 +🔍 DEBUG: Interpreter execution completed +88 + 🏎️ VM: First run completed +88 +88 +🚀 Running benchmark: bench_medium +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=271 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔗 DEBUG: Variable 'sum' set to 0 - simulating object drop +🔍 DEBUG: resolve_variable: name='sum', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=273 +🔗 DEBUG: Old value being dropped: void +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=284 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=279 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=293 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=284 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=300 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=295 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=309 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=300 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=316 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=311 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=325 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=316 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=332 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=327 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=341 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=332 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=348 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=343 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=357 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=348 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=364 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=359 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=373 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=364 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=380 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=375 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=389 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=380 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=396 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=391 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=405 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=396 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=412 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=407 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=421 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=412 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=428 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=423 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=437 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Print" +🔍 DEBUG: resolve_variable: name='sum', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=439 +140 +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='sum', local_vars=["temp", "me", "sum", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=439 +🔍 DEBUG: Interpreter execution completed + 📊 Interpreter: First run completed +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=448 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔗 DEBUG: Variable 'sum' set to 0 - simulating object drop +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=450 +🔗 DEBUG: Old value being dropped: void +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=461 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=456 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=470 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=461 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=477 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=472 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=486 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=477 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=493 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=488 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=502 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=493 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=509 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=504 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=518 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=509 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=525 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=520 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=534 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=525 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=541 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=536 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=550 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=541 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=557 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=552 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=566 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=557 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=573 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=568 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=582 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=573 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=589 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=584 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=598 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=589 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=605 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=600 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=614 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Print" +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=616 +140 +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "me", "temp", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=616 +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=625 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔗 DEBUG: Variable 'sum' set to 0 - simulating object drop +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=627 +🔗 DEBUG: Old value being dropped: void +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=638 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=633 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=647 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=638 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=654 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=649 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=663 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=654 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=670 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=665 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=679 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=670 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=686 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=681 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=695 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=686 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=702 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=697 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=711 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=702 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=718 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=713 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=727 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=718 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=734 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=729 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=743 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=734 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=750 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=745 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=759 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=750 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=766 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=761 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=775 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=766 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=782 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=777 +🔍 DEBUG: resolve_variable: name='temp', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'temp' in local_vars +✅ RESOLVE_VARIABLE shared reference: temp id=791 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Print" +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=793 +140 +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "i", "temp", "sum"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=793 +🔍 DEBUG: Interpreter execution completed +140 + 🏎️ VM: First run completed +140 +140 +🚀 Running benchmark: bench_heavy +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=805 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='a', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=826 +🔍 DEBUG: resolve_variable: name='b', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=830 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='c', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=834 +🔍 DEBUG: resolve_variable: name='d', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=838 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='e', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=842 +🔍 DEBUG: resolve_variable: name='f', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=846 +🔧 execute_binary_op: op=Divide, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='g', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=850 +🔍 DEBUG: resolve_variable: name='h', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=854 +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=858 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='j', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=862 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='a', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=826 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result1', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=868 +🔍 DEBUG: resolve_variable: name='result2', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=873 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='b', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=830 +🔍 DEBUG: resolve_variable: name='c', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=834 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result3', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'result3' in local_vars +✅ RESOLVE_VARIABLE shared reference: result3 id=877 +🔍 DEBUG: resolve_variable: name='a', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=826 +🔍 DEBUG: resolve_variable: name='b', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=830 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='c', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=834 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result4', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'result4' in local_vars +✅ RESOLVE_VARIABLE shared reference: result4 id=881 +🔍 DEBUG: resolve_variable: name='result1', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=868 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='result2', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=873 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result5', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=884 +🔍 DEBUG: resolve_variable: name='a', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=826 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='b', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=830 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='c', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=834 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result1', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=888 +🔍 DEBUG: resolve_variable: name='d', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=838 +🔍 DEBUG: resolve_variable: name='e', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=842 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='f', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=846 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result2', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=892 +🔍 DEBUG: resolve_variable: name='g', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=850 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='h', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=854 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=858 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result3', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'result3' in local_vars +✅ RESOLVE_VARIABLE shared reference: result3 id=896 +🔍 DEBUG: resolve_variable: name='j', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=862 +🔍 DEBUG: resolve_variable: name='a', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=826 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='b', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=830 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result4', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'result4' in local_vars +✅ RESOLVE_VARIABLE shared reference: result4 id=900 +🔍 DEBUG: resolve_variable: name='c', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=834 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='d', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=838 +🔍 DEBUG: resolve_variable: name='e', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=842 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result5', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=904 +🔍 DEBUG: resolve_variable: name='f', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=846 +🔍 DEBUG: resolve_variable: name='g', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=850 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='h', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=854 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result1', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=908 +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=858 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='j', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=862 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='a', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=826 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result2', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=912 +🔍 DEBUG: resolve_variable: name='b', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=830 +🔍 DEBUG: resolve_variable: name='c', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=834 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='d', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=838 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result3', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'result3' in local_vars +✅ RESOLVE_VARIABLE shared reference: result3 id=916 +🔍 DEBUG: resolve_variable: name='e', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=842 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='f', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=846 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='g', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=850 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result4', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'result4' in local_vars +✅ RESOLVE_VARIABLE shared reference: result4 id=920 +🔍 DEBUG: resolve_variable: name='h', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=854 +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=858 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='j', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=862 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result5', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=924 +🔍 DEBUG: resolve_variable: name='a', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=826 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='b', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=830 +🔍 DEBUG: resolve_variable: name='c', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=834 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result1', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=928 +🔍 DEBUG: resolve_variable: name='d', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=838 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='e', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=842 +🔍 DEBUG: resolve_variable: name='f', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=846 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result2', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=932 +🔍 DEBUG: resolve_variable: name='g', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=850 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='h', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=854 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=858 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result3', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'result3' in local_vars +✅ RESOLVE_VARIABLE shared reference: result3 id=936 +🔍 DEBUG: resolve_variable: name='j', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=862 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='a', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=826 +🔍 DEBUG: resolve_variable: name='b', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=830 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result4', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'result4' in local_vars +✅ RESOLVE_VARIABLE shared reference: result4 id=940 +🔍 DEBUG: resolve_variable: name='c', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=834 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='d', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=838 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='e', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=842 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Print" +🔍 DEBUG: resolve_variable: name='result5', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=944 +6301391 +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='result5', local_vars=["me", "result3", "c", "a", "i", "result4", "b", "j", "result2", "f", "d", "g", "result1", "result5", "h", "e"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=944 +🔍 DEBUG: Interpreter execution completed + 📊 Interpreter: First run completed +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=953 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='a', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=974 +🔍 DEBUG: resolve_variable: name='b', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=978 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='c', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=982 +🔍 DEBUG: resolve_variable: name='d', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=986 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='e', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=990 +🔍 DEBUG: resolve_variable: name='f', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=994 +🔧 execute_binary_op: op=Divide, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='g', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=998 +🔍 DEBUG: resolve_variable: name='h', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=1002 +🔍 DEBUG: resolve_variable: name='i', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=1006 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='j', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=1010 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='a', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=974 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result1', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=1016 +🔍 DEBUG: resolve_variable: name='result2', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=1021 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='b', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=978 +🔍 DEBUG: resolve_variable: name='c', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=982 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result3', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'result3' in local_vars +✅ RESOLVE_VARIABLE shared reference: result3 id=1025 +🔍 DEBUG: resolve_variable: name='a', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=974 +🔍 DEBUG: resolve_variable: name='b', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=978 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='c', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=982 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result4', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'result4' in local_vars +✅ RESOLVE_VARIABLE shared reference: result4 id=1029 +🔍 DEBUG: resolve_variable: name='result1', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=1016 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='result2', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=1021 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result5', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=1032 +🔍 DEBUG: resolve_variable: name='a', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=974 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='b', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=978 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='c', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=982 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result1', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=1036 +🔍 DEBUG: resolve_variable: name='d', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=986 +🔍 DEBUG: resolve_variable: name='e', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=990 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='f', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=994 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result2', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=1040 +🔍 DEBUG: resolve_variable: name='g', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=998 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='h', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=1002 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='i', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=1006 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result3', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'result3' in local_vars +✅ RESOLVE_VARIABLE shared reference: result3 id=1044 +🔍 DEBUG: resolve_variable: name='j', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=1010 +🔍 DEBUG: resolve_variable: name='a', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=974 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='b', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=978 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result4', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'result4' in local_vars +✅ RESOLVE_VARIABLE shared reference: result4 id=1048 +🔍 DEBUG: resolve_variable: name='c', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=982 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='d', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=986 +🔍 DEBUG: resolve_variable: name='e', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=990 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result5', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=1052 +🔍 DEBUG: resolve_variable: name='f', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=994 +🔍 DEBUG: resolve_variable: name='g', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=998 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='h', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=1002 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result1', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=1056 +🔍 DEBUG: resolve_variable: name='i', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=1006 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='j', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=1010 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='a', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=974 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result2', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=1060 +🔍 DEBUG: resolve_variable: name='b', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=978 +🔍 DEBUG: resolve_variable: name='c', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=982 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='d', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=986 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result3', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'result3' in local_vars +✅ RESOLVE_VARIABLE shared reference: result3 id=1064 +🔍 DEBUG: resolve_variable: name='e', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=990 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='f', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=994 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='g', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=998 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result4', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'result4' in local_vars +✅ RESOLVE_VARIABLE shared reference: result4 id=1068 +🔍 DEBUG: resolve_variable: name='h', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=1002 +🔍 DEBUG: resolve_variable: name='i', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=1006 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='j', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=1010 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result5', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=1072 +🔍 DEBUG: resolve_variable: name='a', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=974 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='b', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=978 +🔍 DEBUG: resolve_variable: name='c', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=982 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result1', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=1076 +🔍 DEBUG: resolve_variable: name='d', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=986 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='e', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=990 +🔍 DEBUG: resolve_variable: name='f', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=994 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result2', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=1080 +🔍 DEBUG: resolve_variable: name='g', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=998 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='h', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=1002 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='i', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=1006 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result3', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'result3' in local_vars +✅ RESOLVE_VARIABLE shared reference: result3 id=1084 +🔍 DEBUG: resolve_variable: name='j', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=1010 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='a', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=974 +🔍 DEBUG: resolve_variable: name='b', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=978 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result4', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'result4' in local_vars +✅ RESOLVE_VARIABLE shared reference: result4 id=1088 +🔍 DEBUG: resolve_variable: name='c', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=982 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='d', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=986 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='e', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=990 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Print" +🔍 DEBUG: resolve_variable: name='result5', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=1092 +6301391 +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='result5', local_vars=["result1", "f", "me", "result2", "a", "g", "result3", "b", "h", "d", "j", "result5", "c", "e", "i", "result4"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=1092 +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=1101 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='a', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=1122 +🔍 DEBUG: resolve_variable: name='b', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=1126 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='c', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=1130 +🔍 DEBUG: resolve_variable: name='d', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=1134 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='e', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=1138 +🔍 DEBUG: resolve_variable: name='f', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=1142 +🔧 execute_binary_op: op=Divide, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='g', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=1146 +🔍 DEBUG: resolve_variable: name='h', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=1150 +🔍 DEBUG: resolve_variable: name='i', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=1154 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='j', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=1158 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='a', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=1122 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result1', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=1164 +🔍 DEBUG: resolve_variable: name='result2', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=1169 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='b', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=1126 +🔍 DEBUG: resolve_variable: name='c', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=1130 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result3', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'result3' in local_vars +✅ RESOLVE_VARIABLE shared reference: result3 id=1173 +🔍 DEBUG: resolve_variable: name='a', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=1122 +🔍 DEBUG: resolve_variable: name='b', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=1126 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='c', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=1130 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result4', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'result4' in local_vars +✅ RESOLVE_VARIABLE shared reference: result4 id=1177 +🔍 DEBUG: resolve_variable: name='result1', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=1164 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='result2', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=1169 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result5', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=1180 +🔍 DEBUG: resolve_variable: name='a', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=1122 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='b', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=1126 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='c', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=1130 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result1', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=1184 +🔍 DEBUG: resolve_variable: name='d', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=1134 +🔍 DEBUG: resolve_variable: name='e', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=1138 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='f', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=1142 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result2', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=1188 +🔍 DEBUG: resolve_variable: name='g', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=1146 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='h', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=1150 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='i', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=1154 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result3', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'result3' in local_vars +✅ RESOLVE_VARIABLE shared reference: result3 id=1192 +🔍 DEBUG: resolve_variable: name='j', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=1158 +🔍 DEBUG: resolve_variable: name='a', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=1122 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='b', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=1126 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result4', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'result4' in local_vars +✅ RESOLVE_VARIABLE shared reference: result4 id=1196 +🔍 DEBUG: resolve_variable: name='c', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=1130 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='d', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=1134 +🔍 DEBUG: resolve_variable: name='e', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=1138 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result5', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=1200 +🔍 DEBUG: resolve_variable: name='f', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=1142 +🔍 DEBUG: resolve_variable: name='g', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=1146 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='h', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=1150 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result1', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=1204 +🔍 DEBUG: resolve_variable: name='i', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=1154 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='j', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=1158 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='a', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=1122 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result2', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=1208 +🔍 DEBUG: resolve_variable: name='b', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=1126 +🔍 DEBUG: resolve_variable: name='c', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=1130 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='d', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=1134 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result3', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'result3' in local_vars +✅ RESOLVE_VARIABLE shared reference: result3 id=1212 +🔍 DEBUG: resolve_variable: name='e', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=1138 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='f', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=1142 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='g', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=1146 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result4', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'result4' in local_vars +✅ RESOLVE_VARIABLE shared reference: result4 id=1216 +🔍 DEBUG: resolve_variable: name='h', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=1150 +🔍 DEBUG: resolve_variable: name='i', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=1154 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='j', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=1158 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result5', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=1220 +🔍 DEBUG: resolve_variable: name='a', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=1122 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='b', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=1126 +🔍 DEBUG: resolve_variable: name='c', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=1130 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result1', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'result1' in local_vars +✅ RESOLVE_VARIABLE shared reference: result1 id=1224 +🔍 DEBUG: resolve_variable: name='d', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=1134 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='e', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=1138 +🔍 DEBUG: resolve_variable: name='f', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'f' in local_vars +✅ RESOLVE_VARIABLE shared reference: f id=1142 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result2', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'result2' in local_vars +✅ RESOLVE_VARIABLE shared reference: result2 id=1228 +🔍 DEBUG: resolve_variable: name='g', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'g' in local_vars +✅ RESOLVE_VARIABLE shared reference: g id=1146 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='h', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'h' in local_vars +✅ RESOLVE_VARIABLE shared reference: h id=1150 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='i', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=1154 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result3', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'result3' in local_vars +✅ RESOLVE_VARIABLE shared reference: result3 id=1232 +🔍 DEBUG: resolve_variable: name='j', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'j' in local_vars +✅ RESOLVE_VARIABLE shared reference: j id=1158 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='a', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=1122 +🔍 DEBUG: resolve_variable: name='b', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=1126 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result4', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'result4' in local_vars +✅ RESOLVE_VARIABLE shared reference: result4 id=1236 +🔍 DEBUG: resolve_variable: name='c', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'c' in local_vars +✅ RESOLVE_VARIABLE shared reference: c id=1130 +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: resolve_variable: name='d', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'd' in local_vars +✅ RESOLVE_VARIABLE shared reference: d id=1134 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='e', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'e' in local_vars +✅ RESOLVE_VARIABLE shared reference: e id=1138 +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Print" +🔍 DEBUG: resolve_variable: name='result5', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=1240 +6301391 +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='result5', local_vars=["i", "result3", "result1", "b", "me", "j", "h", "g", "result5", "f", "c", "d", "result2", "result4", "e", "a"] +🔍 DEBUG: Found 'result5' in local_vars +✅ RESOLVE_VARIABLE shared reference: result5 id=1240 +🔍 DEBUG: Interpreter execution completed +6301391 + 🏎️ VM: First run completed +6301391 +6301391 + +📊 Nyash Performance Benchmark Results +===================================== +Iterations per test: 3 + +🎯 bench_light + Backend | Avg Time (ms) | Total Time (ms) | Speed Ratio + --------------|---------------|-----------------|------------ + Interpreter | 84.250 | 252.7 | 261.17x + VM | 0.323 | 1.0 | 1.00x + +🎯 bench_heavy + Backend | Avg Time (ms) | Total Time (ms) | Speed Ratio + --------------|---------------|-----------------|------------ + Interpreter | 271.596 | 814.8 | 403.33x + VM | 0.673 | 2.0 | 1.00x + +🎯 bench_medium + Backend | Avg Time (ms) | Total Time (ms) | Speed Ratio + --------------|---------------|-----------------|------------ + Interpreter | 234.877 | 704.6 | 380.04x + VM | 0.618 | 1.9 | 1.00x + +💡 Performance Summary: + 📈 Average across all benchmarks: + Interpreter: 196.91 ms + VM: 0.54 ms (366.0x faster than interpreter) + WASM: NaN ms (NaNx faster than interpreter) +test benchmarks::tests::test_benchmark_light ... ok + +test result: ok. 145 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.82s + + Running tests/array_state_sharing_test.rs (target/debug/deps/array_state_sharing_test-892ed54276bf1011) + +running 3 tests +test array_state_sharing_tests::test_share_box_vs_clone_box_semantics ... ok +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🔍 execute_statement called with node type: "BoxDeclaration" +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=19 +✅ FIELD ACCESS: Returning shared reference id=17 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: ArrayBox, with 0 arguments +🔍 Trying unified registry for class: ArrayBox +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: ArrayBox, with 0 arguments +🔍 Trying unified registry for class: ArrayBox +🏭 Unified registry created: ArrayBox +🔍 execute_assignment: value expression evaluated successfully +🏭 Unified registry created: ArrayBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "MethodCall" +🔍 stdlib not initialized for method call +🔍 execute_statement called with node type: "MethodCall" +🔍 stdlib not initialized for method call +🔍 DEBUG: resolve_variable: name='arr', local_vars=["arr", "me"] +🔍 DEBUG: Found 'arr' in local_vars +✅ RESOLVE_VARIABLE shared reference: arr id=29 +🔍 DEBUG: resolve_variable: name='arr', local_vars=["me", "arr"] +🔍 DEBUG: Found 'arr' in local_vars +✅ RESOLVE_VARIABLE shared reference: arr id=31 +🔍 execute_new called for class: StringBox, with 1 arguments +🔍 Trying unified registry for class: StringBox +🔍 execute_new called for class: StringBox, with 1 arguments +🔍 Trying unified registry for class: StringBox +🏭 Unified registry created: StringBox +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 stdlib not initialized for method call +🏭 Unified registry created: StringBox +🔍 execute_statement called with node type: "MethodCall" +🔍 stdlib not initialized for method call +🔍 DEBUG: resolve_variable: name='arr', local_vars=["me", "arr"] +🔍 DEBUG: Found 'arr' in local_vars +✅ RESOLVE_VARIABLE shared reference: arr id=31 +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='arr', local_vars=["arr", "me"] +🔍 DEBUG: Found 'arr' in local_vars +✅ RESOLVE_VARIABLE shared reference: arr id=29 +🔍 execute_new called for class: StringBox, with 1 arguments +🔍 Trying unified registry for class: StringBox +🔍 DEBUG: resolve_variable: name='me', local_vars=["me", "arr"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=17 +🏭 Unified registry created: StringBox +🔍 execute_statement called with node type: "MethodCall" +🔍 stdlib not initialized for method call +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='arr', local_vars=["arr", "me"] +🔍 DEBUG: Found 'arr' in local_vars +✅ RESOLVE_VARIABLE shared reference: arr id=29 +🔍 execute_new called for class: StringBox, with 1 arguments +🔍 Trying unified registry for class: StringBox +🔍 DEBUG: resolve_variable: name='me', local_vars=["me", "arr"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=17 +✅ FIELD ACCESS: Returning shared reference id=41 +🏭 Unified registry created: StringBox +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 stdlib not initialized for method call +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: resolve_variable: name='arr', local_vars=["arr", "me"]test array_state_sharing_tests::test_arraybox_state_sharing_bug_fix ... ok +🔍 DEBUG: Found ' +arr' in local_vars +✅ RESOLVE_VARIABLE shared reference: arr id=29 +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='me', local_vars=["arr", "me"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=19 +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='me', local_vars=["arr", "me"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=19 +✅ FIELD ACCESS: Returning shared reference id=52 +🔍 DEBUG: Interpreter execution completed +test array_state_sharing_tests::test_multiple_operations_state_preservation ... ok + +test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s + + Running tests/integration_tests.rs (target/debug/deps/integration_tests-4636610fbd1b2065) + +running 16 tests + +thread 'integration_tests::test_function_declaration_and_call' panicked at tests/integration_tests.rs:143:57: +called `Result::unwrap()` on an `Err` value: "Parse error: Invalid statement at line 2" +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace + +thread 'integration_tests::test_loop_with_break' panicked at tests/integration_tests.rs:129:58: +called `Result::unwrap()` on an `Err` value: "Parse error: Unexpected token LBRACE, expected LPAREN at line 3" + +thread 'integration_tests::test_global_variables' panicked at tests/integration_tests.rs:276:57: +called `Result::unwrap()` on an `Err` value: "Parse error: Invalid statement at line 5" + +thread 'integration_tests::test_method_chaining_concept' panicked at tests/integration_tests.rs:227:57: +called `Result::unwrap()` on an `Err` value: "Parse error: Unexpected token INIT, expected identifier at line 21" +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 3 statements +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 6 statements +🔍 DEBUG: Executing statement 1test integration_tests::test_global_variables ... FAILED of 6 +test integration_tests::test_function_declaration_and_call ... : AssignmentFAILED + +test integration_tests::test_method_chaining_concept ... FAILED🔍 execute_statement called with node type: " +Assignment"test integration_tests::test_loop_with_break ... FAILED +🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 5 statements +🔍 DEBUG: Executing statement 1 of 5: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 9 statements +🔍 DEBUG: Executing statement 1 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 DEBUG: Statement 1 completed +🔍 DEBUG: Executing statement 2 of 5: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: TestBox, with 0 arguments +🔍 Trying unified registry for class: TestBox +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 4 statements +🔍 DEBUG: Executing statement 1 of 4: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 3 statements +🔍 DEBUG: Executing statement 1 of 3: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 4 statements +🔍 DEBUG: Executing statement 1 of 4: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🏭 Unified registry created: TestBox +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 2 statements +🔍 DEBUG: Executing statement 1 of 2: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: BoolBox, with 1 arguments +🔍 Trying unified registry for class: BoolBox +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 7 statements +🔍 DEBUG: Executing statement 1 of 7: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 5 statements +🔍 DEBUG: Executing statement 1 of 5: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🔍 DEBUG: Executing statement 1 of 3: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: StringBox, with 1 arguments +🔍 Trying unified registry for class: StringBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 4 statements +🔍 DEBUG: Executing statement 1 of 4: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: BoolBox, with 1 arguments +🔍 Trying unified registry for class: BoolBox +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🔍 DEBUG: Statement 1 completed +🔍 DEBUG: Executing statement 2 of 5: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: Calculator, with 0 arguments +🔍 Trying unified registry for class: Calculator +🔍 DEBUG: Statement 1 completed +🔍 DEBUG: Executing statement 2 of 7: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: Data, with 0 arguments +🔍 Trying unified registry for class: Data +🏭 Unified registry created: IntegerBox +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 6 statements +🔍 DEBUG: Executing statement 1 of 6: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🔍 DEBUG: Statement 1 completed +🔍 DEBUG: Executing statement 2 of 4: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: Point, with 0 arguments +🔍 Trying unified registry for class: Point +🏭 Unified registry created: IntegerBox +🔍 DEBUG: Statement 1 completed +🔍 DEBUG: Executing statement 2 of 6: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🔍 execute_assignment: value expression evaluated successfully +🏭 Unified registry created: IntegerBox +🔍 DEBUG: Statement 2 completed +🔍 DEBUG: Executing statement 3 of 5: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: StringBox, with 1 arguments +🔍 Trying unified registry for class: StringBox +🔍 DEBUG: Statement 2 completed +🔍 DEBUG: Executing statement 3 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: Container, with 0 arguments +🔍 Trying unified registry for class: Container +🏭 Unified registry created: BoolBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 1 completed +🔍 DEBUG: Executing statement 2 of 3: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: StringBox +🔍 DEBUG: Statement 1 completed +🔍 DEBUG: Executing statement 2 of 4: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🏭 Unified registry created: BoolBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 1 completed +🔍 DEBUG: Executing statement 2 of 3: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: StringBox, with 1 arguments +🔍 Trying unified registry for class: StringBox +🔍 DEBUG: Statement 1 completed +🔍 DEBUG: Executing statement 2 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🔍 DEBUG: Statement 1 completed +🔍 DEBUG: Executing statement 2 of 2: If +🔍 execute_statement called with node type: "If" +🔍 execute_assignment: value expression evaluated successfully +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 1 completed +🔍 DEBUG: Executing statement 2 of 4: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: BoolBox, with 1 arguments +🔍 Trying unified registry for class: BoolBox +🔍 DEBUG: resolve_variable: name='condition', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'condition'... +🔍 DEBUG: Found 'condition' in GlobalBox +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: StringBox, with 1 arguments +🔍 Trying unified registry for class: StringBox +🔍 DEBUG: Statement 1 completed +🔍 DEBUG: Executing statement 2 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: Calculator +🔍 execute_assignment: value expression evaluated successfully +🏭 Unified registry created: Data +🔍 DEBUG: Statement 2 completed +🔍 DEBUG: Executing statement 3 of 5: MethodCall +🔍 execute_statement called with node type: "MethodCall" +🔍 stdlib not initialized for method call +🏭 Unified registry created: Point +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='calc', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'calc'... +🔍 DEBUG: Found 'calc' in GlobalBox +🔍 DEBUG: Statement 2 completed +🔍 DEBUG: Executing statement 3 of 7: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: Data, with 0 arguments +🔍 Trying unified registry for class: Data +🔍 execute_assignment: value expression evaluated successfully +🏭 Unified registry created: StringBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🏭 Unified registry created: Container +🔍 DEBUG: Statement 2 completed +🔍 DEBUG: Executing statement 3 of 4: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🔍 DEBUG: resolve_variable: name='obj', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'obj'... +🔍 DEBUG: Found 'obj' in GlobalBox +🔍 execute_assignment: value expression evaluated successfully +🏭 Unified registry created: IntegerBox +🔍 DEBUG: Statement 3 completed +🔍 DEBUG: Executing statement 4 of 5: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_assignment: value expression evaluated successfully +🏭 Unified registry created: IntegerBox +🔍 DEBUG: Statement 3 completed +🔍 DEBUG: Executing statement 4 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 stdlib not initialized for method call +🔍 DEBUG: Statement 2 completed +🔍 DEBUG: Executing statement 3 of 3: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_assignment: value expression evaluated successfully +🏭 Unified registry created: StringBox +🔍 DEBUG: resolve_variable: name='obj', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'obj'... +🔍 DEBUG: Found 'obj' in GlobalBox +🔍 DEBUG: Statement 2 completed +🔍 DEBUG: Executing statement 3 of 4: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 DEBUG: resolve_variable: name='container', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'container'... +🔍 DEBUG: Found 'container' in GlobalBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 2 completed +🔍 DEBUG: Executing statement 3 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🏭 Unified registry created: BoolBox +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: Statement 2 completed +🔍 DEBUG: Executing statement 3 of 3: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: Wrapper, with 0 arguments +🔍 Trying unified registry for class: Wrapper +✅ FIELD ACCESS: Returning shared reference id=77 +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 4 completed +🔍 DEBUG: Executing statement 5 of 5: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 stdlib not initialized for method call +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: resolve_variable: name='greeting', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'greeting'... +🔍 DEBUG: Found 'greeting' in GlobalBox +🔍 execute_assignment: value expression evaluated successfully +🏭 Unified registry created: StringBox +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Less, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 3 completed +🔍 DEBUG: Executing statement 4 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: Statement 2 completed +🔍 DEBUG: Executing statement 3 of 4: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='name', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'name'... +🔍 DEBUG: Found 'name' in GlobalBox +🔧 execute_binary_op: op=Add, left=StringBox, right=StringBox +🔍 try_add_operation: left=StringBox, right=StringBox +🔍 After unwrap: left=StringBox, right=StringBox +🔍 Checking StringBox downcast... +🔍 StringBox downcast SUCCESS! +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 3 completed +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🏭 Unified registry created: IntegerBox +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: resolve_variable: name='obj', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'obj'... +🔍 DEBUG: Found 'obj' in GlobalBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=And, left=BoolBox, right=BoolBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 3 completed +🔍 DEBUG: Executing statement 4 of 4: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='message', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'message'... +🔍 DEBUG: Found 'message' in GlobalBox +🔍 execute_statement called with node type: "test integration_tests::test_string_operations ... okReturn" + +🔍 DEBUG: Statement 2 completed +🔍 execute_assignment: value expression evaluated successfully +🏭 Unified registry created: Data +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: resolve_variable: name='me', local_vars=["me"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=20 +✅ FIELD ACCESS: Returning shared reference id=77 +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🏭 Unified registry created: IntegerBox +🔍 DEBUG: Statement 5 completed +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: Statement 2 completed +🔍 DEBUG: Executing statement 3 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Or, left=BoolBox, right=BoolBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='direct_access', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'direct_access'... +🔍 DEBUG: Found 'direct_access' in GlobalBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 3 completed +🔍 DEBUG: Statement 4 completed +🏭 Unified registry created: IntegerBox +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Greater, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🏭 Unified registry created: IntegerBox +🔍 DEBUG: resolve_variable: name='v', local_vars=["me", "v"] +🔍 DEBUG: Found 'v' in local_vars +✅ RESOLVE_VARIABLE shared reference: v id=122 +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: Interpreter execution completed +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='and_result', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'and_result'... +🔍 DEBUG: Found 'and_result' in GlobalBox +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='result', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'result'... +🔍 DEBUG: Found 'result' in GlobalBox +🔍 DEBUG: resolve_variable: name='result', local_vars=[]test integration_tests::test_if_else_statements ... ok + +🔍 DEBUG: Checking GlobalBox for 'result'... +🔍 DEBUG: Found 'result' in GlobalBox +🔍 execute_assignment: value expression evaluated successfully +test integration_tests::test_basic_arithmetic ... ok🏭 Unified registry created: Wrapper + +🔍 DEBUG: Statement 3 completed +🔍 DEBUG: Executing statement 4 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: Statement 3 completed +🔍 DEBUG: Executing statement 4 of 4: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='me', local_vars=["me", "v"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=66 +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 4 statements +🔍 DEBUG: Executing statement 1 of 4: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: BoolBox, with 1 arguments +🔍 Trying unified registry for class: BoolBox +🔍 DEBUG: Statement 3 completed +🔍 DEBUG: Executing statement 4 of 7: MethodCall +🔍 execute_statement called with node type: "MethodCall" +🔍 stdlib not initialized for method call +🔍 DEBUG: Statement 3 completed +🔍 DEBUG: Executing statement 4 of 5: MethodCall +🔍 execute_statement called with node type: "MethodCall" +🔍 stdlib not initialized for method call +🏭 Unified registry created: BoolBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 4 completed +🔍 DEBUG: Executing statement 5 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='d1', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'd1'... +🔍 DEBUG: Found 'd1' in GlobalBox +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: Statement 1 completed +🔍 DEBUG: Executing statement 2 of 4: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: BoolBox, with 1 arguments +🔍 Trying unified registry for class: BoolBox +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: Statement 4 completed +🔍 DEBUG: Executing statement 5 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🏭 Unified registry created: BoolBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='p', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'p'... +🔍 DEBUG: Found 'p' in GlobalBox +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 5 statements +🔍 DEBUG: Executing statement 1 of 5: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🔍 DEBUG: Statement 2 completed +🔍 DEBUG: Executing statement 3 of 4: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='calc', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'calc'... +🔍 DEBUG: Found 'calc' in GlobalBox +🔍 DEBUG: Statement 1 completed +🔍 DEBUG: Executing statement 2 of 5: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: TestBox, with 0 arguments +🔍 Trying unified registry for class: TestBox +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔧 execute_binary_op: op=Equal, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_new called for class: StringBox, with 1 arguments +🔍 Trying unified registry for class: StringBox +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🏭 Unified registry created: TestBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 3 completed +🔍 DEBUG: Executing statement 4 of 4: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 stdlib not initialized for method call +🔍 DEBUG: resolve_variable: name='c', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'c'... +🔍 DEBUG: Found 'c' in GlobalBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 DEBUG: Statement 5 completed +🔍 DEBUG: Executing statement 6 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: Statement 5 completed +🔍 DEBUG: Executing statement 6 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='p', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'p'... +🔍 DEBUG: Found 'p' in GlobalBox +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🏭 Unified registry created: StringBox +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='me', local_vars=["me"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=81 +🔍 DEBUG: resolve_variable: name='me', local_vars=["me"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=76 +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=And, left=BoolBox, right=BoolBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=NotEqual, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🏭 Unified registry created: IntegerBox +🔍 DEBUG: Statement 4 completed +🔍 DEBUG: resolve_variable: name='v', local_vars=["v", "me"] +🔍 DEBUG: Found 'v' in local_vars +✅ RESOLVE_VARIABLE shared reference: v id=171 +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 2 completed +✅ FIELD ACCESS: Returning shared reference id=129 +🔍 DEBUG: Statement 6 completed +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔧 execute_binary_op: op=Less, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: Statement 3 completed +🔍 DEBUG: Executing statement 4 of 4: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: resolve_variable: name='me', local_vars=["me", "amount"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=66 +🔍 DEBUG: Executing statement 3 of 5: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: StringBox, with 1 arguments +🔍 Trying unified registry for class: StringBox +🔍 DEBUG: resolve_variable: name='me', local_vars=["me"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=81 +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: Statement 4 completed +🔍 DEBUG: Statement 6 completed +🔍 DEBUG: Executing statement 7 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +✅ FIELD ACCESS: Returning shared reference id=122 +✅ FIELD ACCESS: Returning shared reference id=142 +🔍 DEBUG: resolve_variable: name='less', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'less'... +🔍 DEBUG: Found 'less' in GlobalBox +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Or, left=BoolBox, right=BoolBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: resolve_variable: name='result', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'result'... +🔍 DEBUG: Found 'result' in GlobalBox +🔍 DEBUG: resolve_variable: name='a', local_vars=[]test integration_tests::test_complex_expression_evaluation ... ok + +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: Statement 4 completed +🔍 DEBUG: Executing statement 5 of 6: MethodCall +🔍 execute_statement called with node type: "MethodCall" +🔍 stdlib not initialized for method call +🔍 DEBUG: resolve_variable: name='amount', local_vars=["me", "amount"] +🔍 DEBUG: Found 'amount' in local_vars +✅ RESOLVE_VARIABLE shared reference: amount id=177 +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Greater, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 4 completed +🔍 DEBUG: resolve_variable: name='me', local_vars=["me", "amount"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=66 +🔍 DEBUG: resolve_variable: name='me', local_vars=["v", "me"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=72 +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: resolve_variable: name='result', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'result'... +🔍 DEBUG: Found 'result' in GlobalBox +🔍 DEBUG: resolve_variable: name='w', local_vars=[]test integration_tests::test_box_instance_creation ... ok + +🔍 DEBUG: Checking GlobalBox for 'w'... +🔍 DEBUG: Found 'w' in GlobalBox +🔍 DEBUG: resolve_variable: name='or_result', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'or_result'... +🔍 DEBUG: Found 'or_result' in GlobalBox +🔍 DEBUG: Statement 7 +thread 'integration_tests::test_boolean_logic' panicked at tests/integration_tests.rs:81:9: +assertion `left == right` failed + left: "true" + right: "false" + completed +test integration_tests::test_boolean_logic ... FAILED🔍 DEBUG: Executing statement 8 + of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: Statement 4 completed +🔍 DEBUG: Executing statement 5 of 7: MethodCall +🔍 execute_statement called with node type: "MethodCall" +🔍 stdlib not initialized for method call +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='d2', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'd2'... +🔍 DEBUG: Found 'd2' in GlobalBox +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔧 execute_binary_op: op=LessEqual, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='me', local_vars=["me", "amount"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=66 +🔍 execute_new called for class: StringBox, with 1 arguments +🔍 Trying unified registry for class: StringBox +🔍 execute_new called for class: StringBox, with 1 arguments +🔍 Trying unified registry for class: StringBox +✅ FIELD ACCESS: Returning shared reference id=202 +🔍 DEBUG: Statement 8 completed +🔍 DEBUG: Executing statement 9 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🏭 Unified registry created: StringBox +🔍 DEBUG: Statement 4 completed +🔍 DEBUG: Executing statement 5 of 5: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 stdlib not initialized for method call +🔍 execute_assignment: value expression evaluated successfully +🏭 Unified registry created: StringBox +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 6 statements +🔍 DEBUG: Executing statement 1 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='calc', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'calc'... +🔍 DEBUG: Found 'calc' in GlobalBox +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🏭 Unified registry created: StringBox +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='v', local_vars=["me", "v"] +🔍 DEBUG: Found 'v' in local_vars +✅ RESOLVE_VARIABLE shared reference: v id=216 +🔍 execute_assignment: value expression evaluated successfully +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='obj', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'obj'... +🔍 DEBUG: Found 'obj' in GlobalBox +🔍 DEBUG: resolve_variable: name='me', local_vars=["me", "v"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=113 +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=GreaterEqual, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 5 completed +🔍 DEBUG: Executing statement 6 of 7: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 stdlib not initialized for method call +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: Statement 1 completed +🔍 DEBUG: Executing statement 2 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🔍 DEBUG: resolve_variable: name='d1', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'd1'... +🔍 DEBUG: Found 'd1' in GlobalBox +🔍 DEBUG: resolve_variable: name='value', local_vars=["value", "me"] +🔍 DEBUG: Found 'value' in local_vars +✅ RESOLVE_VARIABLE shared reference: value id=218 +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='me', local_vars=["me"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=66 +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 2 completed +🔍 DEBUG: Executing statement 3 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='me', local_vars=["value", "me"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=142 +✅ FIELD ACCESS: Returning shared reference id=202 +🔍 DEBUG: Statement 3 completed +🔍 DEBUG: Executing statement 4 of 5: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: Statement 5 completed +🔍 DEBUG: Executing statement 6 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 stdlib not initialized for method call +🔍 DEBUG: resolve_variable: name='obj', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'obj'... +🔍 DEBUG: Found 'obj' in GlobalBox +🔍 DEBUG: Statement 9 completed +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Less, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: resolve_variable: name='container', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'container'... +🔍 DEBUG: Found 'container' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=194 +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='add_result', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'add_result'... +🔍 DEBUG: Found 'add_result' in GlobalBox +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: Statement 3 completed +🔍 DEBUG: Executing statement 4 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='me', local_vars=["me"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=81 +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 9 statements +🔍 DEBUG: Executing statement 1 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +✅ FIELD ACCESS: Returning shared reference id=142 +🔍 DEBUG: resolve_variable: name='me', local_vars=["me"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=72 +✅ FIELD ACCESS: Returning shared reference id=171 +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 1 completed +🔍 DEBUG: Executing statement 2 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🔍 DEBUG: Statement 5 completed +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: Statement 6 completed +🔍 DEBUG: Executing statement 7 of 7: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 stdlib not initialized for method call +🔍 DEBUG: resolve_variable: name='me', local_vars=["me"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=142 +✅ FIELD ACCESS: Returning shared reference id=218 +🔍 DEBUG: resolve_variable: name='result', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'result'... +🔍 DEBUG: Found 'result' in GlobalBox +🏭 Unified registry created: IntegerBoxtest integration_tests::test_this_binding_in_methods ... ok + +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='d2', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'd2'... +🔍 DEBUG: Found 'd2' in GlobalBox +🔍 DEBUG: Statement 2 completed +🔍 DEBUG: Executing statement 3 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: Statement 6 completed +🔍 DEBUG: Statement 4 completed +🔍 DEBUG: Executing statement 5 of 5: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 stdlib not initialized for method call +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: resolve_variable: name='obj', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'obj'... +🔍 DEBUG: Found 'obj' in GlobalBox +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Greater, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 4 completed +🔍 DEBUG: Executing statement 5 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='me', local_vars=["me"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=113 +🔍 DEBUG: Statement 3 completed +🔍 DEBUG: Executing statement 4 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +✅ FIELD ACCESS: Returning shared reference id=216 +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 execute_assignment called, evaluating value expression... +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Interpreter execution completed +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔧 execute_binary_op: op=Equal, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: resolve_variable: name='me', local_vars=["me"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=164 +✅ FIELD ACCESS: Returning shared reference id=194 +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 5 completed +🔍 DEBUG: Executing statement 6 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: Statement 7 completed +🔍 DEBUG: resolve_variable: name='result', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'result'... +🔍 DEBUG: Found 'result' in GlobalBox +🔍 DEBUG: resolve_variable: name='a', local_vars=[]test integration_tests::test_nested_method_calls ... ok + +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: Statement 4 completed +🔍 DEBUG: Executing statement 5 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=NotEqual, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: Statement 6 completed +🔍 DEBUG: Statement 5 completed +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: resolve_variable: name='result1', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'result1'... +🔍 DEBUG: Found 'result1' in GlobalBox +🔍 DEBUG: resolve_variable: name='method_result', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'method_result'... +🔍 DEBUG: Found 'method_result' in GlobalBox +🔍 DEBUG: Starting interpreter execution... +test integration_tests::test_the_debug_this_problem ... ok🔍 DEBUG: execute_node called with node type: Program + +🔍 DEBUG: Executing program with 7 statements +🔍 DEBUG: Executing statement 1 of 7: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 5 completed +🔍 DEBUG: Executing statement 6 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='greater', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'greater'... +🔍 DEBUG: Found 'greater' in GlobalBox +🔍 DEBUG: Statement 1 completed +🔍 DEBUG: Executing statement 2 of 7: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: Data, with 0 arguments +🔍 Trying unified registry for class: Data +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 6 statements +🔍 DEBUG: Executing statement 1 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: Data +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔧 execute_binary_op: op=Less, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_assignment: value expression evaluated successfully +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 2 completed +🔍 DEBUG: Executing statement 3 of 7: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: Data, with 0 arguments +🔍 Trying unified registry for class: Data +🔍 DEBUG: Statement 6 completed +🔍 DEBUG: Executing statement 7 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: Statement 1 completed +🔍 DEBUG: Executing statement 2 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: Data +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Greater, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 7 completed +🔍 DEBUG: Executing statement 8 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: Statement 3 completed +🔍 DEBUG: Executing statement 4 of 7: MethodCall +🔍 execute_statement called with node type: "MethodCall" +🔍 stdlib not initialized for method call +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔍 DEBUG: Statement 2 completed +🔍 DEBUG: Executing statement 3 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='d1', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'd1'... +🔍 DEBUG: Found 'd1' in GlobalBox +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔧 execute_binary_op: op=LessEqual, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 execute_new called for class: StringBox, with 1 arguments +🔍 Trying unified registry for class: StringBox +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Less, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 8 completed +🔍 DEBUG: Executing statement 9 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🏭 Unified registry created: StringBox +🔍 DEBUG: Statement 3 completed +🔍 DEBUG: Executing statement 4 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=GreaterEqual, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='v', local_vars=["v", "me"] +🔍 DEBUG: Found 'v' in local_vars +✅ RESOLVE_VARIABLE shared reference: v id=318 +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 9 completed +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Greater, left=IntegerBox, right=IntegerBox +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: resolve_variable: name='me', local_vars=["v", "me"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=291 +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='sub_result', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'sub_result'... +🔍 DEBUG: Found 'sub_result' in GlobalBox +🔍 DEBUG: Statement 4 completed +🔍 DEBUG: Executing statement 5 of 7: MethodCall +🔍 execute_statement called with node type: "MethodCall" +🔍 stdlib not initialized for method call +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 9 statements +🔍 DEBUG: Executing statement 1 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🔍 DEBUG: Statement 4 completed +🔍 DEBUG: Executing statement 5 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='d2', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'd2'... +🔍 DEBUG: Found 'd2' in GlobalBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_new called for class: StringBox, with 1 arguments +🔍 Trying unified registry for class: StringBox +🔍 DEBUG: Statement 1 completed +🔍 DEBUG: Executing statement 2 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🏭 Unified registry created: StringBox +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔧 execute_binary_op: op=Equal, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='v', local_vars=["me", "v"] +🔍 DEBUG: Found 'v' in local_vars +✅ RESOLVE_VARIABLE shared reference: v id=340 +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 2 completed +🔍 DEBUG: Executing statement 3 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: Statement 5 completed +🔍 DEBUG: Executing statement 6 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='me', local_vars=["me", "v"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=303 +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: Statement 5 completed +🔍 DEBUG: Executing statement 6 of 7: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 stdlib not initialized for method call +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=NotEqual, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 6 completed +🔍 DEBUG: resolve_variable: name='d1', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'd1'... +🔍 DEBUG: Found 'd1' in GlobalBox +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: Statement 3 completed +🔍 DEBUG: Executing statement 4 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='equal', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'equal'... +🔍 DEBUG: Found 'equal' in GlobalBox +🔍 DEBUG: resolve_variable: name='me', local_vars=["me"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=291 +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 6 statements +🔍 DEBUG: Executing statement 1 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +✅ FIELD ACCESS: Returning shared reference id=318 +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 4 completed +🔍 DEBUG: Executing statement 5 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: Statement 1 completed +🔍 DEBUG: Executing statement 2 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🔍 DEBUG: Statement 6 completed +🔍 DEBUG: Executing statement 7 of 7: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 stdlib not initialized for method call +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='d2', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'd2'... +🔍 DEBUG: Found 'd2' in GlobalBox +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: Statement 2 completed +🔍 DEBUG: Executing statement 3 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_statement called with node type: "Return" +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: resolve_variable: name='me', local_vars=["me"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=303 +✅ FIELD ACCESS: Returning shared reference id=340 +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Less, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 3 completed +🔍 DEBUG: Executing statement 4 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 5 completed +🔍 DEBUG: Executing statement 6 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: Statement 7 completed +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Greater, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔧 execute_binary_op: op=Less, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 4 completed +🔍 DEBUG: Executing statement 5 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 DEBUG: Statement 6 completed +🔍 DEBUG: Executing statement 7 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result2', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'result2'... +🔍 DEBUG: Found 'result2' in GlobalBox +🔍 execute_assignment called, evaluating value expression... +test integration_tests::test_multiple_instances ... ok🔍 DEBUG: resolve_variable: name='a', local_vars=[] + +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Greater, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: Statement 7 completed +🔍 DEBUG: Executing statement 8 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔧 execute_binary_op: op=Equal, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔍 DEBUG: Statement 5 completed +🔍 DEBUG: Executing statement 6 of 6: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔧 execute_binary_op: op=LessEqual, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: Statement 8 completed +🔍 DEBUG: Executing statement 9 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=NotEqual, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: Statement 6 completed +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=GreaterEqual, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: Statement 9 completed +🔍 DEBUG: resolve_variable: name='not_equal', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'not_equal'... +🔍 DEBUG: Found 'not_equal' in GlobalBox +🔍 DEBUG: Interpreter execution completed +test integration_tests::test_comparison_operators ... ok +🔍 DEBUG: resolve_variable: name='mul_result', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'mul_result'... +🔍 DEBUG: Found 'mul_result' in GlobalBox +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 9 statements +🔍 DEBUG: Executing statement 1 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 1 completed +🔍 DEBUG: Executing statement 2 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 2 completed +🔍 DEBUG: Executing statement 3 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 IntegerBox + IntegerBox detected +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 3 completed +🔍 DEBUG: Executing statement 4 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Subtract, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 4 completed +🔍 DEBUG: Executing statement 5 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Multiply, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 5 completed +🔍 DEBUG: Executing statement 6 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔧 execute_binary_op: op=Less, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 6 completed +🔍 DEBUG: Executing statement 7 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=Greater, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 7 completed +🔍 DEBUG: Executing statement 8 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔧 execute_binary_op: op=LessEqual, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 8 completed +🔍 DEBUG: Executing statement 9 of 9: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='a', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'a'... +🔍 DEBUG: Found 'a' in GlobalBox +🔍 DEBUG: resolve_variable: name='b', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'b'... +🔍 DEBUG: Found 'b' in GlobalBox +🔧 execute_binary_op: op=GreaterEqual, left=IntegerBox, right=IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 9 completed +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: resolve_variable: name='less_result', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'less_result'... +🔍 DEBUG: Found 'less_result' in GlobalBox + +thread 'integration_tests::test_all_numeric_operations' panicked at tests/integration_tests.rs:351:9: +assertion `left == right` failed + left: "false" + right: "true" +test integration_tests::test_all_numeric_operations ... FAILED + +failures: + +failures: + integration_tests::test_all_numeric_operations + integration_tests::test_boolean_logic + integration_tests::test_function_declaration_and_call + integration_tests::test_global_variables + integration_tests::test_loop_with_break + integration_tests::test_method_chaining_concept + +test result: FAILED. 10 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.77s + +error: test failed, to rerun pass `--test integration_tests` diff --git a/local_tests/test_delegation_transparent.nyash b/local_tests/test_delegation_transparent.nyash new file mode 100644 index 00000000..baec49ac --- /dev/null +++ b/local_tests/test_delegation_transparent.nyash @@ -0,0 +1,66 @@ +// 🎯 デリゲーション透過テスト + +// 通常のユーザー定義Box継承 +box Parent { + init { name, power } + + birth(parentName) { + me.name = parentName + me.power = 100 + print("👨‍👩‍👧‍👦 Parent誕生: " + me.name + " (power:" + me.power + ")") + } + + attack() { + print("💥 " + me.name + "の攻撃!ダメージ:" + me.power) + } +} + +box Child from Parent { + init { skill } + + birth(childName) { + from Parent.birth(childName) + me.skill = "必殺技" + print("🧒 Child誕生完了!スキル: " + me.skill) + } + + override attack() { + print("⚡ " + me.skill + "発動!") + from Parent.attack() + } +} + +// ビルトインBox継承(pack透過テスト) +box EnhancedString from StringBox { + init { prefix, suffix } + + birth(text) { + pack StringBox(text) // ビルトイン継承(透過的) + me.prefix = "【" + me.suffix = "】" + print("📝 EnhancedString誕生: " + me.prefix + text + me.suffix) + } + + enhanced() { + return me.prefix + me.toString() + me.suffix + "✨" + } +} + +static box Main { + init { console } + + main() { + me.console = new ConsoleBox() + me.console.log("🧪 デリゲーション透過テスト開始") + + // ユーザー定義 → ユーザー定義 + local child = new Child("太郎") + child.attack() + + // ユーザー定義 → ビルトイン(pack透過) + local enhanced = new EnhancedString("Hello") + print("結果: " + enhanced.enhanced()) + + return "全テスト完了" + } +} diff --git a/src/interpreter/statements.rs b/src/interpreter/statements.rs index ec7be086..e58cedcf 100644 --- a/src/interpreter/statements.rs +++ b/src/interpreter/statements.rs @@ -305,12 +305,16 @@ impl NyashInterpreter { } } - // 既存のフィールド値があればfini()を呼ぶ + // 既存のフィールド値があれば fini() を呼ぶ if let Some(old_field_value) = instance.get_field(field) { if let Some(old_instance) = (*old_field_value).as_any().downcast_ref::() { let _ = old_instance.fini(); finalization::mark_as_finalized(old_instance.box_id()); } + #[cfg(all(feature = "plugins", not(target_arch = "wasm32")))] + if let Some(old_plugin) = (*old_field_value).as_any().downcast_ref::() { + old_plugin.call_fini(); + } } instance.set_field(field, Arc::from(val.clone_box())) @@ -338,12 +342,16 @@ impl NyashInterpreter { }); } - // 既存のthis.field値があればfini()を呼ぶ + // 既存のthis.field値があれば fini() を呼ぶ if let Some(old_field_value) = instance.get_field(field) { if let Some(old_instance) = (*old_field_value).as_any().downcast_ref::() { let _ = old_instance.fini(); finalization::mark_as_finalized(old_instance.box_id()); } + #[cfg(all(feature = "plugins", not(target_arch = "wasm32")))] + if let Some(old_plugin) = (*old_field_value).as_any().downcast_ref::() { + old_plugin.call_fini(); + } } instance.set_field(field, Arc::from(val.clone_box())) @@ -371,12 +379,16 @@ impl NyashInterpreter { }); } - // 既存のme.field値があればfini()を呼ぶ + // 既存のme.field値があれば fini() を呼ぶ if let Some(old_field_value) = instance.get_field(field) { if let Some(old_instance) = (*old_field_value).as_any().downcast_ref::() { let _ = old_instance.fini(); finalization::mark_as_finalized(old_instance.box_id()); } + #[cfg(all(feature = "plugins", not(target_arch = "wasm32")))] + if let Some(old_plugin) = (*old_field_value).as_any().downcast_ref::() { + old_plugin.call_fini(); + } } instance.set_field(field, Arc::from(val.clone_box())) @@ -524,4 +536,4 @@ impl NyashInterpreter { } Ok(()) } -} \ No newline at end of file +} diff --git a/src/runtime/plugin_loader_v2.rs b/src/runtime/plugin_loader_v2.rs index ee40d2ef..1ddee45f 100644 --- a/src/runtime/plugin_loader_v2.rs +++ b/src/runtime/plugin_loader_v2.rs @@ -1,18 +1,22 @@ //! Nyash v2 Plugin Loader -//! -//! nyash.toml v2ベースの新しいプラグインローダー -//! Single FFI entry point (nyash_plugin_invoke) + optional init +//! +//! cfg/features で2パスを提供: +//! - enabled: plugins feature 有効 かつ 非wasm32 ターゲット +//! - stub : それ以外(WASMやplugins無効) -use crate::bid::{BidResult, BidError}; -use crate::box_trait::{NyashBox, BoxCore, BoxBase, StringBox}; -use crate::config::nyash_toml_v2::{NyashConfigV2, LibraryDefinition}; -use std::collections::HashMap; -use std::sync::{Arc, RwLock}; -use std::ffi::c_void; -use std::any::Any; +#[cfg(all(feature = "plugins", not(target_arch = "wasm32")))] +mod enabled { + use crate::bid::{BidResult, BidError}; + use crate::box_trait::{NyashBox, BoxCore, BoxBase, StringBox}; + use crate::config::nyash_toml_v2::{NyashConfigV2, LibraryDefinition}; + use std::collections::HashMap; + use std::sync::{Arc, RwLock}; + use std::ffi::c_void; + use std::any::Any; + use once_cell::sync::Lazy; /// Loaded plugin information -pub struct LoadedPluginV2 { + pub struct LoadedPluginV2 { /// Library handle _lib: Arc, @@ -28,14 +32,16 @@ pub struct LoadedPluginV2 { /// v2 Plugin Box wrapper - temporary implementation #[derive(Debug)] -pub struct PluginBoxV2 { - pub box_type: String, - pub type_id: u32, - pub invoke_fn: unsafe extern "C" fn(u32, u32, u32, *const u8, usize, *mut u8, *mut usize) -> i32, - pub instance_id: u32, -} + pub struct PluginBoxV2 { + pub box_type: String, + pub type_id: u32, + pub invoke_fn: unsafe extern "C" fn(u32, u32, u32, *const u8, usize, *mut u8, *mut usize) -> i32, + pub instance_id: u32, + /// Optional fini method_id from nyash.toml (None if not provided) + pub fini_method_id: Option, + } -impl BoxCore for PluginBoxV2 { + impl BoxCore for PluginBoxV2 { fn box_id(&self) -> u64 { self.instance_id as u64 } @@ -57,7 +63,7 @@ impl BoxCore for PluginBoxV2 { } } -impl NyashBox for PluginBoxV2 { + impl NyashBox for PluginBoxV2 { fn type_name(&self) -> &'static str { // Return the actual box type name for proper method dispatch match self.box_type.as_str() { @@ -101,6 +107,7 @@ impl NyashBox for PluginBoxV2 { type_id: self.type_id, invoke_fn: self.invoke_fn, instance_id: new_instance_id, + fini_method_id: self.fini_method_id, }) } else { eprintln!("❌ clone_box failed: birth() returned error code {}", result); @@ -126,12 +133,39 @@ impl NyashBox for PluginBoxV2 { type_id: self.type_id, invoke_fn: self.invoke_fn, instance_id: self.instance_id, // Same instance_id - this is sharing! + fini_method_id: self.fini_method_id, }) } } +impl PluginBoxV2 { + /// Call fini() on this plugin instance if configured + pub fn call_fini(&self) { + if let Some(fini_id) = self.fini_method_id { + // Empty TLV args + let tlv_args: [u8; 4] = [1, 0, 0, 0]; + let mut out: [u8; 4] = [0; 4]; + let mut out_len: usize = out.len(); + let rc = unsafe { + (self.invoke_fn)( + self.type_id, + fini_id, + self.instance_id, + tlv_args.as_ptr(), + tlv_args.len(), + out.as_mut_ptr(), + &mut out_len, + ) + }; + if rc != 0 { + eprintln!("⚠️ PluginBoxV2::fini failed for {} id={} rc={}", self.box_type, self.instance_id, rc); + } + } + } +} + /// Plugin loader v2 -pub struct PluginLoaderV2 { + pub struct PluginLoaderV2 { /// Loaded plugins (library name -> plugin info) plugins: RwLock>>, @@ -139,7 +173,7 @@ pub struct PluginLoaderV2 { pub config: Option, } -impl PluginLoaderV2 { + impl PluginLoaderV2 { /// Create new loader pub fn new() -> Self { Self { @@ -262,13 +296,14 @@ impl PluginLoaderV2 { // Get type_id from config - read actual nyash.toml content eprintln!("🔍 Reading nyash.toml for type configuration..."); - let type_id = if let Ok(toml_content) = std::fs::read_to_string("nyash.toml") { + let (type_id, fini_method_id) = if let Ok(toml_content) = std::fs::read_to_string("nyash.toml") { eprintln!("🔍 nyash.toml read successfully"); if let Ok(toml_value) = toml::from_str::(&toml_content) { eprintln!("🔍 nyash.toml parsed successfully"); if let Some(box_config) = config.get_box_config(lib_name, box_type, &toml_value) { eprintln!("🔍 Found box config for {} with type_id: {}", box_type, box_config.type_id); - box_config.type_id + let fini_id = box_config.methods.get("fini").map(|m| m.method_id); + (box_config.type_id, fini_id) } else { eprintln!("No type configuration for {} in {}", box_type, lib_name); return Err(BidError::InvalidType); @@ -327,6 +362,7 @@ impl PluginLoaderV2 { type_id, invoke_fn: plugin.invoke_fn, instance_id, + fini_method_id, }; Ok(Box::new(plugin_box)) @@ -334,25 +370,53 @@ impl PluginLoaderV2 { } // Global loader instance -use once_cell::sync::Lazy; + static GLOBAL_LOADER_V2: Lazy>> = + Lazy::new(|| Arc::new(RwLock::new(PluginLoaderV2::new()))); -static GLOBAL_LOADER_V2: Lazy>> = - Lazy::new(|| Arc::new(RwLock::new(PluginLoaderV2::new()))); + /// Get global v2 loader + pub fn get_global_loader_v2() -> Arc> { + GLOBAL_LOADER_V2.clone() + } -/// Get global v2 loader -pub fn get_global_loader_v2() -> Arc> { - GLOBAL_LOADER_V2.clone() + /// Initialize global loader with config + pub fn init_global_loader_v2(config_path: &str) -> BidResult<()> { + let loader = get_global_loader_v2(); + let mut loader = loader.write().unwrap(); + loader.load_config(config_path)?; + drop(loader); // Release write lock + + // Load all plugins + let loader = get_global_loader_v2(); + let loader = loader.read().unwrap(); + loader.load_all_plugins() + } } -/// Initialize global loader with config -pub fn init_global_loader_v2(config_path: &str) -> BidResult<()> { - let loader = get_global_loader_v2(); - let mut loader = loader.write().unwrap(); - loader.load_config(config_path)?; - drop(loader); // Release write lock - - // Load all plugins - let loader = get_global_loader_v2(); - let loader = loader.read().unwrap(); - loader.load_all_plugins() -} \ No newline at end of file +#[cfg(any(not(feature = "plugins"), target_arch = "wasm32"))] +mod stub { + use crate::bid::{BidResult, BidError}; + use crate::box_trait::NyashBox; + use once_cell::sync::Lazy; + use std::sync::{Arc, RwLock}; + + pub struct PluginLoaderV2; + impl PluginLoaderV2 { pub fn new() -> Self { Self } } + impl PluginLoaderV2 { + pub fn load_config(&mut self, _p: &str) -> BidResult<()> { Ok(()) } + pub fn load_all_plugins(&self) -> BidResult<()> { Ok(()) } + pub fn create_box(&self, _t: &str, _a: &[Box]) -> BidResult> { + Err(BidError::PluginError) + } + } + + static GLOBAL_LOADER_V2: Lazy>> = + Lazy::new(|| Arc::new(RwLock::new(PluginLoaderV2::new()))); + + pub fn get_global_loader_v2() -> Arc> { GLOBAL_LOADER_V2.clone() } + pub fn init_global_loader_v2(_config_path: &str) -> BidResult<()> { Ok(()) } +} + +#[cfg(all(feature = "plugins", not(target_arch = "wasm32")))] +pub use enabled::*; +#[cfg(any(not(feature = "plugins"), target_arch = "wasm32"))] +pub use stub::*; diff --git a/src/runtime/unified_registry.rs b/src/runtime/unified_registry.rs index e44e5403..e474885e 100644 --- a/src/runtime/unified_registry.rs +++ b/src/runtime/unified_registry.rs @@ -5,7 +5,9 @@ * Integrates all Box creation sources (builtin, user-defined, plugin) */ -use crate::box_factory::{UnifiedBoxRegistry, builtin::BuiltinBoxFactory, plugin::PluginBoxFactory}; +use crate::box_factory::{UnifiedBoxRegistry, builtin::BuiltinBoxFactory}; +#[cfg(feature = "plugins")] +use crate::box_factory::plugin::PluginBoxFactory; use std::sync::{Arc, Mutex, OnceLock}; /// Global registry instance @@ -20,7 +22,10 @@ pub fn init_global_unified_registry() { registry.register(Arc::new(BuiltinBoxFactory::new())); // Register plugin Box factory (lowest priority) - registry.register(Arc::new(PluginBoxFactory::new())); + #[cfg(feature = "plugins")] + { + registry.register(Arc::new(PluginBoxFactory::new())); + } // TODO: User-defined Box factory will be registered by interpreter @@ -46,4 +51,4 @@ pub fn register_user_defined_factory(factory: Arc src/ast.rs:885:28 + | +885 | use crate::box_trait::{StringBox, IntegerBox, BoolBox}; + | ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: unused import: `Mutex` + --> src/instance_v2.rs:387:26 + | +387 | use std::sync::{Arc, Mutex}; + | ^^^^^ + +warning: unused imports: `BasicBlockIdGenerator`, `BasicBlock`, `CompareOp`, `EffectMask`, `MirFunction`, and `ValueIdGenerator` + --> src/mir/loop_builder.rs:9:21 + | +9 | MirInstruction, BasicBlock, BasicBlockId, MirFunction, ValueId, + | ^^^^^^^^^^ ^^^^^^^^^^^ +10 | ConstValue, CompareOp, BasicBlockIdGenerator, ValueIdGenerator, EffectMask + | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused import: `HashSet` + --> src/mir/loop_builder.rs:13:33 + | +13 | use std::collections::{HashMap, HashSet}; + | ^^^^^^^ + +warning: unused import: `BasicBlock` + --> src/mir/verification.rs:311:75 + | +311 | use crate::mir::{MirFunction, FunctionSignature, MirType, EffectMask, BasicBlock}; + | ^^^^^^^^^^ + +warning: unexpected `cfg` condition value: `llvm` + --> src/backend/mod.rs:13:7 + | +13 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + = note: `#[warn(unexpected_cfgs)]` on by default + +warning: unexpected `cfg` condition value: `llvm` + --> src/backend/mod.rs:23:7 + | +23 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unused imports: `BasicBlock`, `EffectMask`, `FunctionSignature`, `MirFunction`, `MirModule`, and `MirType` + --> src/backend/vm.rs:860:22 + | +860 | use crate::mir::{MirModule, MirFunction, FunctionSignature, MirType, EffectMask, BasicBlock}; + | ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused import: `MirInstruction` + --> src/backend/vm_phi.rs:9:41 + | +9 | use crate::mir::{BasicBlockId, ValueId, MirInstruction}; + | ^^^^^^^^^^^^^^ + +warning: unused import: `super::Usize` + --> src/bid/types.rs:1:5 + | +1 | use super::Usize; + | ^^^^^^^^^^^^ + +warning: unused import: `std::os::raw::c_char` + --> src/bid/plugin_api.rs:2:5 + | +2 | use std::os::raw::c_char; + | ^^^^^^^^^^^^^^^^^^^^ + +warning: unused imports: `NyashHostVtable`, `NyashMethodInfo`, and `NyashPluginInfo` + --> src/bid/plugins/filebox/mod.rs:7:18 + | +7 | use crate::bid::{NyashPluginInfo, NyashMethodInfo, NyashHostVtable}; + | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ + +warning: unused imports: `SeekFrom` and `Seek` + --> src/bid/plugins/filebox/mod.rs:10:28 + | +10 | use std::io::{Read, Write, Seek, SeekFrom}; + | ^^^^ ^^^^^^^^ + +warning: unused imports: `c_char` and `c_void` + --> src/bid/plugins/filebox/mod.rs:11:20 + | +11 | use std::os::raw::{c_char, c_void}; + | ^^^^^^ ^^^^^^ + +warning: unused imports: `CStr` and `CString` + --> src/bid/plugins/filebox/mod.rs:13:16 + | +13 | use std::ffi::{CStr, CString}; + | ^^^^ ^^^^^^^ + +warning: unused import: `std::ffi::c_void` + --> src/bid/loader.rs:3:5 + | +3 | use std::ffi::c_void; + | ^^^^^^^^^^^^^^^^ + +warning: unused imports: `TlvDecoder` and `TlvEncoder` + --> src/bid/generic_plugin_box.rs:2:23 + | +2 | use crate::bid::tlv::{TlvEncoder, TlvDecoder}; + | ^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused import: `crate::bid::types::BidTag` + --> src/bid/generic_plugin_box.rs:3:5 + | +3 | use crate::bid::types::BidTag; + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `BoxBase` + --> src/runtime/plugin_loader_v2.rs:7:43 + | +7 | use crate::box_trait::{NyashBox, BoxCore, BoxBase, StringBox}; + | ^^^^^^^ + +warning: unused import: `std::ffi::c_void` + --> src/runtime/plugin_loader_v2.rs:11:5 + | +11 | use std::ffi::c_void; + | ^^^^^^^^^^^^^^^^ + +warning: unused imports: `BidHandle` and `BoxTypeId` + --> src/runtime/tests.rs:10:22 + | +10 | use crate::bid::{BidHandle, BoxTypeId}; + | ^^^^^^^^^ ^^^^^^^^^ + +warning: unused variable: `registry` + --> src/box_factory/plugin.rs:53:13 + | +53 | let registry = get_global_registry(); + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_registry` + | + = note: `#[warn(unused_variables)]` on by default + +warning: unused variable: `args` + --> src/instance_v2.rs:147:28 + | +147 | pub fn init(&mut self, args: &[Box]) -> Result<(), String> { + | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` + +warning: unused variable: `nyash_value` + --> src/instance_v2.rs:289:21 + | +289 | if let Some(nyash_value) = self.fields_ng.lock().unwrap().get(field_name) { + | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nyash_value` + +warning: variable does not need to be mutable + --> src/mir/basic_block.rs:314:13 + | +314 | let mut bb = BasicBlock::new(bb_id); + | ----^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: unused variable: `block_id` + --> src/mir/loop_builder.rs:246:39 + | +246 | fn mark_block_unsealed(&mut self, block_id: BasicBlockId) -> Result<(), String> { + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_id` + +warning: unused variable: `block_id` + --> src/mir/loop_builder.rs:273:49 + | +273 | fn get_variable_at_block(&self, name: &str, block_id: BasicBlockId) -> Option { + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_id` + +warning: unused variable: `child` + --> src/mir/ownership_verifier_simple.rs:313:13 + | +313 | let child = value_gen.next(); + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_child` + +warning: unused variable: `dst` + --> src/backend/vm_phi.rs:48:9 + | +48 | dst: ValueId, + | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` + +warning: unused variable: `f` + --> src/bid/plugin_api.rs:167:36 + | +167 | pub fn with_alloc(mut self, f: F) -> Self + | ^ help: if this is intentional, prefix it with an underscore: `_f` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:167:26 + | +167 | pub fn with_alloc(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `f` + --> src/bid/plugin_api.rs:176:35 + | +176 | pub fn with_free(mut self, f: F) -> Self + | ^ help: if this is intentional, prefix it with an underscore: `_f` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:176:25 + | +176 | pub fn with_free(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `f` + --> src/bid/plugin_api.rs:183:34 + | +183 | pub fn with_log(mut self, f: F) -> Self + | ^ help: if this is intentional, prefix it with an underscore: `_f` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:183:24 + | +183 | pub fn with_log(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `args` + --> src/runtime/plugin_loader_v2.rs:236:46 + | +236 | pub fn create_box(&self, box_type: &str, args: &[Box]) -> BidResult> { + | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` + +warning: variable does not need to be mutable + --> src/tests/box_tests.rs:11:13 + | +11 | let mut array = ArrayBox::new(); + | ----^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tests/box_tests.rs:90:13 + | +90 | let mut stream = NyashStreamBox::from_data(vec![72, 101, 108, 108, 111]); // "Hello" + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: type `FileMode` is more private than the item `FileBoxRegistry::open` + --> src/bid/plugins/filebox/mod.rs:44:5 + | +44 | pub fn open(&mut self, path: &str, mode: FileMode) -> Result { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `FileBoxRegistry::open` is reachable at visibility `pub` + | +note: but type `FileMode` is only usable at visibility `pub(self)` + --> src/bid/plugins/filebox/mod.rs:29:1 + | +29 | enum FileMode { + | ^^^^^^^^^^^^^ + = note: `#[warn(private_interfaces)]` on by default + +warning: field `block_var_maps` is never read + --> src/mir/loop_builder.rs:35:5 + | +27 | pub struct LoopBuilder<'a> { + | ----------- field in this struct +... +35 | block_var_maps: HashMap>, + | ^^^^^^^^^^^^^^ + | + = note: `#[warn(dead_code)]` on by default + +warning: fields `type_name_holder` and `method_holders` are never read + --> src/bid/metadata.rs:148:5 + | +143 | pub struct PluginMetadata { + | -------------- fields in this struct +... +148 | type_name_holder: Option, + | ^^^^^^^^^^^^^^^^ +149 | method_holders: Vec<(NyashMethodInfo, CString)>, + | ^^^^^^^^^^^^^^ + +warning: fields `path` and `mode` are never read + --> src/bid/plugins/filebox/mod.rs:24:5 + | +22 | struct FileBoxState { + | ------------ fields in this struct +23 | file: File, +24 | path: String, + | ^^^^ +25 | mode: FileMode, + | ^^^^ + +warning: fields `box_types` and `init_fn` are never read + --> src/runtime/plugin_loader_v2.rs:20:5 + | +15 | pub struct LoadedPluginV2 { + | -------------- fields in this struct +... +20 | box_types: Vec, + | ^^^^^^^^^ +... +23 | init_fn: Option i32>, + | ^^^^^^^ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:62:9 + | +62 | self.add_predecessor(header_id, preheader_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled + = note: `#[warn(unused_must_use)]` on by default +help: use `let _ = ...` to ignore the resulting value + | +62 | let _ = self.add_predecessor(header_id, preheader_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:66:9 + | +66 | self.mark_block_unsealed(header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +66 | let _ = self.mark_block_unsealed(header_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:78:9 + | +78 | self.add_predecessor(body_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +78 | let _ = self.add_predecessor(body_id, header_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:79:9 + | +79 | self.add_predecessor(after_loop_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +79 | let _ = self.add_predecessor(after_loop_id, header_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:93:9 + | +93 | self.add_predecessor(header_id, latch_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +93 | let _ = self.add_predecessor(header_id, latch_id); + | +++++++ + +warning: creating a shared reference to mutable static + --> src/bid/plugins/filebox/mod.rs:102:12 + | +102 | if FILEBOX_REGISTRY.is_none() { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static + | + = note: for more information, see + = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives + = note: `#[warn(static_mut_refs)]` on by default + +warning: creating a shared reference to mutable static + --> src/bid/plugins/filebox/mod.rs:105:9 + | +105 | FILEBOX_REGISTRY.as_ref().unwrap().clone() + | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static + | + = note: for more information, see + = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives + +warning: `nyash-rust` (lib test) generated 50 warnings (run `cargo fix --lib -p nyash-rust --tests` to apply 25 suggestions) + Finished `test` profile [unoptimized + debuginfo] target(s) in 1.81s + Running unittests src/lib.rs (target/debug/deps/nyash_rust-027bd4c76143e77b) + +running 1 test +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔧 execute_binary_op: op=Add, left=IntegerBox, right=IntegerBox +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 Checking StringBox downcast... +🔍 StringBox downcast FAILED! +❌ Interpreter error: Invalid operation: Addition not supported between IntegerBox and IntegerBox +🔍 DEBUG: Interpreter execution completed + +thread 'interpreter::core::tests::test_arithmetic' panicked at src/interpreter/core.rs:590:34: +called `Result::unwrap()` on an `Err` value: InvalidOperation { message: "Addition not supported between IntegerBox and IntegerBox" } +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace +test interpreter::core::tests::test_arithmetic ... FAILED + +failures: + +failures: + interpreter::core::tests::test_arithmetic + +test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 155 filtered out; finished in 0.19s + +error: test failed, to rerun pass `--lib` diff --git a/test_out2.txt b/test_out2.txt new file mode 100644 index 00000000..82d2269a --- /dev/null +++ b/test_out2.txt @@ -0,0 +1,1108 @@ +warning: unused imports: `BasicBlockIdGenerator`, `BasicBlock`, `CompareOp`, `EffectMask`, `MirFunction`, and `ValueIdGenerator` + --> src/mir/loop_builder.rs:9:21 + | +9 | MirInstruction, BasicBlock, BasicBlockId, MirFunction, ValueId, + | ^^^^^^^^^^ ^^^^^^^^^^^ +10 | ConstValue, CompareOp, BasicBlockIdGenerator, ValueIdGenerator, EffectMask + | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: unused import: `HashSet` + --> src/mir/loop_builder.rs:13:33 + | +13 | use std::collections::{HashMap, HashSet}; + | ^^^^^^^ + +warning: unexpected `cfg` condition value: `llvm` + --> src/backend/mod.rs:13:7 + | +13 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + = note: `#[warn(unexpected_cfgs)]` on by default + +warning: unexpected `cfg` condition value: `llvm` + --> src/backend/mod.rs:23:7 + | +23 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unused import: `MirInstruction` + --> src/backend/vm_phi.rs:9:41 + | +9 | use crate::mir::{BasicBlockId, ValueId, MirInstruction}; + | ^^^^^^^^^^^^^^ + +warning: unused import: `super::Usize` + --> src/bid/types.rs:1:5 + | +1 | use super::Usize; + | ^^^^^^^^^^^^ + +warning: unused import: `std::os::raw::c_char` + --> src/bid/plugin_api.rs:2:5 + | +2 | use std::os::raw::c_char; + | ^^^^^^^^^^^^^^^^^^^^ + +warning: unused imports: `NyashHostVtable`, `NyashMethodInfo`, and `NyashPluginInfo` + --> src/bid/plugins/filebox/mod.rs:7:18 + | +7 | use crate::bid::{NyashPluginInfo, NyashMethodInfo, NyashHostVtable}; + | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ + +warning: unused imports: `SeekFrom` and `Seek` + --> src/bid/plugins/filebox/mod.rs:10:28 + | +10 | use std::io::{Read, Write, Seek, SeekFrom}; + | ^^^^ ^^^^^^^^ + +warning: unused imports: `c_char` and `c_void` + --> src/bid/plugins/filebox/mod.rs:11:20 + | +11 | use std::os::raw::{c_char, c_void}; + | ^^^^^^ ^^^^^^ + +warning: unused imports: `CStr` and `CString` + --> src/bid/plugins/filebox/mod.rs:13:16 + | +13 | use std::ffi::{CStr, CString}; + | ^^^^ ^^^^^^^ + +warning: unused import: `std::ffi::c_void` + --> src/bid/loader.rs:3:5 + | +3 | use std::ffi::c_void; + | ^^^^^^^^^^^^^^^^ + +warning: unused imports: `TlvDecoder` and `TlvEncoder` + --> src/bid/generic_plugin_box.rs:2:23 + | +2 | use crate::bid::tlv::{TlvEncoder, TlvDecoder}; + | ^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused import: `crate::bid::types::BidTag` + --> src/bid/generic_plugin_box.rs:3:5 + | +3 | use crate::bid::types::BidTag; + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `BoxBase` + --> src/runtime/plugin_loader_v2.rs:7:43 + | +7 | use crate::box_trait::{NyashBox, BoxCore, BoxBase, StringBox}; + | ^^^^^^^ + +warning: unused import: `std::ffi::c_void` + --> src/runtime/plugin_loader_v2.rs:11:5 + | +11 | use std::ffi::c_void; + | ^^^^^^^^^^^^^^^^ + +warning: unused variable: `registry` + --> src/box_factory/plugin.rs:53:13 + | +53 | let registry = get_global_registry(); + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_registry` + | + = note: `#[warn(unused_variables)]` on by default + +warning: unused variable: `args` + --> src/instance_v2.rs:147:28 + | +147 | pub fn init(&mut self, args: &[Box]) -> Result<(), String> { + | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` + +warning: unused variable: `nyash_value` + --> src/instance_v2.rs:289:21 + | +289 | if let Some(nyash_value) = self.fields_ng.lock().unwrap().get(field_name) { + | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nyash_value` + +warning: unused variable: `block_id` + --> src/mir/loop_builder.rs:246:39 + | +246 | fn mark_block_unsealed(&mut self, block_id: BasicBlockId) -> Result<(), String> { + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_id` + +warning: unused variable: `block_id` + --> src/mir/loop_builder.rs:273:49 + | +273 | fn get_variable_at_block(&self, name: &str, block_id: BasicBlockId) -> Option { + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_id` + +warning: unused variable: `dst` + --> src/backend/vm_phi.rs:48:9 + | +48 | dst: ValueId, + | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` + +warning: unused variable: `f` + --> src/bid/plugin_api.rs:167:36 + | +167 | pub fn with_alloc(mut self, f: F) -> Self + | ^ help: if this is intentional, prefix it with an underscore: `_f` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:167:26 + | +167 | pub fn with_alloc(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: unused variable: `f` + --> src/bid/plugin_api.rs:176:35 + | +176 | pub fn with_free(mut self, f: F) -> Self + | ^ help: if this is intentional, prefix it with an underscore: `_f` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:176:25 + | +176 | pub fn with_free(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `f` + --> src/bid/plugin_api.rs:183:34 + | +183 | pub fn with_log(mut self, f: F) -> Self + | ^ help: if this is intentional, prefix it with an underscore: `_f` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:183:24 + | +183 | pub fn with_log(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `args` + --> src/runtime/plugin_loader_v2.rs:236:46 + | +236 | pub fn create_box(&self, box_type: &str, args: &[Box]) -> BidResult> { + | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` + +warning: type `FileMode` is more private than the item `FileBoxRegistry::open` + --> src/bid/plugins/filebox/mod.rs:44:5 + | +44 | pub fn open(&mut self, path: &str, mode: FileMode) -> Result { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `FileBoxRegistry::open` is reachable at visibility `pub` + | +note: but type `FileMode` is only usable at visibility `pub(self)` + --> src/bid/plugins/filebox/mod.rs:29:1 + | +29 | enum FileMode { + | ^^^^^^^^^^^^^ + = note: `#[warn(private_interfaces)]` on by default + +warning: field `block_var_maps` is never read + --> src/mir/loop_builder.rs:35:5 + | +27 | pub struct LoopBuilder<'a> { + | ----------- field in this struct +... +35 | block_var_maps: HashMap>, + | ^^^^^^^^^^^^^^ + | + = note: `#[warn(dead_code)]` on by default + +warning: fields `type_name_holder` and `method_holders` are never read + --> src/bid/metadata.rs:148:5 + | +143 | pub struct PluginMetadata { + | -------------- fields in this struct +... +148 | type_name_holder: Option, + | ^^^^^^^^^^^^^^^^ +149 | method_holders: Vec<(NyashMethodInfo, CString)>, + | ^^^^^^^^^^^^^^ + +warning: fields `path` and `mode` are never read + --> src/bid/plugins/filebox/mod.rs:24:5 + | +22 | struct FileBoxState { + | ------------ fields in this struct +23 | file: File, +24 | path: String, + | ^^^^ +25 | mode: FileMode, + | ^^^^ + +warning: fields `box_types` and `init_fn` are never read + --> src/runtime/plugin_loader_v2.rs:20:5 + | +15 | pub struct LoadedPluginV2 { + | -------------- fields in this struct +... +20 | box_types: Vec, + | ^^^^^^^^^ +... +23 | init_fn: Option i32>, + | ^^^^^^^ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:62:9 + | +62 | self.add_predecessor(header_id, preheader_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled + = note: `#[warn(unused_must_use)]` on by default +help: use `let _ = ...` to ignore the resulting value + | +62 | let _ = self.add_predecessor(header_id, preheader_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:66:9 + | +66 | self.mark_block_unsealed(header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +66 | let _ = self.mark_block_unsealed(header_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:78:9 + | +78 | self.add_predecessor(body_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +78 | let _ = self.add_predecessor(body_id, header_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:79:9 + | +79 | self.add_predecessor(after_loop_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +79 | let _ = self.add_predecessor(after_loop_id, header_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:93:9 + | +93 | self.add_predecessor(header_id, latch_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +93 | let _ = self.add_predecessor(header_id, latch_id); + | +++++++ + +warning: creating a shared reference to mutable static + --> src/bid/plugins/filebox/mod.rs:102:12 + | +102 | if FILEBOX_REGISTRY.is_none() { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static + | + = note: for more information, see + = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives + = note: `#[warn(static_mut_refs)]` on by default + +warning: creating a shared reference to mutable static + --> src/bid/plugins/filebox/mod.rs:105:9 + | +105 | FILEBOX_REGISTRY.as_ref().unwrap().clone() + | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static + | + = note: for more information, see + = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives + +warning: unused imports: `BoolBox`, `IntegerBox`, and `StringBox` + --> src/ast.rs:885:28 + | +885 | use crate::box_trait::{StringBox, IntegerBox, BoolBox}; + | ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: unused import: `Mutex` + --> src/instance_v2.rs:387:26 + | +387 | use std::sync::{Arc, Mutex}; + | ^^^^^ + +warning: unused imports: `BasicBlockIdGenerator`, `BasicBlock`, `CompareOp`, `EffectMask`, `MirFunction`, and `ValueIdGenerator` + --> src/mir/loop_builder.rs:9:21 + | +9 | MirInstruction, BasicBlock, BasicBlockId, MirFunction, ValueId, + | ^^^^^^^^^^ ^^^^^^^^^^^ +10 | ConstValue, CompareOp, BasicBlockIdGenerator, ValueIdGenerator, EffectMask + | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused import: `BasicBlock` + --> src/mir/verification.rs:311:75 + | +311 | use crate::mir::{MirFunction, FunctionSignature, MirType, EffectMask, BasicBlock}; + | ^^^^^^^^^^ + +warning: unused imports: `BasicBlock`, `EffectMask`, `FunctionSignature`, `MirFunction`, `MirModule`, and `MirType` + --> src/backend/vm.rs:860:22 + | +860 | use crate::mir::{MirModule, MirFunction, FunctionSignature, MirType, EffectMask, BasicBlock}; + | ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused imports: `BidHandle` and `BoxTypeId` + --> src/runtime/tests.rs:10:22 + | +10 | use crate::bid::{BidHandle, BoxTypeId}; + | ^^^^^^^^^ ^^^^^^^^^ + +warning: variable does not need to be mutable + --> src/mir/basic_block.rs:314:13 + | +314 | let mut bb = BasicBlock::new(bb_id); + | ----^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: unused variable: `child` + --> src/mir/ownership_verifier_simple.rs:313:13 + | +313 | let child = value_gen.next(); + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_child` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:167:26 + | +167 | pub fn with_alloc(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tests/box_tests.rs:11:13 + | +11 | let mut array = ArrayBox::new(); + | ----^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tests/box_tests.rs:90:13 + | +90 | let mut stream = NyashStreamBox::from_data(vec![72, 101, 108, 108, 111]); // "Hello" + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: `nyash-rust` (lib) generated 41 warnings (run `cargo fix --lib -p nyash-rust` to apply 17 suggestions) +warning: `nyash-rust` (lib test) generated 50 warnings (39 duplicates) (run `cargo fix --lib -p nyash-rust --tests` to apply 10 suggestions) +warning: struct `NyashNotepad` is never constructed + --> examples/simple_notepad_win.rs:58:8 + | +58 | struct NyashNotepad { + | ^^^^^^^^^^^^ + | + = note: `NyashNotepad` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis + = note: `#[warn(dead_code)]` on by default + +warning: associated function `new` is never used + --> examples/simple_notepad_win.rs:64:8 + | +63 | impl NyashNotepad { + | ----------------- associated function in this implementation +64 | fn new() -> Self { + | ^^^ + +warning: unused import: `std::collections::HashMap` + --> tests/integration_tests.rs:9:5 + | +9 | use std::collections::HashMap; + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: function `execute_nyash_code` is never used + --> tests/integration_tests.rs:12:4 + | +12 | fn execute_nyash_code(code: &str) -> Result { + | ^^^^^^^^^^^^^^^^^^ + | + = note: `#[warn(dead_code)]` on by default + +warning: unused import: `VMValue` + --> tests/mir_phase6_vm_ref_ops.rs:11:31 + | +11 | use nyash_rust::backend::{VM, VMValue}; + | ^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: unused import: `NyashBox` + --> tests/mir_phase6_vm_ref_ops.rs:12:41 + | +12 | use nyash_rust::box_trait::{IntegerBox, NyashBox}; + | ^^^^^^^^ + +warning: unused variable: `vm` + --> tests/mir_phase6_vm_ref_ops.rs:139:13 + | +139 | let mut vm = VM::new(); + | ^^ help: if this is intentional, prefix it with an underscore: `_vm` + | + = note: `#[warn(unused_variables)]` on by default + +warning: variable does not need to be mutable + --> tests/mir_phase6_vm_ref_ops.rs:139:9 + | +139 | let mut vm = VM::new(); + | ----^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: unexpected `cfg` condition value: `llvm` + --> src/runner.rs:22:7 + | +22 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unexpected `cfg` condition value: `llvm` + --> src/runner.rs:503:15 + | +503 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unexpected `cfg` condition value: `llvm` + --> src/runner.rs:526:19 + | +526 | #[cfg(not(feature = "llvm"))] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: variable does not need to be mutable + --> src/runner.rs:286:17 + | +286 | let mut printer = if self.config.mir_verbose { + | ----^^^^^^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: type `FileMode` is more private than the item `bid::plugins::filebox::FileBoxRegistry::open` + --> src/bid/plugins/filebox/mod.rs:44:5 + | +44 | pub fn open(&mut self, path: &str, mode: FileMode) -> Result { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `bid::plugins::filebox::FileBoxRegistry::open` is reachable at visibility `pub` + | +note: but type `FileMode` is only usable at visibility `pub(self)` + --> src/bid/plugins/filebox/mod.rs:29:1 + | +29 | enum FileMode { + | ^^^^^^^^^^^^^ + = note: `#[warn(private_interfaces)]` on by default + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:62:9 + | +62 | self.add_predecessor(header_id, preheader_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled + = note: `#[warn(unused_must_use)]` on by default +help: use `let _ = ...` to ignore the resulting value + | +62 | let _ = self.add_predecessor(header_id, preheader_id); + | +++++++ + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:66:9 + | +66 | self.mark_block_unsealed(header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +66 | let _ = self.mark_block_unsealed(header_id); + | +++++++ + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:78:9 + | +78 | self.add_predecessor(body_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +78 | let _ = self.add_predecessor(body_id, header_id); + | +++++++ + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:79:9 + | +79 | self.add_predecessor(after_loop_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +79 | let _ = self.add_predecessor(after_loop_id, header_id); + | +++++++ + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:93:9 + | +93 | self.add_predecessor(header_id, latch_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +93 | let _ = self.add_predecessor(header_id, latch_id); + | +++++++ + +warning: unexpected `cfg` condition value: `mir-v2` + --> tests/mir_phase8_5_hierarchical_25_instructions.rs:7:8 + | +7 | #![cfg(feature = "mir-v2")] + | ^^^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `mir-v2` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + = note: `#[warn(unexpected_cfgs)]` on by default + +warning: unused import: `BoxCore` + --> src/main.rs:71:32 + | +71 | use box_trait::{StringBox, BoxCore, NyashBox}; + | ^^^^^^^ + +warning: variable does not need to be mutable + --> src/runner.rs:286:17 + | +286 | let mut printer = if self.config.mir_verbose { + | ----^^^^^^^ + | | + | help: remove this `mut` + +warning: `nyash-rust` (example "simple_notepad_win") generated 2 warnings +warning: `nyash-rust` (test "integration_tests") generated 2 warnings (run `cargo fix --test "integration_tests"` to apply 1 suggestion) +warning: `nyash-rust` (test "mir_phase6_vm_ref_ops") generated 4 warnings (run `cargo fix --test "mir_phase6_vm_ref_ops"` to apply 2 suggestions) +warning: `nyash-rust` (bin "nyash") generated 45 warnings (35 duplicates) (run `cargo fix --bin "nyash"` to apply 1 suggestion) +warning: `nyash-rust` (test "mir_phase8_5_hierarchical_25_instructions") generated 1 warning +warning: `nyash-rust` (bin "nyash" test) generated 53 warnings (51 duplicates) (run `cargo fix --bin "nyash" --tests` to apply 2 suggestions) + Finished `test` profile [unoptimized + debuginfo] target(s) in 2.39s + Running unittests src/lib.rs (target/debug/deps/nyash_rust-027bd4c76143e77b) + +running 156 tests +test bid::types::tests::test_handle_packing ... ok +test box_arithmetic::tests::test_compare_box ... ok +test box_operators::tests::test_boolean_arithmetic ... ok +test box_arithmetic::tests::test_modulo_chip8_pattern ... ok +test box_arithmetic::tests::test_modulo_box ... ok +test box_arithmetic::tests::test_subtract_box ... ok +test box_arithmetic::tests::test_add_box_integers ... ok +🚀 Running benchmark: bench_light +test bid::metadata::tests::test_plugin_metadata_creation ... ok +test box_operators::tests::test_integer_addition ... ok +test bid::metadata::tests::test_host_vtable ... ok +test backend::vm::tests::test_basic_vm_execution ... ok +test bid::tlv::tests::test_encode_decode_handle ... ok +test box_factory::tests::test_registry_creation ... ok +test bid::tlv::tests::test_encode_decode_primitives ... ok +test box_arithmetic::tests::test_multiply_box ... ok +test backend::vm_phi::tests::test_phi_selection ... ok +test bid::plugin_api::tests::test_plugin_handle ... ok +test ast::tests::test_binary_operation ... ok +test ast::tests::test_ast_node_creation ... ok +test ast::tests::test_binary_operator ... ok +test ast::tests::test_method_call ... ok +test bid::types::tests::test_type_tags ... ok +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: test box_arithmetic::tests::test_add_box_strings ... okProgram + +🔍 DEBUG: Executing program with 1test box_trait::tests::test_add_box_integers ... ok statements +🔍 DEBUG: Executing statement +1 of test box_operators::tests::test_string_repetition ... ok1: +BoxDeclaration +test box_operators::tests::test_dynamic_addition ... ok +test box_operators::tests::test_string_concatenation ... ok +test backend::vm::tests::test_binary_operations ... ok +test box_arithmetic::tests::test_divide_by_zero ... ok +test box_arithmetic::tests::test_modulo_by_zero ... ok +test box_trait::tests::test_add_box_strings ... ok +test bid::types::tests::test_arg_type_mapping ... ok +test box_trait::tests::test_bool_box_creation ... ok +🔍 execute_statement called with node type: "test box_operators::tests::test_can_add_with ... okBoxDeclaration" + +test box_trait::tests::test_box_equality ... 🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'okMain' definition registered in statics namespace + +🔍 DEBUG: Statement 1Instance: StringBox + completed +Instance: MyBox +🔍 DEBUG: Starting interpreter execution... +test box_arithmetic::tests::test_divide_box ... ok🔍 DEBUG: execute_node called with node type: Program + +test box_trait::tests::test_box_ids_unique ... ok🔍 DEBUG: Executing program with 1 + statements +test box_trait::tests::test_integer_box_creation ... ok🔍 DEBUG: Executing statement 1 + of 1test box_trait::tests::test_string_box_creation ... ok: Assignment +thread 'config::nyash_toml_v2::tests::test_parse_v2_config + +' panicked at src/config/nyash_toml_v2.rstest bid::bridge::tests::test_string_box_bid_conversion ... ok🔍 execute_statement called with node type: ":179 +Assignment":62test bid::bridge::tests::test_box_registry ... ok +: +called `Result::unwrap()` on an `Err` value: TomlError { message: "invalid inline table\nexpected `}`", raw: Some("\n[libraries]\n\"libnyash_filebox_plugin.so\" = {\n boxes = [\"FileBox\"],\n path = \"./target/release/libnyash_filebox_plugin.so\"\n}\n\n[libraries.\"libnyash_filebox_plugin.so\".FileBox]\ntype_id = 6\nabi_version = 1\n\n[libraries.\"libnyash_filebox_plugin.so\".FileBox.methods]\nbirth = { method_id = 0 }\nopen = { method_id = 1 }\nclose = { method_id = 4 }\n"), keys: [], span: Some(45..46) } +🔍 About to call execute_assignment... + +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace +test box_trait::tests::test_void_box ... ok🔍 execute_assignment called, evaluating value expression... + +🔍 execute_new called for class: IntegerBoxtest bid::bridge::tests::test_integer_box_bid_conversion ... ok, with 1 + arguments +test ast::tests::test_complex_ast ... ok🔍 Trying unified registry for class: IntegerBox + +test boxes::null_box::tests::test_get_or_default ... ok🌍 statics namespace already exists - skipping creation + +🔍 DEBUG: Starting interpreter execution... +test bid::bridge::tests::test_future_box_bid_conversion ... ok🔍 DEBUG: execute_node called with node type: Program + +test boxes::null_box::tests::test_null_check ... ok🔍 DEBUG: Executing program with 2 + statements +test boxes::null_box::tests::test_null_creation ... ok🔍 DEBUG: Executing statement 1 + of 2test boxes::null_box::tests::test_null_equality ... ok: Assignment + +test cli::tests::test_default_config ... ok🔍 execute_statement called with node type: " +Assignment"test cli::tests::test_parse_debug_fuel ... ok + +🔍 About to call execute_assignment... +test environment::tests::test_error_handling ... ok🔍 execute_assignment called, evaluating value expression... + +🔍 execute_new called for class: BoolBoxtest environment::tests::test_global_environment ... ok, with 1 + arguments +test environment::tests::test_nested_scopes ... ok🔍 Trying unified registry for class: BoolBox + +test environment::tests::test_python_compat ... ok🔍 DEBUG: Starting interpreter execution... + +🔍 DEBUG: execute_node called with node type: Programtest environment::tests::test_scope_info ... ok + +🔍 DEBUG: Executing program with 2test environment::tests::test_variable_setting ... ok statements + +🔍 DEBUG: Executing statement 1test environment::tests::test_variable_shadowing ... ok of 2 +: Assignmenttest finalization::tests::test_finalization_tracking ... ok + +🔍 execute_statement called with node type: "test instance_v2::tests::test_field_operations ... okAssignment" + +test instance_v2::tests::test_from_any_box_creation ... ok🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +test instance_v2::tests::test_from_declaration_creation ... ok🔍 execute_new called for class: IntegerBox +, with 1test bid::plugins::filebox::tests::test_filebox_plugin ... ok arguments + +🔍 Trying unified registry for class: IntegerBoxtest instance_v2::tests::test_unified_approach ... ok + +🏭 Unified registry created: IntegerBoxtest mir::basic_block::tests::test_basic_block_creation ... ok + +🔍 DEBUG: Starting interpreter execution... +test mir::basic_block::tests::test_basic_block_id_generator ... ok🔍 DEBUG: execute_node called with node type: Program + +test mir::basic_block::tests::test_branch_successors ... ok🔍 DEBUG: Executing program with 4 + statements +test mir::basic_block::tests::test_instruction_addition ... ok🔍 DEBUG: Executing statement 1 + of 4test mir::basic_block::tests::test_phi_instruction_ordering ... ok: BoxDeclaration + +test mir::basic_block::tests::test_terminator_addition ... ok🔍 execute_statement called with node type: " +BoxDeclaration"test mir::basic_block::tests::test_value_tracking ... ok + +🔍 execute_new called for class: IntegerBoxtest mir::builder::tests::test_binary_op_building ... ok, with 1 + arguments +test mir::builder::tests::test_if_statement_building ... ok🔍 Trying unified registry for class: IntegerBox + +test mir::builder::tests::test_literal_building ... ok🔥 Static box 'Main +' instance registered in statics namespace +test mir::effect::tests::test_effect_combination ... ok🏭 Unified registry created: BoolBox + +test mir::effect::tests::test_effect_display ... ok🔍 execute_assignment: value expression evaluated successfully + +🔍 execute_statement called with node type: "test mir::effect::tests::test_effect_mask_creation ... okMethodCall" + +test mir::effect::tests::test_effect_names ... ok🔍 DEBUG: Statement 1 + completed +test mir::effect::tests::test_effect_union ... ok🔍 DEBUG: Executing statement 2 + of 4test mir::effect::tests::test_parallel_safety ... ok: Assignment + +test mir::function::tests::test_function_creation ... ok🔍 execute_statement called with node type: " +Assignment"test mir::function::tests::test_function_stats ... ok + +🔍 About to call execute_assignment... +test mir::function::tests::test_module_creation ... ok🔍 execute_assignment called, evaluating value expression... + +🔍 execute_new called for class: TestBoxtest mir::function::tests::test_value_id_generation ... , with 0ok + arguments +test mir::instruction::tests::test_barrier_instructions ... ok🔍 Trying unified registry for class: TestBox + +test mir::instruction::tests::test_binop_instruction ... ok🏭 Unified registry created: IntegerBox + +test mir::instruction::tests::test_call_instruction ... ok🔍 DEBUG: Interpreter execution completed + + +thread 'interpreter::core::tests::test_if_statement' panicked at src/interpreter/core.rs:608:34: +called `Result::unwrap()` on an `Err` value: UndefinedVariable { name: "x\n💡 Suggestion: Declare the variable first:\n • For fields: Add 'x' to 'init { }' block\n • For local variables: Use 'local x'\n • For field access: Use 'me.x'" } +🔍 DEBUG: resolve_variable: name='statics', local_vars=[]test mir::instruction::tests::test_const_instruction ... ok + +🔍 DEBUG: Checking GlobalBox for 'staticstest mir::instruction::tests::test_extern_call_instruction ... ok'... + +🔍 DEBUG: Found 'staticstest mir::instruction::tests::test_ref_get_instruction ... ok' in GlobalBox + +🔍 execute_assignment: value expression evaluated successfully +test mir::instruction::tests::test_ref_new_instruction ... ok🏭 Unified registry created: IntegerBox + +test mir::instruction::tests::test_ref_set_instruction ... ok✅ FIELD ACCESS: Returning shared reference id=140 + +test mir::instruction::tests::test_weak_load_instruction ... ok🔍 DEBUG: Interpreter execution completed + + +thread 'interpreter::core::tests::test_simple_execution' panicked at src/interpreter/core.rs:577:9: +assertion failed: result.is_ok() +🔍 try_add_operation: left=IntegerBoxtest mir::instruction::tests::test_weak_new_instruction ... ok, right=IntegerBox + +test config::nyash_toml_v2::tests::test_parse_v2_config ... FAILED🔍 After unwrap: left=IntegerBox +, right=IntegerBoxtest mir::instruction_v2::tests::test_effect_categories ... ok + +🔍 Checking StringBox downcast... +test mir::instruction_v2::tests::test_instruction_count ... ok🔍 StringBox downcast FAILED! + +🔍 execute_statement called with node type: "test mir::instruction_v2::tests::test_ownership_operations ... okLocal" + +test mir::ownership_verifier_simple::tests::test_basic_ref_set ... ok🏭 Unified registry created: TestBox + +test mir::ownership_verifier_simple::tests::test_ownership_forest_basic ... ok🔍 DEBUG: Interpreter execution completed + + +thread 'interpreter::core::tests::test_arithmetic' panicked at src/interpreter/core.rs:588:34: +called `Result::unwrap()` on an `Err` value: InvalidOperation { message: "Addition not supported between IntegerBox and IntegerBox" } +🔍 execute_statement called with node type: "test mir::ownership_verifier_simple::tests::test_weak_reference_tracking ... okAssignment" + +test mir::printer::tests::test_empty_module_printing ... ok🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +test mir::printer::tests::test_function_printing ... ok🔍 execute_new called for class: IntegerBox +, with 1test mir::printer::tests::test_verbose_printing ... ok arguments + +🔍 Trying unified registry for class: IntegerBoxtest mir::tests::test_basic_mir_compilation ... ok + +🔍 execute_assignment: value expression evaluated successfully +test mir::tests::test_loop_compilation ... ok🏭 Unified registry created: IntegerBox + +test mir::tests::test_mir_dump ... ok🔍 execute_assignment: value expression evaluated successfully + +🔍 execute_statement called with node type: test mir::tests::test_throw_compilation ... ok"Assignment +" +test mir::tests::test_try_catch_compilation ... ok🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +test mir::value_id::tests::test_local_id_creation ... ok🔍 execute_new called for class: IntegerBox +, with 1test mir::value_id::tests::test_local_id_generator ... ok arguments + +🔍 Trying unified registry for class: IntegerBoxtest mir::value_id::tests::test_value_id_creation ... ok + +🔍 DEBUG: Interpreter execution completed +test mir::value_id::tests::test_value_id_generator ... ok🏭 Unified registry created: IntegerBox +thread 'interpreter::core::tests::test_box_instance_creation' panicked at src/interpreter/core.rs:637:34: +called `Result::unwrap()` on an `Err` value: UndefinedVariable { name: "obj\n💡 Suggestion: Declare the variable first:\n • For fields: Add 'obj' to 'init { }' block\n • For local variables: Use 'local obj'\n • For field access: Use 'me.obj'" } + + +🔍 execute_assignment: value expression evaluated successfully +test mir::value_id::tests::test_value_id_ordering ... ok🔍 execute_statement called with node type: " +Assignment"test interpreter::core::tests::test_if_statement ... FAILED +🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: test mir::verification::tests::test_undefined_value_detection ... okIntegerBox, with +1 arguments +test mir::verification::tests::test_valid_function_verification ... ok🔍 Trying unified registry for class: IntegerBox + +test runtime::box_registry::tests::test_builtin_registration ... ok🏭 Unified registry created: IntegerBox + +🔍 execute_assignment: value expression evaluated successfully +test runtime::box_registry::tests::test_plugin_override ... ok🔍 execute_statement called with node type: " +Assignment"test runtime::plugin_config::tests::test_parse_empty_config ... ok +🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +test runtime::plugin_config::tests::test_parse_simple_config ... ok +🔍 DEBUG: resolve_variable: name='a', local_vars=["a", "b", "result", "me", "c"]test interpreter::core::tests::test_simple_execution ... FAILED +🔍 DEBUG: Found ' +a' in local_vars +test runtime::plugin_config::tests::test_parse_with_comments ... ok✅ RESOLVE_VARIABLE shared reference: a + id=190test runtime::tests::tests::test_box_registry_builtin ... ok + +🔍 DEBUG: resolve_variable: name='b', local_vars=["a", "b", "result", "me", "c"]test runtime::tests::tests::test_box_registry_plugin_override ... ok +🔍 DEBUG: Found ' +test runtime::tests::tests::test_multiple_plugin_types ... b' in local_vars +ok +✅ RESOLVE_VARIABLE shared reference: btest runtime::tests::tests::test_plugin_config_parsing ... ok id=206 +test runtime::tests::tests::test_transparent_box_switching ... +🔍 try_add_operation: left=ok +IntegerBox, right=test tests::box_tests::tests::test_array_box_nyash_trait ... okIntegerBox + +test interpreter::core::tests::test_arithmetic ... 🔍 After unwrap: left=IntegerBoxFAILED +, right=IntegerBoxtest tests::box_tests::tests::test_box_id_uniqueness ... ok +🔍 Checking StringBox downcast... + +test tests::box_tests::tests::test_buffer_box_nyash_trait ... 🔍 StringBox downcast FAILED! +ok +test tests::box_tests::tests::test_future_box_nyash_trait ... 🔍 DEBUG: Interpreter execution completed +ok +test tests::box_tests::tests::test_result_box_nyash_trait ... ok +test tokenizer::tests::test_comments ... ok +test tests::box_tests::tests::test_json_box_nyash_trait ... ok +test tokenizer::tests::test_complex_code ... ok +test tokenizer::tests::test_error_handling ... ok +test tests::box_tests::tests::test_stream_box_nyash_trait ... ok +test tokenizer::tests::test_identifier ... ok +test tokenizer::tests::test_line_numbers ... ok +test tokenizer::tests::test_number_literal ... ok +test interpreter::core::tests::test_box_instance_creation ... FAILED +88 + 🏎️ VM: First run completed +test tokenizer::tests::test_operators ... ok +88 +test tokenizer::tests::test_simple_tokens ... ok +test tokenizer::tests::test_string_literal ... ok88 +🚀 Running benchmark: bench_medium + +test value::tests::test_basic_creation ... ok +test value::tests::test_cross_type_equality ... ok +test value::tests::test_object_creation ... ok +test value::tests::test_type_conversion ... ok +test value::tests::test_type_names ... ok🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: +Program +test value::tests::test_weak_reference_basic ... ok🔍 DEBUG: Executing program with 1 + statements +🔍 DEBUG: Executing statement test value::tests::test_weak_reference_drop ... ok1 of +1: test value::tests::test_weak_reference_equality ... okBoxDeclaration + +🔍 execute_statement called with node type: "test value::tests::test_weak_reference_string_representation ... okBoxDeclaration" + +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=223 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔗 DEBUG: Variable 'sum' set to 0 - simulating object drop +🔍 DEBUG: resolve_variable: name='sum', local_vars=["me", "temp", "sum", "i"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=225 +🔗 DEBUG: Old value being dropped: void +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["me", "temp", "sum", "i"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=236 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 DEBUG: Interpreter execution completed +140 + 🏎️ VM: First run completed +140 +140 +🚀 Running benchmark: bench_heavy +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=248 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='a', local_vars=["me", "d", "a", "f", "b", "i", "j", "result5", "result3", "c", "result4", "result2", "e", "result1", "g", "h"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=269 +🔍 DEBUG: resolve_variable: name='b', local_vars=["me", "d", "a", "f", "b", "i", "j", "result5", "result3", "c", "result4", "result2", "e", "result1", "g", "h"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=273 +🔍 DEBUG: Interpreter execution completed +6301391 + 🏎️ VM: First run completed +6301391 +6301391 + +📊 Nyash Performance Benchmark Results +===================================== +Iterations per test: 3 + +🎯 bench_medium + Backend | Avg Time (ms) | Total Time (ms) | Speed Ratio + --------------|---------------|-----------------|------------ + VM | 0.531 | 1.6 | 1.00x + +🎯 bench_heavy + Backend | Avg Time (ms) | Total Time (ms) | Speed Ratio + --------------|---------------|-----------------|------------ + VM | 0.600 | 1.8 | 1.00x + +🎯 bench_light + Backend | Avg Time (ms) | Total Time (ms) | Speed Ratio + --------------|---------------|-----------------|------------ + VM | 2.180 | 6.5 | 1.00x + +💡 Performance Summary: + 📈 Average across all benchmarks: + Interpreter: NaN ms + VM: 1.10 ms (NaNx faster than interpreter) + WASM: NaN ms (NaNx faster than interpreter) +test benchmarks::tests::test_benchmark_light ... ok + +failures: + +failures: + config::nyash_toml_v2::tests::test_parse_v2_config + interpreter::core::tests::test_arithmetic + interpreter::core::tests::test_box_instance_creation + interpreter::core::tests::test_if_statement + interpreter::core::tests::test_simple_execution + +test result: FAILED. 151 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.23s + +error: test failed, to rerun pass `--lib` diff --git a/test_out3.txt b/test_out3.txt new file mode 100644 index 00000000..cccf91fd --- /dev/null +++ b/test_out3.txt @@ -0,0 +1,1104 @@ +warning: unused imports: `BasicBlockIdGenerator`, `BasicBlock`, `CompareOp`, `EffectMask`, `MirFunction`, and `ValueIdGenerator` + --> src/mir/loop_builder.rs:9:21 + | +9 | MirInstruction, BasicBlock, BasicBlockId, MirFunction, ValueId, + | ^^^^^^^^^^ ^^^^^^^^^^^ +10 | ConstValue, CompareOp, BasicBlockIdGenerator, ValueIdGenerator, EffectMask + | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: unused import: `HashSet` + --> src/mir/loop_builder.rs:13:33 + | +13 | use std::collections::{HashMap, HashSet}; + | ^^^^^^^ + +warning: unexpected `cfg` condition value: `llvm` + --> src/backend/mod.rs:13:7 + | +13 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + = note: `#[warn(unexpected_cfgs)]` on by default + +warning: unexpected `cfg` condition value: `llvm` + --> src/backend/mod.rs:23:7 + | +23 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unused import: `MirInstruction` + --> src/backend/vm_phi.rs:9:41 + | +9 | use crate::mir::{BasicBlockId, ValueId, MirInstruction}; + | ^^^^^^^^^^^^^^ + +warning: unused import: `super::Usize` + --> src/bid/types.rs:1:5 + | +1 | use super::Usize; + | ^^^^^^^^^^^^ + +warning: unused import: `std::os::raw::c_char` + --> src/bid/plugin_api.rs:2:5 + | +2 | use std::os::raw::c_char; + | ^^^^^^^^^^^^^^^^^^^^ + +warning: unused imports: `NyashHostVtable`, `NyashMethodInfo`, and `NyashPluginInfo` + --> src/bid/plugins/filebox/mod.rs:7:18 + | +7 | use crate::bid::{NyashPluginInfo, NyashMethodInfo, NyashHostVtable}; + | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ + +warning: unused imports: `SeekFrom` and `Seek` + --> src/bid/plugins/filebox/mod.rs:10:28 + | +10 | use std::io::{Read, Write, Seek, SeekFrom}; + | ^^^^ ^^^^^^^^ + +warning: unused imports: `c_char` and `c_void` + --> src/bid/plugins/filebox/mod.rs:11:20 + | +11 | use std::os::raw::{c_char, c_void}; + | ^^^^^^ ^^^^^^ + +warning: unused imports: `CStr` and `CString` + --> src/bid/plugins/filebox/mod.rs:13:16 + | +13 | use std::ffi::{CStr, CString}; + | ^^^^ ^^^^^^^ + +warning: unused import: `std::ffi::c_void` + --> src/bid/loader.rs:3:5 + | +3 | use std::ffi::c_void; + | ^^^^^^^^^^^^^^^^ + +warning: unused imports: `TlvDecoder` and `TlvEncoder` + --> src/bid/generic_plugin_box.rs:2:23 + | +2 | use crate::bid::tlv::{TlvEncoder, TlvDecoder}; + | ^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused import: `crate::bid::types::BidTag` + --> src/bid/generic_plugin_box.rs:3:5 + | +3 | use crate::bid::types::BidTag; + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `BoxBase` + --> src/runtime/plugin_loader_v2.rs:7:43 + | +7 | use crate::box_trait::{NyashBox, BoxCore, BoxBase, StringBox}; + | ^^^^^^^ + +warning: unused import: `std::ffi::c_void` + --> src/runtime/plugin_loader_v2.rs:11:5 + | +11 | use std::ffi::c_void; + | ^^^^^^^^^^^^^^^^ + +warning: unused variable: `registry` + --> src/box_factory/plugin.rs:53:13 + | +53 | let registry = get_global_registry(); + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_registry` + | + = note: `#[warn(unused_variables)]` on by default + +warning: unused variable: `args` + --> src/instance_v2.rs:147:28 + | +147 | pub fn init(&mut self, args: &[Box]) -> Result<(), String> { + | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` + +warning: unused variable: `nyash_value` + --> src/instance_v2.rs:289:21 + | +289 | if let Some(nyash_value) = self.fields_ng.lock().unwrap().get(field_name) { + | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nyash_value` + +warning: unused variable: `block_id` + --> src/mir/loop_builder.rs:246:39 + | +246 | fn mark_block_unsealed(&mut self, block_id: BasicBlockId) -> Result<(), String> { + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_id` + +warning: unused variable: `block_id` + --> src/mir/loop_builder.rs:273:49 + | +273 | fn get_variable_at_block(&self, name: &str, block_id: BasicBlockId) -> Option { + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_id` + +warning: unused variable: `dst` + --> src/backend/vm_phi.rs:48:9 + | +48 | dst: ValueId, + | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` + +warning: unused variable: `f` + --> src/bid/plugin_api.rs:167:36 + | +167 | pub fn with_alloc(mut self, f: F) -> Self + | ^ help: if this is intentional, prefix it with an underscore: `_f` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:167:26 + | +167 | pub fn with_alloc(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: unused variable: `f` + --> src/bid/plugin_api.rs:176:35 + | +176 | pub fn with_free(mut self, f: F) -> Self + | ^ help: if this is intentional, prefix it with an underscore: `_f` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:176:25 + | +176 | pub fn with_free(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `f` + --> src/bid/plugin_api.rs:183:34 + | +183 | pub fn with_log(mut self, f: F) -> Self + | ^ help: if this is intentional, prefix it with an underscore: `_f` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:183:24 + | +183 | pub fn with_log(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `args` + --> src/runtime/plugin_loader_v2.rs:236:46 + | +236 | pub fn create_box(&self, box_type: &str, args: &[Box]) -> BidResult> { + | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` + +warning: type `FileMode` is more private than the item `FileBoxRegistry::open` + --> src/bid/plugins/filebox/mod.rs:44:5 + | +44 | pub fn open(&mut self, path: &str, mode: FileMode) -> Result { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `FileBoxRegistry::open` is reachable at visibility `pub` + | +note: but type `FileMode` is only usable at visibility `pub(self)` + --> src/bid/plugins/filebox/mod.rs:29:1 + | +29 | enum FileMode { + | ^^^^^^^^^^^^^ + = note: `#[warn(private_interfaces)]` on by default + +warning: field `block_var_maps` is never read + --> src/mir/loop_builder.rs:35:5 + | +27 | pub struct LoopBuilder<'a> { + | ----------- field in this struct +... +35 | block_var_maps: HashMap>, + | ^^^^^^^^^^^^^^ + | + = note: `#[warn(dead_code)]` on by default + +warning: fields `type_name_holder` and `method_holders` are never read + --> src/bid/metadata.rs:148:5 + | +143 | pub struct PluginMetadata { + | -------------- fields in this struct +... +148 | type_name_holder: Option, + | ^^^^^^^^^^^^^^^^ +149 | method_holders: Vec<(NyashMethodInfo, CString)>, + | ^^^^^^^^^^^^^^ + +warning: fields `path` and `mode` are never read + --> src/bid/plugins/filebox/mod.rs:24:5 + | +22 | struct FileBoxState { + | ------------ fields in this struct +23 | file: File, +24 | path: String, + | ^^^^ +25 | mode: FileMode, + | ^^^^ + +warning: fields `box_types` and `init_fn` are never read + --> src/runtime/plugin_loader_v2.rs:20:5 + | +15 | pub struct LoadedPluginV2 { + | -------------- fields in this struct +... +20 | box_types: Vec, + | ^^^^^^^^^ +... +23 | init_fn: Option i32>, + | ^^^^^^^ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:62:9 + | +62 | self.add_predecessor(header_id, preheader_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled + = note: `#[warn(unused_must_use)]` on by default +help: use `let _ = ...` to ignore the resulting value + | +62 | let _ = self.add_predecessor(header_id, preheader_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:66:9 + | +66 | self.mark_block_unsealed(header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +66 | let _ = self.mark_block_unsealed(header_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:78:9 + | +78 | self.add_predecessor(body_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +78 | let _ = self.add_predecessor(body_id, header_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:79:9 + | +79 | self.add_predecessor(after_loop_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +79 | let _ = self.add_predecessor(after_loop_id, header_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:93:9 + | +93 | self.add_predecessor(header_id, latch_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +93 | let _ = self.add_predecessor(header_id, latch_id); + | +++++++ + +warning: creating a shared reference to mutable static + --> src/bid/plugins/filebox/mod.rs:102:12 + | +102 | if FILEBOX_REGISTRY.is_none() { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static + | + = note: for more information, see + = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives + = note: `#[warn(static_mut_refs)]` on by default + +warning: creating a shared reference to mutable static + --> src/bid/plugins/filebox/mod.rs:105:9 + | +105 | FILEBOX_REGISTRY.as_ref().unwrap().clone() + | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static + | + = note: for more information, see + = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives + +warning: unused imports: `BoolBox`, `IntegerBox`, and `StringBox` + --> src/ast.rs:885:28 + | +885 | use crate::box_trait::{StringBox, IntegerBox, BoolBox}; + | ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: unused import: `Mutex` + --> src/instance_v2.rs:387:26 + | +387 | use std::sync::{Arc, Mutex}; + | ^^^^^ + +warning: unused imports: `BasicBlockIdGenerator`, `BasicBlock`, `CompareOp`, `EffectMask`, `MirFunction`, and `ValueIdGenerator` + --> src/mir/loop_builder.rs:9:21 + | +9 | MirInstruction, BasicBlock, BasicBlockId, MirFunction, ValueId, + | ^^^^^^^^^^ ^^^^^^^^^^^ +10 | ConstValue, CompareOp, BasicBlockIdGenerator, ValueIdGenerator, EffectMask + | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused import: `BasicBlock` + --> src/mir/verification.rs:311:75 + | +311 | use crate::mir::{MirFunction, FunctionSignature, MirType, EffectMask, BasicBlock}; + | ^^^^^^^^^^ + +warning: unused imports: `BasicBlock`, `EffectMask`, `FunctionSignature`, `MirFunction`, `MirModule`, and `MirType` + --> src/backend/vm.rs:860:22 + | +860 | use crate::mir::{MirModule, MirFunction, FunctionSignature, MirType, EffectMask, BasicBlock}; + | ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused imports: `BidHandle` and `BoxTypeId` + --> src/runtime/tests.rs:10:22 + | +10 | use crate::bid::{BidHandle, BoxTypeId}; + | ^^^^^^^^^ ^^^^^^^^^ + +warning: variable does not need to be mutable + --> src/mir/basic_block.rs:314:13 + | +314 | let mut bb = BasicBlock::new(bb_id); + | ----^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: unused variable: `child` + --> src/mir/ownership_verifier_simple.rs:313:13 + | +313 | let child = value_gen.next(); + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_child` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:167:26 + | +167 | pub fn with_alloc(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tests/box_tests.rs:11:13 + | +11 | let mut array = ArrayBox::new(); + | ----^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tests/box_tests.rs:90:13 + | +90 | let mut stream = NyashStreamBox::from_data(vec![72, 101, 108, 108, 111]); // "Hello" + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: `nyash-rust` (lib) generated 41 warnings (run `cargo fix --lib -p nyash-rust` to apply 17 suggestions) +warning: `nyash-rust` (lib test) generated 50 warnings (39 duplicates) (run `cargo fix --lib -p nyash-rust --tests` to apply 10 suggestions) +warning: unused import: `VMValue` + --> tests/mir_phase6_vm_ref_ops.rs:11:31 + | +11 | use nyash_rust::backend::{VM, VMValue}; + | ^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: unused import: `NyashBox` + --> tests/mir_phase6_vm_ref_ops.rs:12:41 + | +12 | use nyash_rust::box_trait::{IntegerBox, NyashBox}; + | ^^^^^^^^ + +warning: unused variable: `vm` + --> tests/mir_phase6_vm_ref_ops.rs:139:13 + | +139 | let mut vm = VM::new(); + | ^^ help: if this is intentional, prefix it with an underscore: `_vm` + | + = note: `#[warn(unused_variables)]` on by default + +warning: variable does not need to be mutable + --> tests/mir_phase6_vm_ref_ops.rs:139:9 + | +139 | let mut vm = VM::new(); + | ----^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: unexpected `cfg` condition value: `mir-v2` + --> tests/mir_phase8_5_hierarchical_25_instructions.rs:7:8 + | +7 | #![cfg(feature = "mir-v2")] + | ^^^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `mir-v2` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + = note: `#[warn(unexpected_cfgs)]` on by default + +warning: unused import: `std::collections::HashMap` + --> tests/integration_tests.rs:9:5 + | +9 | use std::collections::HashMap; + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: function `execute_nyash_code` is never used + --> tests/integration_tests.rs:12:4 + | +12 | fn execute_nyash_code(code: &str) -> Result { + | ^^^^^^^^^^^^^^^^^^ + | + = note: `#[warn(dead_code)]` on by default + +warning: unexpected `cfg` condition value: `llvm` + --> src/runner.rs:22:7 + | +22 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unexpected `cfg` condition value: `llvm` + --> src/runner.rs:503:15 + | +503 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unexpected `cfg` condition value: `llvm` + --> src/runner.rs:526:19 + | +526 | #[cfg(not(feature = "llvm"))] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unused import: `BoxCore` + --> src/main.rs:71:32 + | +71 | use box_trait::{StringBox, BoxCore, NyashBox}; + | ^^^^^^^ + +warning: variable does not need to be mutable + --> src/runner.rs:286:17 + | +286 | let mut printer = if self.config.mir_verbose { + | ----^^^^^^^ + | | + | help: remove this `mut` + +warning: type `FileMode` is more private than the item `bid::plugins::filebox::FileBoxRegistry::open` + --> src/bid/plugins/filebox/mod.rs:44:5 + | +44 | pub fn open(&mut self, path: &str, mode: FileMode) -> Result { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `bid::plugins::filebox::FileBoxRegistry::open` is reachable at visibility `pub` + | +note: but type `FileMode` is only usable at visibility `pub(self)` + --> src/bid/plugins/filebox/mod.rs:29:1 + | +29 | enum FileMode { + | ^^^^^^^^^^^^^ + = note: `#[warn(private_interfaces)]` on by default + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:62:9 + | +62 | self.add_predecessor(header_id, preheader_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled + = note: `#[warn(unused_must_use)]` on by default +help: use `let _ = ...` to ignore the resulting value + | +62 | let _ = self.add_predecessor(header_id, preheader_id); + | +++++++ + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:66:9 + | +66 | self.mark_block_unsealed(header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +66 | let _ = self.mark_block_unsealed(header_id); + | +++++++ + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:78:9 + | +78 | self.add_predecessor(body_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +78 | let _ = self.add_predecessor(body_id, header_id); + | +++++++ + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:79:9 + | +79 | self.add_predecessor(after_loop_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +79 | let _ = self.add_predecessor(after_loop_id, header_id); + | +++++++ + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:93:9 + | +93 | self.add_predecessor(header_id, latch_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +93 | let _ = self.add_predecessor(header_id, latch_id); + | +++++++ + +warning: variable does not need to be mutable + --> src/runner.rs:286:17 + | +286 | let mut printer = if self.config.mir_verbose { + | ----^^^^^^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: struct `NyashNotepad` is never constructed + --> examples/simple_notepad_win.rs:58:8 + | +58 | struct NyashNotepad { + | ^^^^^^^^^^^^ + | + = note: `NyashNotepad` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis + = note: `#[warn(dead_code)]` on by default + +warning: associated function `new` is never used + --> examples/simple_notepad_win.rs:64:8 + | +63 | impl NyashNotepad { + | ----------------- associated function in this implementation +64 | fn new() -> Self { + | ^^^ + +warning: `nyash-rust` (test "mir_phase6_vm_ref_ops") generated 4 warnings (run `cargo fix --test "mir_phase6_vm_ref_ops"` to apply 2 suggestions) +warning: `nyash-rust` (test "mir_phase8_5_hierarchical_25_instructions") generated 1 warning +warning: `nyash-rust` (test "integration_tests") generated 2 warnings (run `cargo fix --test "integration_tests"` to apply 1 suggestion) +warning: `nyash-rust` (bin "nyash" test) generated 53 warnings (42 duplicates) (run `cargo fix --bin "nyash" --tests` to apply 2 suggestions) +warning: `nyash-rust` (bin "nyash") generated 45 warnings (44 duplicates) (run `cargo fix --bin "nyash"` to apply 1 suggestion) +warning: `nyash-rust` (example "simple_notepad_win") generated 2 warnings + Finished `test` profile [unoptimized + debuginfo] target(s) in 2.33s + Running unittests src/lib.rs (target/debug/deps/nyash_rust-027bd4c76143e77b) + +running 156 tests +test box_arithmetic::tests::test_compare_box ... ok +test bid::metadata::tests::test_host_vtable ... ok +test box_arithmetic::tests::test_add_box_integers ... ok +test box_operators::tests::test_boolean_arithmetic ... ok +🚀 Running benchmark: bench_light +test box_arithmetic::tests::test_subtract_box ... ok +test box_arithmetic::tests::test_modulo_box ... ok +test box_arithmetic::tests::test_modulo_chip8_pattern ... ok +test box_operators::tests::test_integer_addition ... ok +test bid::types::tests::test_handle_packing ... ok +test bid::metadata::tests::test_plugin_metadata_creation ... ok +test bid::tlv::tests::test_encode_decode_handle ... ok +test box_factory::tests::test_registry_creation ... ok +test backend::vm_phi::tests::test_phi_selection ... ok +test ast::tests::test_ast_node_creation ... ok +test bid::tlv::tests::test_encode_decode_primitives ... ok +test box_operators::tests::test_string_repetition ... ok +test ast::tests::test_method_call ... ok +test bid::plugin_api::tests::test_plugin_handle ... ok +test box_arithmetic::tests::test_add_box_strings ... ok +test box_arithmetic::tests::test_multiply_box ... ok +test box_operators::tests::test_dynamic_addition ... ok +test box_operators::tests::test_can_add_with ... ok +test backend::vm::tests::test_binary_operations ... ok +test box_operators::tests::test_string_concatenation ... ok +test box_trait::tests::test_add_box_integers ... ok +test backend::vm::tests::test_basic_vm_execution ... ok +test bid::types::tests::test_type_tags ... ok +test ast::tests::test_binary_operation ... ok +test ast::tests::test_binary_operator ... ok +test box_arithmetic::tests::test_modulo_by_zero ... ok🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: +Program +test box_arithmetic::tests::test_divide_by_zero ... ok🔍 DEBUG: Executing program with 1 + statements +🔍 DEBUG: Executing statement test box_trait::tests::test_add_box_strings ... ok1 + of 1test box_arithmetic::tests::test_divide_box ... ok: BoxDeclaration + +🔍 execute_statement called with node type: test bid::types::tests::test_arg_type_mapping ... ok"BoxDeclaration +" +test box_trait::tests::test_bool_box_creation ... 🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'okMain' definition registered in statics namespace + +🔍 DEBUG: Statement 1Instance: StringBox + completed +Instance: MyBox +🔍 DEBUG: Starting interpreter execution... +test box_trait::tests::test_box_equality ... ok🔍 DEBUG: execute_node called with node type: Program + +test ast::tests::test_complex_ast ... ok🔍 DEBUG: Executing program with 1 + statements +test box_trait::tests::test_box_ids_unique ... ok🔍 DEBUG: Executing statement 1 + of 1test box_trait::tests::test_integer_box_creation ... ok: Assignment + +test bid::bridge::tests::test_integer_box_bid_conversion ... ok🔍 execute_statement called with node type: " +Assignment"test box_trait::tests::test_string_box_creation ... ok + +🔍 About to call execute_assignment... +test bid::bridge::tests::test_box_registry ... ok🔍 execute_assignment called, evaluating value expression... + +🔍 execute_new called for class: IntegerBoxtest bid::bridge::tests::test_string_box_bid_conversion ... ok, with 1 + arguments +test box_trait::tests::test_void_box ... ok🔍 Trying unified registry for class: IntegerBox + +test bid::bridge::tests::test_future_box_bid_conversion ... ok🌍 statics namespace already exists - skipping creation + +🔍 DEBUG: Starting interpreter execution... +test boxes::null_box::tests::test_get_or_default ... ok🔍 DEBUG: execute_node called with node type: Program + +test boxes::null_box::tests::test_null_check ... ok🔍 DEBUG: Executing program with 2 + statements +test boxes::null_box::tests::test_null_creation ... ok🔍 DEBUG: Executing statement 1 + of 2test boxes::null_box::tests::test_null_equality ... ok: Assignment + +test cli::tests::test_default_config ... ok🔍 execute_statement called with node type: " +Assignment"test cli::tests::test_parse_debug_fuel ... ok + +🔍 About to call execute_assignment... +test environment::tests::test_error_handling ... ok🔍 execute_assignment called, evaluating value expression... + +🔍 execute_new called for class: BoolBoxtest environment::tests::test_global_environment ... ok, with 1 + arguments +test environment::tests::test_nested_scopes ... ok🔍 Trying unified registry for class: BoolBox + +test environment::tests::test_python_compat ... ok🔍 DEBUG: Starting interpreter execution... + +🔍 DEBUG: execute_node called with node type: Programtest environment::tests::test_scope_info ... ok + +🔍 DEBUG: Executing program with 2test environment::tests::test_variable_setting ... ok statements + +🔍 DEBUG: Executing statement 1test environment::tests::test_variable_shadowing ... ok of 2 +: Assignmenttest finalization::tests::test_finalization_tracking ... ok + +🔍 execute_statement called with node type: "test instance_v2::tests::test_field_operations ... okAssignment" + +test instance_v2::tests::test_from_any_box_creation ... ok🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +test instance_v2::tests::test_from_declaration_creation ... ok🔍 execute_new called for class: IntegerBox +, with 1test instance_v2::tests::test_unified_approach ... ok arguments + +🔍 Trying unified registry for class: IntegerBoxtest config::nyash_toml_v2::tests::test_parse_v2_config ... ok + +🔥 Static box 'Maintest bid::plugins::filebox::tests::test_filebox_plugin ... ok' instance registered in statics namespace + +🔍 DEBUG: Starting interpreter execution... +test mir::basic_block::tests::test_basic_block_creation ... ok🔍 DEBUG: execute_node called with node type: Program + +test mir::basic_block::tests::test_basic_block_id_generator ... ok🔍 DEBUG: Executing program with 4 + statements +test mir::basic_block::tests::test_branch_successors ... ok🔍 DEBUG: Executing statement 1 + of 4test mir::basic_block::tests::test_instruction_addition ... ok: +BoxDeclaration +test mir::basic_block::tests::test_phi_instruction_ordering ... ok🔍 execute_statement called with node type: " +BoxDeclaration"test mir::basic_block::tests::test_terminator_addition ... ok + +🏭 Unified registry created: IntegerBoxtest mir::basic_block::tests::test_value_tracking ... ok + +🔍 execute_statement called with node type: "test mir::builder::tests::test_binary_op_building ... okMethodCall" + +test mir::builder::tests::test_if_statement_building ... ok🔍 DEBUG: Statement 1 + completed +test mir::builder::tests::test_literal_building ... ok🔍 DEBUG: Executing statement 2 + of 4test mir::effect::tests::test_effect_combination ... ok: Assignment + +test mir::effect::tests::test_effect_display ... ok🔍 execute_statement called with node type: " +Assignment"test mir::effect::tests::test_effect_mask_creation ... ok + +🔍 About to call execute_assignment... +test mir::effect::tests::test_effect_names ... ok🔍 execute_assignment called, evaluating value expression... + +🔍 execute_new called for class: TestBoxtest mir::effect::tests::test_effect_union ... ok, with 0 + arguments +test mir::effect::tests::test_parallel_safety ... 🔍 Trying unified registry for class: TestBoxok + +test mir::function::tests::test_function_creation ... ok🔍 execute_new called for class: IntegerBox +, with 1test mir::function::tests::test_function_stats ... ok arguments + +🔍 Trying unified registry for class: IntegerBoxtest mir::function::tests::test_module_creation ... +ok +🔍 DEBUG: resolve_variable: name='statics', local_vars=[]test mir::function::tests::test_value_id_generation ... ok + +🔍 DEBUG: Checking GlobalBox for 'staticstest mir::instruction::tests::test_barrier_instructions ... ok'... + +🔍 DEBUG: Found 'staticstest mir::instruction::tests::test_binop_instruction ... ok' in GlobalBox + +🏭 Unified registry created: BoolBoxtest mir::instruction::tests::test_call_instruction ... ok + +✅ FIELD ACCESS: Returning shared reference id=143test mir::instruction::tests::test_const_instruction ... ok + +🔍 execute_assignment: value expression evaluated successfully +test mir::instruction::tests::test_extern_call_instruction ... ok🏭 Unified registry created: IntegerBox + +test mir::instruction::tests::test_ref_get_instruction ... ok🔍 execute_statement called with node type: " +Local"test mir::instruction::tests::test_ref_new_instruction ... ok + +🔍 DEBUG: Interpreter execution completed +test mir::instruction::tests::test_ref_set_instruction ... ok🔍 execute_assignment: value expression evaluated successfully + +thread 'interpreter::core::tests::test_if_statement' panicked at src/interpreter/core.rs:608:34: +called `Result::unwrap()` on an `Err` value: UndefinedVariable { name: "x\n💡 Suggestion: Declare the variable first:\n • For fields: Add 'x' to 'init { }' block\n • For local variables: Use 'local x'\n • For field access: Use 'me.x'" } +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace + +🏭 Unified registry created: TestBoxtest mir::instruction::tests::test_weak_load_instruction ... ok + +🔍 execute_statement called with node type: "test mir::instruction::tests::test_weak_new_instruction ... okAssignment" + +test mir::instruction_v2::tests::test_effect_categories ... ok🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +test mir::instruction_v2::tests::test_instruction_count ... ok🔍 execute_new called for class: IntegerBox +, with 1test mir::instruction_v2::tests::test_ownership_operations ... ok arguments + +🔍 Trying unified registry for class: IntegerBoxtest mir::ownership_verifier_simple::tests::test_basic_ref_set ... ok + +🔍 execute_assignment: value expression evaluated successfully +test mir::ownership_verifier_simple::tests::test_ownership_forest_basic ... ok🏭 Unified registry created: IntegerBox + +test mir::ownership_verifier_simple::tests::test_weak_reference_tracking ... ok🔍 DEBUG: Interpreter execution completed + + +thread 'interpreter::core::tests::test_simple_execution' panicked at src/interpreter/core.rs:577:9: +assertion failed: result.is_ok() +🔍 DEBUG: Interpreter execution completed +test mir::printer::tests::test_empty_module_printing ... ok🔍 try_add_operation: left=IntegerBox +thread 'interpreter::core::tests::test_box_instance_creation' panicked at src/interpreter/core.rs:637:34: +called `Result::unwrap()` on an `Err` value: UndefinedVariable { name: "obj\n💡 Suggestion: Declare the variable first:\n • For fields: Add 'obj' to 'init { }' block\n • For local variables: Use 'local obj'\n • For field access: Use 'me.obj'" } + +, right=IntegerBoxtest mir::printer::tests::test_function_printing ... ok + +🔍 After unwrap: left=IntegerBoxtest mir::printer::tests::test_verbose_printing ... ok, right=IntegerBox + +test mir::tests::test_basic_mir_compilation ... ok🔍 Checking StringBox downcast... + +🔍 StringBox downcast FAILED! +test mir::tests::test_loop_compilation ... ok🏭 Unified registry created: IntegerBox + +test mir::tests::test_mir_dump ... ok🔍 execute_assignment: value expression evaluated successfully + +🔍 DEBUG: Interpreter execution completed +test mir::tests::test_throw_compilation ... ok +thread 'interpreter::core::tests::test_arithmetic' panicked at src/interpreter/core.rs:588:34: +called `Result::unwrap()` on an `Err` value: InvalidOperation { message: "Addition not supported between IntegerBox and IntegerBox" } +🔍 execute_statement called with node type: " +Assignment"test mir::tests::test_try_catch_compilation ... ok +🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: test mir::value_id::tests::test_local_id_creation ... okIntegerBox, with +1 arguments +test mir::value_id::tests::test_local_id_generator ... ok🔍 Trying unified registry for class: IntegerBox + +test mir::value_id::tests::test_value_id_creation ... ok🏭 Unified registry created: IntegerBox + +🔍 execute_assignment: value expression evaluated successfully +test mir::value_id::tests::test_value_id_generator ... ok🔍 execute_statement called with node type: " +Assignment"test mir::value_id::tests::test_value_id_ordering ... ok +🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: test mir::verification::tests::test_undefined_value_detection ... okIntegerBox, with +1 arguments +test mir::verification::tests::test_valid_function_verification ... ok🔍 Trying unified registry for class: IntegerBox + +test runtime::box_registry::tests::test_builtin_registration ... ok🏭 Unified registry created: IntegerBox + +🔍 execute_assignment: value expression evaluated successfully +test runtime::box_registry::tests::test_plugin_override ... ok🔍 execute_statement called with node type: " +Assignment"test runtime::plugin_config::tests::test_parse_empty_config ... ok +🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +test runtime::plugin_config::tests::test_parse_simple_config ... ok +🔍 DEBUG: resolve_variable: name='a', local_vars=["a", "b", "c", "result", "me"]test runtime::plugin_config::tests::test_parse_with_comments ... ok +🔍 DEBUG: Found ' +a' in local_vars +test runtime::tests::tests::test_box_registry_builtin ... ok✅ RESOLVE_VARIABLE shared reference: a + id=180test runtime::tests::tests::test_box_registry_plugin_override ... ok + +🔍 DEBUG: resolve_variable: name='b', local_vars=["a", "b", "c", "result", "me"]test runtime::tests::tests::test_multiple_plugin_types ... ok +🔍 DEBUG: Found ' +b' in local_vars +test runtime::tests::tests::test_plugin_config_parsing ... ok✅ RESOLVE_VARIABLE shared reference: b +test runtime::tests::tests::test_transparent_box_switching ... id=206ok + +🔍 try_add_operation: left=test tests::box_tests::tests::test_array_box_nyash_trait ... okIntegerBox, right= +test tests::box_tests::tests::test_box_id_uniqueness ... IntegerBox +ok +🔍 After unwrap: left=IntegerBoxtest tests::box_tests::tests::test_buffer_box_nyash_trait ... ok, right=IntegerBox + +🔍 Checking StringBox downcast... +test tests::box_tests::tests::test_future_box_nyash_trait ... ok🔍 StringBox downcast FAILED! + +test tests::box_tests::tests::test_result_box_nyash_trait ... ok🔍 DEBUG: Interpreter execution completed + +test tests::box_tests::tests::test_stream_box_nyash_trait ... ok +test tokenizer::tests::test_comments ... ok +test interpreter::core::tests::test_simple_execution ... FAILED +test interpreter::core::tests::test_box_instance_creation ... FAILED +test interpreter::core::tests::test_arithmetic ... FAILED +test interpreter::core::tests::test_if_statement ... FAILED +test tests::box_tests::tests::test_json_box_nyash_trait ... ok +test tokenizer::tests::test_complex_code ... ok +test tokenizer::tests::test_error_handling ... ok +test tokenizer::tests::test_identifier ... ok +test tokenizer::tests::test_line_numbers ... ok +test tokenizer::tests::test_number_literal ... ok +88 + 🏎️ VM: First run completed +test tokenizer::tests::test_operators ... ok +88 +test tokenizer::tests::test_simple_tokens ... ok +88 +test tokenizer::tests::test_string_literal ... 🚀 Running benchmark: bench_medium +ok +test value::tests::test_basic_creation ... ok +test value::tests::test_cross_type_equality ... ok +test value::tests::test_object_creation ... ok +test value::tests::test_type_conversion ... ok +test value::tests::test_type_names ... ok🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: +Program +test value::tests::test_weak_reference_basic ... ok🔍 DEBUG: Executing program with 1 + statements +🔍 DEBUG: Executing statement test value::tests::test_weak_reference_drop ... ok1 of +1: test value::tests::test_weak_reference_equality ... okBoxDeclaration + +🔍 execute_statement called with node type: "test value::tests::test_weak_reference_string_representation ... okBoxDeclaration" + +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=223 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔗 DEBUG: Variable 'sum' set to 0 - simulating object drop +🔍 DEBUG: resolve_variable: name='sum', local_vars=["temp", "i", "sum", "me"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=225 +🔗 DEBUG: Old value being dropped: void +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["temp", "i", "sum", "me"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=236 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 DEBUG: Interpreter execution completed +140 + 🏎️ VM: First run completed +140 +140 +🚀 Running benchmark: bench_heavy +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=248 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='a', local_vars=["c", "b", "d", "result1", "me", "result2", "result5", "h", "g", "result4", "a", "j", "i", "f", "result3", "e"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=269 +🔍 DEBUG: resolve_variable: name='b', local_vars=["c", "b", "d", "result1", "me", "result2", "result5", "h", "g", "result4", "a", "j", "i", "f", "result3", "e"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=273 +🔍 DEBUG: Interpreter execution completed +6301391 + 🏎️ VM: First run completed +6301391 +6301391 + +📊 Nyash Performance Benchmark Results +===================================== +Iterations per test: 3 + +🎯 bench_light + Backend | Avg Time (ms) | Total Time (ms) | Speed Ratio + --------------|---------------|-----------------|------------ + VM | 2.013 | 6.0 | 1.00x + +🎯 bench_medium + Backend | Avg Time (ms) | Total Time (ms) | Speed Ratio + --------------|---------------|-----------------|------------ + VM | 0.640 | 1.9 | 1.00x + +🎯 bench_heavy + Backend | Avg Time (ms) | Total Time (ms) | Speed Ratio + --------------|---------------|-----------------|------------ + VM | 0.550 | 1.6 | 1.00x + +💡 Performance Summary: + 📈 Average across all benchmarks: + Interpreter: NaN ms + VM: 1.07 ms (NaNx faster than interpreter) + WASM: NaN ms (NaNx faster than interpreter) +test benchmarks::tests::test_benchmark_light ... ok + +failures: + +failures: + interpreter::core::tests::test_arithmetic + interpreter::core::tests::test_box_instance_creation + interpreter::core::tests::test_if_statement + interpreter::core::tests::test_simple_execution + +test result: FAILED. 152 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.20s + +error: test failed, to rerun pass `--lib` diff --git a/test_out4.txt b/test_out4.txt new file mode 100644 index 00000000..fe08cd57 --- /dev/null +++ b/test_out4.txt @@ -0,0 +1,405 @@ + Compiling nyash-rust v0.1.0 (/mnt/c/git/nyash-project/nyash) +warning: unused imports: `BoolBox`, `IntegerBox`, and `StringBox` + --> src/ast.rs:885:28 + | +885 | use crate::box_trait::{StringBox, IntegerBox, BoolBox}; + | ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: unused import: `Mutex` + --> src/instance_v2.rs:387:26 + | +387 | use std::sync::{Arc, Mutex}; + | ^^^^^ + +warning: unused imports: `BasicBlockIdGenerator`, `BasicBlock`, `CompareOp`, `EffectMask`, `MirFunction`, and `ValueIdGenerator` + --> src/mir/loop_builder.rs:9:21 + | +9 | MirInstruction, BasicBlock, BasicBlockId, MirFunction, ValueId, + | ^^^^^^^^^^ ^^^^^^^^^^^ +10 | ConstValue, CompareOp, BasicBlockIdGenerator, ValueIdGenerator, EffectMask + | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused import: `HashSet` + --> src/mir/loop_builder.rs:13:33 + | +13 | use std::collections::{HashMap, HashSet}; + | ^^^^^^^ + +warning: unused import: `BasicBlock` + --> src/mir/verification.rs:311:75 + | +311 | use crate::mir::{MirFunction, FunctionSignature, MirType, EffectMask, BasicBlock}; + | ^^^^^^^^^^ + +warning: unexpected `cfg` condition value: `llvm` + --> src/backend/mod.rs:13:7 + | +13 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + = note: `#[warn(unexpected_cfgs)]` on by default + +warning: unexpected `cfg` condition value: `llvm` + --> src/backend/mod.rs:23:7 + | +23 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unused imports: `BasicBlock`, `EffectMask`, `FunctionSignature`, `MirFunction`, `MirModule`, and `MirType` + --> src/backend/vm.rs:860:22 + | +860 | use crate::mir::{MirModule, MirFunction, FunctionSignature, MirType, EffectMask, BasicBlock}; + | ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused import: `MirInstruction` + --> src/backend/vm_phi.rs:9:41 + | +9 | use crate::mir::{BasicBlockId, ValueId, MirInstruction}; + | ^^^^^^^^^^^^^^ + +warning: unused import: `super::Usize` + --> src/bid/types.rs:1:5 + | +1 | use super::Usize; + | ^^^^^^^^^^^^ + +warning: unused import: `std::os::raw::c_char` + --> src/bid/plugin_api.rs:2:5 + | +2 | use std::os::raw::c_char; + | ^^^^^^^^^^^^^^^^^^^^ + +warning: unused imports: `NyashHostVtable`, `NyashMethodInfo`, and `NyashPluginInfo` + --> src/bid/plugins/filebox/mod.rs:7:18 + | +7 | use crate::bid::{NyashPluginInfo, NyashMethodInfo, NyashHostVtable}; + | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ + +warning: unused imports: `SeekFrom` and `Seek` + --> src/bid/plugins/filebox/mod.rs:10:28 + | +10 | use std::io::{Read, Write, Seek, SeekFrom}; + | ^^^^ ^^^^^^^^ + +warning: unused imports: `c_char` and `c_void` + --> src/bid/plugins/filebox/mod.rs:11:20 + | +11 | use std::os::raw::{c_char, c_void}; + | ^^^^^^ ^^^^^^ + +warning: unused imports: `CStr` and `CString` + --> src/bid/plugins/filebox/mod.rs:13:16 + | +13 | use std::ffi::{CStr, CString}; + | ^^^^ ^^^^^^^ + +warning: unused import: `std::ffi::c_void` + --> src/bid/loader.rs:3:5 + | +3 | use std::ffi::c_void; + | ^^^^^^^^^^^^^^^^ + +warning: unused imports: `TlvDecoder` and `TlvEncoder` + --> src/bid/generic_plugin_box.rs:2:23 + | +2 | use crate::bid::tlv::{TlvEncoder, TlvDecoder}; + | ^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused import: `crate::bid::types::BidTag` + --> src/bid/generic_plugin_box.rs:3:5 + | +3 | use crate::bid::types::BidTag; + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `BoxBase` + --> src/runtime/plugin_loader_v2.rs:7:43 + | +7 | use crate::box_trait::{NyashBox, BoxCore, BoxBase, StringBox}; + | ^^^^^^^ + +warning: unused import: `std::ffi::c_void` + --> src/runtime/plugin_loader_v2.rs:11:5 + | +11 | use std::ffi::c_void; + | ^^^^^^^^^^^^^^^^ + +warning: unused imports: `BidHandle` and `BoxTypeId` + --> src/runtime/tests.rs:10:22 + | +10 | use crate::bid::{BidHandle, BoxTypeId}; + | ^^^^^^^^^ ^^^^^^^^^ + +warning: unused variable: `registry` + --> src/box_factory/plugin.rs:53:13 + | +53 | let registry = get_global_registry(); + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_registry` + | + = note: `#[warn(unused_variables)]` on by default + +warning: unused variable: `args` + --> src/instance_v2.rs:147:28 + | +147 | pub fn init(&mut self, args: &[Box]) -> Result<(), String> { + | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` + +warning: unused variable: `nyash_value` + --> src/instance_v2.rs:289:21 + | +289 | if let Some(nyash_value) = self.fields_ng.lock().unwrap().get(field_name) { + | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nyash_value` + +warning: variable does not need to be mutable + --> src/mir/basic_block.rs:314:13 + | +314 | let mut bb = BasicBlock::new(bb_id); + | ----^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: unused variable: `block_id` + --> src/mir/loop_builder.rs:246:39 + | +246 | fn mark_block_unsealed(&mut self, block_id: BasicBlockId) -> Result<(), String> { + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_id` + +warning: unused variable: `block_id` + --> src/mir/loop_builder.rs:273:49 + | +273 | fn get_variable_at_block(&self, name: &str, block_id: BasicBlockId) -> Option { + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_id` + +warning: unused variable: `child` + --> src/mir/ownership_verifier_simple.rs:313:13 + | +313 | let child = value_gen.next(); + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_child` + +warning: unused variable: `dst` + --> src/backend/vm_phi.rs:48:9 + | +48 | dst: ValueId, + | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` + +warning: unused variable: `f` + --> src/bid/plugin_api.rs:167:36 + | +167 | pub fn with_alloc(mut self, f: F) -> Self + | ^ help: if this is intentional, prefix it with an underscore: `_f` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:167:26 + | +167 | pub fn with_alloc(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `f` + --> src/bid/plugin_api.rs:176:35 + | +176 | pub fn with_free(mut self, f: F) -> Self + | ^ help: if this is intentional, prefix it with an underscore: `_f` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:176:25 + | +176 | pub fn with_free(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `f` + --> src/bid/plugin_api.rs:183:34 + | +183 | pub fn with_log(mut self, f: F) -> Self + | ^ help: if this is intentional, prefix it with an underscore: `_f` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:183:24 + | +183 | pub fn with_log(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `args` + --> src/runtime/plugin_loader_v2.rs:236:46 + | +236 | pub fn create_box(&self, box_type: &str, args: &[Box]) -> BidResult> { + | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` + +warning: variable does not need to be mutable + --> src/tests/box_tests.rs:11:13 + | +11 | let mut array = ArrayBox::new(); + | ----^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tests/box_tests.rs:90:13 + | +90 | let mut stream = NyashStreamBox::from_data(vec![72, 101, 108, 108, 111]); // "Hello" + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: type `FileMode` is more private than the item `FileBoxRegistry::open` + --> src/bid/plugins/filebox/mod.rs:44:5 + | +44 | pub fn open(&mut self, path: &str, mode: FileMode) -> Result { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `FileBoxRegistry::open` is reachable at visibility `pub` + | +note: but type `FileMode` is only usable at visibility `pub(self)` + --> src/bid/plugins/filebox/mod.rs:29:1 + | +29 | enum FileMode { + | ^^^^^^^^^^^^^ + = note: `#[warn(private_interfaces)]` on by default + +warning: field `block_var_maps` is never read + --> src/mir/loop_builder.rs:35:5 + | +27 | pub struct LoopBuilder<'a> { + | ----------- field in this struct +... +35 | block_var_maps: HashMap>, + | ^^^^^^^^^^^^^^ + | + = note: `#[warn(dead_code)]` on by default + +warning: fields `type_name_holder` and `method_holders` are never read + --> src/bid/metadata.rs:148:5 + | +143 | pub struct PluginMetadata { + | -------------- fields in this struct +... +148 | type_name_holder: Option, + | ^^^^^^^^^^^^^^^^ +149 | method_holders: Vec<(NyashMethodInfo, CString)>, + | ^^^^^^^^^^^^^^ + +warning: fields `path` and `mode` are never read + --> src/bid/plugins/filebox/mod.rs:24:5 + | +22 | struct FileBoxState { + | ------------ fields in this struct +23 | file: File, +24 | path: String, + | ^^^^ +25 | mode: FileMode, + | ^^^^ + +warning: fields `box_types` and `init_fn` are never read + --> src/runtime/plugin_loader_v2.rs:20:5 + | +15 | pub struct LoadedPluginV2 { + | -------------- fields in this struct +... +20 | box_types: Vec, + | ^^^^^^^^^ +... +23 | init_fn: Option i32>, + | ^^^^^^^ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:62:9 + | +62 | self.add_predecessor(header_id, preheader_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled + = note: `#[warn(unused_must_use)]` on by default +help: use `let _ = ...` to ignore the resulting value + | +62 | let _ = self.add_predecessor(header_id, preheader_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:66:9 + | +66 | self.mark_block_unsealed(header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +66 | let _ = self.mark_block_unsealed(header_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:78:9 + | +78 | self.add_predecessor(body_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +78 | let _ = self.add_predecessor(body_id, header_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:79:9 + | +79 | self.add_predecessor(after_loop_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +79 | let _ = self.add_predecessor(after_loop_id, header_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:93:9 + | +93 | self.add_predecessor(header_id, latch_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +93 | let _ = self.add_predecessor(header_id, latch_id); + | +++++++ + +warning: creating a shared reference to mutable static + --> src/bid/plugins/filebox/mod.rs:102:12 + | +102 | if FILEBOX_REGISTRY.is_none() { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static + | + = note: for more information, see + = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives + = note: `#[warn(static_mut_refs)]` on by default + +warning: creating a shared reference to mutable static + --> src/bid/plugins/filebox/mod.rs:105:9 + | +105 | FILEBOX_REGISTRY.as_ref().unwrap().clone() + | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static + | + = note: for more information, see + = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives + +error: could not compile `nyash-rust` (lib) + +Caused by: + could not execute process `/home/tomoaki/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name nyash_rust --edition=2021 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type cdylib --crate-type rlib --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="cli"' --cfg 'feature="default"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("all-examples", "cli", "default", "dynamic-file", "gui", "gui-examples", "wasm-backend"))' -C metadata=024e0bfefa24aea7 --out-dir /mnt/c/git/nyash-project/nyash/target/debug/deps -C incremental=/mnt/c/git/nyash-project/nyash/target/debug/incremental -L dependency=/mnt/c/git/nyash-project/nyash/target/debug/deps --extern anyhow=/mnt/c/git/nyash-project/nyash/target/debug/deps/libanyhow-cb0106135621df54.rlib --extern chrono=/mnt/c/git/nyash-project/nyash/target/debug/deps/libchrono-0d332b6d25ba4f26.rlib --extern clap=/mnt/c/git/nyash-project/nyash/target/debug/deps/libclap-402745ede5642e57.rlib --extern console_error_panic_hook=/mnt/c/git/nyash-project/nyash/target/debug/deps/libconsole_error_panic_hook-8d542a370ca115ea.rlib --extern env_logger=/mnt/c/git/nyash-project/nyash/target/debug/deps/libenv_logger-b5822987cce07060.rlib --extern js_sys=/mnt/c/git/nyash-project/nyash/target/debug/deps/libjs_sys-9f8e174f128030e3.rlib --extern lazy_static=/mnt/c/git/nyash-project/nyash/target/debug/deps/liblazy_static-a60c6f0d6f5b0a48.rlib --extern libloading=/mnt/c/git/nyash-project/nyash/target/debug/deps/liblibloading-212293e6e9433adc.rlib --extern log=/mnt/c/git/nyash-project/nyash/target/debug/deps/liblog-97254b5c9fae48ec.rlib --extern once_cell=/mnt/c/git/nyash-project/nyash/target/debug/deps/libonce_cell-140027e2059e248c.rlib --extern regex=/mnt/c/git/nyash-project/nyash/target/debug/deps/libregex-593e58218ee7d01e.rlib --extern serde=/mnt/c/git/nyash-project/nyash/target/debug/deps/libserde-fe05dc3dd0f4c02d.rlib --extern serde_json=/mnt/c/git/nyash-project/nyash/target/debug/deps/libserde_json-4c960d663cd516d2.rlib --extern thiserror=/mnt/c/git/nyash-project/nyash/target/debug/deps/libthiserror-4e3b67f662716893.rlib --extern toml=/mnt/c/git/nyash-project/nyash/target/debug/deps/libtoml-5883ff1c2c8abaf1.rlib --extern wasm_bindgen=/mnt/c/git/nyash-project/nyash/target/debug/deps/libwasm_bindgen-79650e8bccd47590.rlib --extern web_sys=/mnt/c/git/nyash-project/nyash/target/debug/deps/libweb_sys-a459292f085ab080.rlib` (never executed) + +Caused by: + Operation not permitted (os error 1) +warning: build failed, waiting for other jobs to finish... +warning: `nyash-rust` (lib test) generated 50 warnings (run `cargo fix --lib -p nyash-rust --tests` to apply 25 suggestions) diff --git a/test_out5.txt b/test_out5.txt new file mode 100644 index 00000000..cb9682dd --- /dev/null +++ b/test_out5.txt @@ -0,0 +1,1155 @@ +warning: unused imports: `BasicBlockIdGenerator`, `BasicBlock`, `CompareOp`, `EffectMask`, `MirFunction`, and `ValueIdGenerator` + --> src/mir/loop_builder.rs:9:21 + | +9 | MirInstruction, BasicBlock, BasicBlockId, MirFunction, ValueId, + | ^^^^^^^^^^ ^^^^^^^^^^^ +10 | ConstValue, CompareOp, BasicBlockIdGenerator, ValueIdGenerator, EffectMask + | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: unused import: `HashSet` + --> src/mir/loop_builder.rs:13:33 + | +13 | use std::collections::{HashMap, HashSet}; + | ^^^^^^^ + +warning: unexpected `cfg` condition value: `llvm` + --> src/backend/mod.rs:13:7 + | +13 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + = note: `#[warn(unexpected_cfgs)]` on by default + +warning: unexpected `cfg` condition value: `llvm` + --> src/backend/mod.rs:23:7 + | +23 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unused import: `MirInstruction` + --> src/backend/vm_phi.rs:9:41 + | +9 | use crate::mir::{BasicBlockId, ValueId, MirInstruction}; + | ^^^^^^^^^^^^^^ + +warning: unused import: `super::Usize` + --> src/bid/types.rs:1:5 + | +1 | use super::Usize; + | ^^^^^^^^^^^^ + +warning: unused import: `std::os::raw::c_char` + --> src/bid/plugin_api.rs:2:5 + | +2 | use std::os::raw::c_char; + | ^^^^^^^^^^^^^^^^^^^^ + +warning: unused imports: `NyashHostVtable`, `NyashMethodInfo`, and `NyashPluginInfo` + --> src/bid/plugins/filebox/mod.rs:7:18 + | +7 | use crate::bid::{NyashPluginInfo, NyashMethodInfo, NyashHostVtable}; + | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ + +warning: unused imports: `SeekFrom` and `Seek` + --> src/bid/plugins/filebox/mod.rs:10:28 + | +10 | use std::io::{Read, Write, Seek, SeekFrom}; + | ^^^^ ^^^^^^^^ + +warning: unused imports: `c_char` and `c_void` + --> src/bid/plugins/filebox/mod.rs:11:20 + | +11 | use std::os::raw::{c_char, c_void}; + | ^^^^^^ ^^^^^^ + +warning: unused imports: `CStr` and `CString` + --> src/bid/plugins/filebox/mod.rs:13:16 + | +13 | use std::ffi::{CStr, CString}; + | ^^^^ ^^^^^^^ + +warning: unused import: `std::ffi::c_void` + --> src/bid/loader.rs:3:5 + | +3 | use std::ffi::c_void; + | ^^^^^^^^^^^^^^^^ + +warning: unused imports: `TlvDecoder` and `TlvEncoder` + --> src/bid/generic_plugin_box.rs:2:23 + | +2 | use crate::bid::tlv::{TlvEncoder, TlvDecoder}; + | ^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused import: `crate::bid::types::BidTag` + --> src/bid/generic_plugin_box.rs:3:5 + | +3 | use crate::bid::types::BidTag; + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `BoxBase` + --> src/runtime/plugin_loader_v2.rs:7:43 + | +7 | use crate::box_trait::{NyashBox, BoxCore, BoxBase, StringBox}; + | ^^^^^^^ + +warning: unused import: `std::ffi::c_void` + --> src/runtime/plugin_loader_v2.rs:11:5 + | +11 | use std::ffi::c_void; + | ^^^^^^^^^^^^^^^^ + +warning: unused variable: `registry` + --> src/box_factory/plugin.rs:53:13 + | +53 | let registry = get_global_registry(); + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_registry` + | + = note: `#[warn(unused_variables)]` on by default + +warning: unused variable: `args` + --> src/instance_v2.rs:147:28 + | +147 | pub fn init(&mut self, args: &[Box]) -> Result<(), String> { + | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` + +warning: unused variable: `nyash_value` + --> src/instance_v2.rs:289:21 + | +289 | if let Some(nyash_value) = self.fields_ng.lock().unwrap().get(field_name) { + | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nyash_value` + +warning: unused variable: `block_id` + --> src/mir/loop_builder.rs:246:39 + | +246 | fn mark_block_unsealed(&mut self, block_id: BasicBlockId) -> Result<(), String> { + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_id` + +warning: unused variable: `block_id` + --> src/mir/loop_builder.rs:273:49 + | +273 | fn get_variable_at_block(&self, name: &str, block_id: BasicBlockId) -> Option { + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_id` + +warning: unused variable: `dst` + --> src/backend/vm_phi.rs:48:9 + | +48 | dst: ValueId, + | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` + +warning: unused variable: `f` + --> src/bid/plugin_api.rs:167:36 + | +167 | pub fn with_alloc(mut self, f: F) -> Self + | ^ help: if this is intentional, prefix it with an underscore: `_f` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:167:26 + | +167 | pub fn with_alloc(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: unused variable: `f` + --> src/bid/plugin_api.rs:176:35 + | +176 | pub fn with_free(mut self, f: F) -> Self + | ^ help: if this is intentional, prefix it with an underscore: `_f` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:176:25 + | +176 | pub fn with_free(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `f` + --> src/bid/plugin_api.rs:183:34 + | +183 | pub fn with_log(mut self, f: F) -> Self + | ^ help: if this is intentional, prefix it with an underscore: `_f` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:183:24 + | +183 | pub fn with_log(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `args` + --> src/runtime/plugin_loader_v2.rs:236:46 + | +236 | pub fn create_box(&self, box_type: &str, args: &[Box]) -> BidResult> { + | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` + +warning: type `FileMode` is more private than the item `FileBoxRegistry::open` + --> src/bid/plugins/filebox/mod.rs:44:5 + | +44 | pub fn open(&mut self, path: &str, mode: FileMode) -> Result { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `FileBoxRegistry::open` is reachable at visibility `pub` + | +note: but type `FileMode` is only usable at visibility `pub(self)` + --> src/bid/plugins/filebox/mod.rs:29:1 + | +29 | enum FileMode { + | ^^^^^^^^^^^^^ + = note: `#[warn(private_interfaces)]` on by default + +warning: field `block_var_maps` is never read + --> src/mir/loop_builder.rs:35:5 + | +27 | pub struct LoopBuilder<'a> { + | ----------- field in this struct +... +35 | block_var_maps: HashMap>, + | ^^^^^^^^^^^^^^ + | + = note: `#[warn(dead_code)]` on by default + +warning: fields `type_name_holder` and `method_holders` are never read + --> src/bid/metadata.rs:148:5 + | +143 | pub struct PluginMetadata { + | -------------- fields in this struct +... +148 | type_name_holder: Option, + | ^^^^^^^^^^^^^^^^ +149 | method_holders: Vec<(NyashMethodInfo, CString)>, + | ^^^^^^^^^^^^^^ + +warning: fields `path` and `mode` are never read + --> src/bid/plugins/filebox/mod.rs:24:5 + | +22 | struct FileBoxState { + | ------------ fields in this struct +23 | file: File, +24 | path: String, + | ^^^^ +25 | mode: FileMode, + | ^^^^ + +warning: fields `box_types` and `init_fn` are never read + --> src/runtime/plugin_loader_v2.rs:20:5 + | +15 | pub struct LoadedPluginV2 { + | -------------- fields in this struct +... +20 | box_types: Vec, + | ^^^^^^^^^ +... +23 | init_fn: Option i32>, + | ^^^^^^^ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:62:9 + | +62 | self.add_predecessor(header_id, preheader_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled + = note: `#[warn(unused_must_use)]` on by default +help: use `let _ = ...` to ignore the resulting value + | +62 | let _ = self.add_predecessor(header_id, preheader_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:66:9 + | +66 | self.mark_block_unsealed(header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +66 | let _ = self.mark_block_unsealed(header_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:78:9 + | +78 | self.add_predecessor(body_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +78 | let _ = self.add_predecessor(body_id, header_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:79:9 + | +79 | self.add_predecessor(after_loop_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +79 | let _ = self.add_predecessor(after_loop_id, header_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:93:9 + | +93 | self.add_predecessor(header_id, latch_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +93 | let _ = self.add_predecessor(header_id, latch_id); + | +++++++ + +warning: creating a shared reference to mutable static + --> src/bid/plugins/filebox/mod.rs:102:12 + | +102 | if FILEBOX_REGISTRY.is_none() { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static + | + = note: for more information, see + = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives + = note: `#[warn(static_mut_refs)]` on by default + +warning: creating a shared reference to mutable static + --> src/bid/plugins/filebox/mod.rs:105:9 + | +105 | FILEBOX_REGISTRY.as_ref().unwrap().clone() + | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static + | + = note: for more information, see + = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives + +warning: unused imports: `BoolBox`, `IntegerBox`, and `StringBox` + --> src/ast.rs:885:28 + | +885 | use crate::box_trait::{StringBox, IntegerBox, BoolBox}; + | ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: unused import: `Mutex` + --> src/instance_v2.rs:387:26 + | +387 | use std::sync::{Arc, Mutex}; + | ^^^^^ + +warning: unused imports: `BasicBlockIdGenerator`, `BasicBlock`, `CompareOp`, `EffectMask`, `MirFunction`, and `ValueIdGenerator` + --> src/mir/loop_builder.rs:9:21 + | +9 | MirInstruction, BasicBlock, BasicBlockId, MirFunction, ValueId, + | ^^^^^^^^^^ ^^^^^^^^^^^ +10 | ConstValue, CompareOp, BasicBlockIdGenerator, ValueIdGenerator, EffectMask + | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused import: `BasicBlock` + --> src/mir/verification.rs:311:75 + | +311 | use crate::mir::{MirFunction, FunctionSignature, MirType, EffectMask, BasicBlock}; + | ^^^^^^^^^^ + +warning: unused imports: `BasicBlock`, `EffectMask`, `FunctionSignature`, `MirFunction`, `MirModule`, and `MirType` + --> src/backend/vm.rs:860:22 + | +860 | use crate::mir::{MirModule, MirFunction, FunctionSignature, MirType, EffectMask, BasicBlock}; + | ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused imports: `BidHandle` and `BoxTypeId` + --> src/runtime/tests.rs:10:22 + | +10 | use crate::bid::{BidHandle, BoxTypeId}; + | ^^^^^^^^^ ^^^^^^^^^ + +warning: variable does not need to be mutable + --> src/mir/basic_block.rs:314:13 + | +314 | let mut bb = BasicBlock::new(bb_id); + | ----^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: unused variable: `child` + --> src/mir/ownership_verifier_simple.rs:313:13 + | +313 | let child = value_gen.next(); + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_child` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:167:26 + | +167 | pub fn with_alloc(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tests/box_tests.rs:11:13 + | +11 | let mut array = ArrayBox::new(); + | ----^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tests/box_tests.rs:90:13 + | +90 | let mut stream = NyashStreamBox::from_data(vec![72, 101, 108, 108, 111]); // "Hello" + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: `nyash-rust` (lib) generated 41 warnings (run `cargo fix --lib -p nyash-rust` to apply 17 suggestions) +warning: `nyash-rust` (lib test) generated 50 warnings (39 duplicates) (run `cargo fix --lib -p nyash-rust --tests` to apply 10 suggestions) +warning: unexpected `cfg` condition value: `llvm` + --> src/runner.rs:22:7 + | +22 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unexpected `cfg` condition value: `llvm` + --> src/runner.rs:503:15 + | +503 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unexpected `cfg` condition value: `llvm` + --> src/runner.rs:526:19 + | +526 | #[cfg(not(feature = "llvm"))] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: variable does not need to be mutable + --> src/runner.rs:286:17 + | +286 | let mut printer = if self.config.mir_verbose { + | ----^^^^^^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: type `FileMode` is more private than the item `bid::plugins::filebox::FileBoxRegistry::open` + --> src/bid/plugins/filebox/mod.rs:44:5 + | +44 | pub fn open(&mut self, path: &str, mode: FileMode) -> Result { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `bid::plugins::filebox::FileBoxRegistry::open` is reachable at visibility `pub` + | +note: but type `FileMode` is only usable at visibility `pub(self)` + --> src/bid/plugins/filebox/mod.rs:29:1 + | +29 | enum FileMode { + | ^^^^^^^^^^^^^ + = note: `#[warn(private_interfaces)]` on by default + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:62:9 + | +62 | self.add_predecessor(header_id, preheader_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled + = note: `#[warn(unused_must_use)]` on by default +help: use `let _ = ...` to ignore the resulting value + | +62 | let _ = self.add_predecessor(header_id, preheader_id); + | +++++++ + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:66:9 + | +66 | self.mark_block_unsealed(header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +66 | let _ = self.mark_block_unsealed(header_id); + | +++++++ + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:78:9 + | +78 | self.add_predecessor(body_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +78 | let _ = self.add_predecessor(body_id, header_id); + | +++++++ + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:79:9 + | +79 | self.add_predecessor(after_loop_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +79 | let _ = self.add_predecessor(after_loop_id, header_id); + | +++++++ + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:93:9 + | +93 | self.add_predecessor(header_id, latch_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +93 | let _ = self.add_predecessor(header_id, latch_id); + | +++++++ + +warning: struct `NyashNotepad` is never constructed + --> examples/simple_notepad_win.rs:58:8 + | +58 | struct NyashNotepad { + | ^^^^^^^^^^^^ + | + = note: `NyashNotepad` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis + = note: `#[warn(dead_code)]` on by default + +warning: associated function `new` is never used + --> examples/simple_notepad_win.rs:64:8 + | +63 | impl NyashNotepad { + | ----------------- associated function in this implementation +64 | fn new() -> Self { + | ^^^ + +warning: unused import: `std::collections::HashMap` + --> tests/integration_tests.rs:9:5 + | +9 | use std::collections::HashMap; + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: function `execute_nyash_code` is never used + --> tests/integration_tests.rs:12:4 + | +12 | fn execute_nyash_code(code: &str) -> Result { + | ^^^^^^^^^^^^^^^^^^ + | + = note: `#[warn(dead_code)]` on by default + +warning: unused import: `VMValue` + --> tests/mir_phase6_vm_ref_ops.rs:11:31 + | +11 | use nyash_rust::backend::{VM, VMValue}; + | ^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: unused import: `NyashBox` + --> tests/mir_phase6_vm_ref_ops.rs:12:41 + | +12 | use nyash_rust::box_trait::{IntegerBox, NyashBox}; + | ^^^^^^^^ + +warning: unused variable: `vm` + --> tests/mir_phase6_vm_ref_ops.rs:139:13 + | +139 | let mut vm = VM::new(); + | ^^ help: if this is intentional, prefix it with an underscore: `_vm` + | + = note: `#[warn(unused_variables)]` on by default + +warning: variable does not need to be mutable + --> tests/mir_phase6_vm_ref_ops.rs:139:9 + | +139 | let mut vm = VM::new(); + | ----^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: unexpected `cfg` condition value: `mir-v2` + --> tests/mir_phase8_5_hierarchical_25_instructions.rs:7:8 + | +7 | #![cfg(feature = "mir-v2")] + | ^^^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `mir-v2` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + = note: `#[warn(unexpected_cfgs)]` on by default + +warning: unused import: `BoxCore` + --> src/main.rs:71:32 + | +71 | use box_trait::{StringBox, BoxCore, NyashBox}; + | ^^^^^^^ + +warning: variable does not need to be mutable + --> src/runner.rs:286:17 + | +286 | let mut printer = if self.config.mir_verbose { + | ----^^^^^^^ + | | + | help: remove this `mut` + +warning: `nyash-rust` (bin "nyash") generated 45 warnings (35 duplicates) (run `cargo fix --bin "nyash"` to apply 1 suggestion) +warning: `nyash-rust` (example "simple_notepad_win") generated 2 warnings +warning: `nyash-rust` (test "integration_tests") generated 2 warnings (run `cargo fix --test "integration_tests"` to apply 1 suggestion) +warning: `nyash-rust` (test "mir_phase6_vm_ref_ops") generated 4 warnings (run `cargo fix --test "mir_phase6_vm_ref_ops"` to apply 2 suggestions) +warning: `nyash-rust` (test "mir_phase8_5_hierarchical_25_instructions") generated 1 warning +warning: `nyash-rust` (bin "nyash" test) generated 53 warnings (51 duplicates) (run `cargo fix --bin "nyash" --tests` to apply 2 suggestions) + Finished `test` profile [unoptimized + debuginfo] target(s) in 2.19s + Running unittests src/lib.rs (target/debug/deps/nyash_rust-027bd4c76143e77b) + +running 156 tests +test bid::metadata::tests::test_host_vtable ... ok +test box_arithmetic::tests::test_subtract_box ... ok +test box_arithmetic::tests::test_multiply_box ... ok +🚀 Running benchmark: bench_light +test box_arithmetic::tests::test_add_box_integers ... ok +test bid::types::tests::test_handle_packing ... ok +test box_arithmetic::tests::test_compare_box ... ok +test box_operators::tests::test_boolean_arithmetic ... ok +test box_arithmetic::tests::test_modulo_box ... ok +test bid::metadata::tests::test_plugin_metadata_creation ... ok +test bid::tlv::tests::test_encode_decode_primitives ... ok +test bid::tlv::tests::test_encode_decode_handle ... ok +test box_operators::tests::test_integer_addition ... ok +test box_arithmetic::tests::test_modulo_chip8_pattern ... ok +test ast::tests::test_binary_operator ... ok +test ast::tests::test_ast_node_creation ... ok +test backend::vm::tests::test_binary_operations ... ok +test ast::tests::test_method_call ... ok +test backend::vm_phi::tests::test_phi_selection ... ok +test ast::tests::test_binary_operation ... ok +test box_arithmetic::tests::test_add_box_strings ... ok +test box_operators::tests::test_string_concatenation ... ok +test bid::plugin_api::tests::test_plugin_handle ... ok +test box_factory::tests::test_registry_creation ... ok +test box_operators::tests::test_string_repetition ... ok🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: +Program +test bid::types::tests::test_type_tags ... ok🔍 DEBUG: Executing program with 1 + statements +🔍 DEBUG: Executing statement test box_operators::tests::test_can_add_with ... ok1 of +1: test box_operators::tests::test_dynamic_addition ... okBoxDeclaration + +test box_arithmetic::tests::test_divide_by_zero ... ok +test box_trait::tests::test_add_box_integers ... ok +test bid::types::tests::test_arg_type_mapping ... ok +test box_arithmetic::tests::test_modulo_by_zero ... ok +test box_arithmetic::tests::test_divide_box ... ok +test backend::vm::tests::test_basic_vm_execution ... ok +test box_trait::tests::test_add_box_strings ... ok +test box_trait::tests::test_bool_box_creation ... ok +🔍 execute_statement called with node type: "Instance: StringBox +BoxDeclaration"Instance: MyBox + +test box_trait::tests::test_box_equality ... ok🔍 DEBUG: Starting interpreter execution... + +🔍 DEBUG: execute_node called with node type: Programtest box_trait::tests::test_box_ids_unique ... ok + +🔍 DEBUG: Executing program with 1test ast::tests::test_complex_ast ... ok statements + +🔍 DEBUG: Executing statement 1test box_trait::tests::test_integer_box_creation ... ok of 1 +: Assignmenttest box_trait::tests::test_string_box_creation ... ok + +🔍 execute_statement called with node type: "test bid::bridge::tests::test_box_registry ... okAssignment" + +test bid::bridge::tests::test_future_box_bid_conversion ... ok🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +test bid::bridge::tests::test_integer_box_bid_conversion ... ok🔍 execute_new called for class: IntegerBox +, with 1test bid::bridge::tests::test_string_box_bid_conversion ... ok arguments + +🔍 Trying unified registry for class: IntegerBoxtest box_trait::tests::test_void_box ... ok + +🏭 Unified registry created: IntegerBoxtest boxes::null_box::tests::test_get_or_default ... ok + +🔍 execute_new called for class: IntegerBoxtest boxes::null_box::tests::test_null_check ... ok, with 1 + arguments +test boxes::null_box::tests::test_null_creation ... ok🔍 Trying unified registry for class: IntegerBox + +test boxes::null_box::tests::test_null_equality ... ok🌍 statics namespace created in GlobalBox successfully + +🔥 Static Box 'Maintest cli::tests::test_default_config ... ok' definition registered in statics namespace + +🔍 DEBUG: Starting interpreter execution... +test cli::tests::test_parse_debug_fuel ... ok🔍 DEBUG: execute_node called with node type: Program + +test environment::tests::test_error_handling ... ok🔍 DEBUG: Executing program with 4 + statements +test environment::tests::test_global_environment ... ok🔍 DEBUG: Executing statement 1 + of 4test environment::tests::test_nested_scopes ... ok: BoxDeclaration + +test environment::tests::test_python_compat ... ok🔍 execute_statement called with node type: " +BoxDeclaration"test environment::tests::test_scope_info ... ok + +🔍 DEBUG: Starting interpreter execution... +test environment::tests::test_variable_setting ... ok🔍 DEBUG: execute_node called with node type: Program + +test environment::tests::test_variable_shadowing ... ok🔍 DEBUG: Executing program with 2 + statements +test finalization::tests::test_finalization_tracking ... ok🔍 DEBUG: Executing statement 1 + of 2test instance_v2::tests::test_field_operations ... ok: Assignment + +test instance_v2::tests::test_from_any_box_creation ... ok🔍 execute_statement called with node type: " +Assignment"test instance_v2::tests::test_from_declaration_creation ... ok + +🔍 About to call execute_assignment... +test instance_v2::tests::test_unified_approach ... ok🔍 execute_assignment called, evaluating value expression... + +🔍 execute_new called for class: IntegerBoxtest bid::plugins::filebox::tests::test_filebox_plugin ... ok, with 1 + arguments +test mir::basic_block::tests::test_basic_block_creation ... ok🔍 Trying unified registry for class: IntegerBox + +test mir::basic_block::tests::test_basic_block_id_generator ... ok🔍 DEBUG: Starting interpreter execution... + +🔍 DEBUG: execute_node called with node type: Programtest config::nyash_toml_v2::tests::test_parse_v2_config ... ok + +🔍 DEBUG: Executing program with 2test mir::basic_block::tests::test_branch_successors ... ok statements + +🔍 DEBUG: Executing statement 1test mir::basic_block::tests::test_instruction_addition ... ok of 2 +: Assignmenttest mir::basic_block::tests::test_phi_instruction_ordering ... ok + +🔍 execute_statement called with node type: "test mir::basic_block::tests::test_terminator_addition ... okAssignment" + +test mir::basic_block::tests::test_value_tracking ... ok🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +test mir::builder::tests::test_binary_op_building ... ok🔍 execute_new called for class: BoolBox +, with 1test mir::builder::tests::test_if_statement_building ... ok arguments + +🔍 Trying unified registry for class: BoolBoxtest mir::builder::tests::test_literal_building ... ok + +🏭 Unified registry created: IntegerBoxtest mir::effect::tests::test_effect_combination ... ok + +test mir::effect::tests::test_effect_display ... 🔍 DEBUG: Statement 1ok + completed +test mir::effect::tests::test_effect_mask_creation ... ok🔍 DEBUG: Executing statement 2 + of 4test mir::effect::tests::test_effect_names ... ok: Assignment + +test mir::effect::tests::test_effect_union ... ok🔍 execute_statement called with node type: " +Assignment"test mir::effect::tests::test_parallel_safety ... ok + +🔍 About to call execute_assignment... +test mir::function::tests::test_function_creation ... ok🔍 execute_assignment called, evaluating value expression... + +🔍 execute_new called for class: TestBoxtest mir::function::tests::test_function_stats ... ok, with 0 + arguments +test mir::function::tests::test_module_creation ... ok🔍 Trying unified registry for class: TestBox + +test mir::function::tests::test_value_id_generation ... ok🔍 DEBUG: Statement 1 + completed +test mir::instruction::tests::test_barrier_instructions ... ok🔍 try_add_operation: left=IntegerBox +, right=IntegerBoxtest mir::instruction::tests::test_binop_instruction ... ok + +🔍 After unwrap: left=IntegerBoxtest mir::instruction::tests::test_call_instruction ... ok, right=IntegerBox + +test mir::instruction::tests::test_const_instruction ... ok🔍 Checking StringBox downcast... + +🔍 StringBox downcast FAILED! +test mir::instruction::tests::test_extern_call_instruction ... ok❌ Interpreter error: Invalid operation: +Addition not supported between IntegerBox and IntegerBox +test mir::instruction::tests::test_ref_get_instruction ... ok🏭 Unified registry created: IntegerBox + +test mir::instruction::tests::test_ref_new_instruction ... ok🌍 statics namespace already exists - skipping creation + +🔍 DEBUG: Interpreter execution completed +test mir::instruction::tests::test_ref_set_instruction ... ok🔍 execute_assignment: value expression evaluated successfully + +thread 'interpreter::core::tests::test_arithmetic' panicked at src/interpreter/core.rs:590:34: +called `Result::unwrap()` on an `Err` value: InvalidOperation { message: "Addition not supported between IntegerBox and IntegerBox" } +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace + +🏭 Unified registry created: BoolBoxtest mir::instruction::tests::test_weak_load_instruction ... ok + +🔥 Static box 'Maintest mir::instruction::tests::test_weak_new_instruction ... ok' instance registered in statics namespace + +🔍 DEBUG: Statement 1test mir::instruction_v2::tests::test_effect_categories ... ok completed + +🔍 DEBUG: Executing statement 2test mir::instruction_v2::tests::test_instruction_count ... of 2ok +: Printtest mir::instruction_v2::tests::test_ownership_operations ... ok + +🔍 execute_statement called with node type: "test mir::ownership_verifier_simple::tests::test_basic_ref_set ... okPrint" + +test mir::ownership_verifier_simple::tests::test_ownership_forest_basic ... ok🔍 execute_statement called with node type: " +MethodCall"test mir::ownership_verifier_simple::tests::test_weak_reference_tracking ... ok + +🔍 execute_assignment: value expression evaluated successfully +test mir::printer::tests::test_empty_module_printing ... ok🏭 Unified registry created: TestBox + +test mir::printer::tests::test_function_printing ... ok🔍 DEBUG: resolve_variable: name='x', local_vars=[] + +test mir::printer::tests::test_verbose_printing ... ok🔍 DEBUG: Checking GlobalBox for 'x +'... +test mir::tests::test_basic_mir_compilation ... ok🔍 DEBUG: Found 'x +' in GlobalBox +test mir::tests::test_loop_compilation ... 🔍 execute_assignment: value expression evaluated successfully +ok🔍 DEBUG: resolve_variable: name='statics', local_vars=[] + +42 +🔍 DEBUG: Checking GlobalBox for 'staticstest mir::tests::test_mir_dump ... ok'... + +🔍 DEBUG: Statement 2test mir::tests::test_throw_compilation ... ok completed + +🔍 DEBUG: Executing statement 3test mir::tests::test_try_catch_compilation ... ok of 4 +: Assignmenttest mir::value_id::tests::test_local_id_creation ... ok + +🔍 execute_statement called with node type: "test mir::value_id::tests::test_local_id_generator ... okAssignment" + +test mir::value_id::tests::test_value_id_creation ... ok🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +test mir::value_id::tests::test_value_id_generator ... ok🔍 execute_new called for class: StringBox +, with 1test mir::value_id::tests::test_value_id_ordering ... ok arguments + +🔍 Trying unified registry for class: StringBoxtest mir::verification::tests::test_undefined_value_detection ... ok + +🔍 DEBUG: Statement 1test mir::verification::tests::test_valid_function_verification ... ok completed + +🔍 DEBUG: Executing statement 2test runtime::box_registry::tests::test_builtin_registration ... ok of 2 +: Iftest runtime::box_registry::tests::test_plugin_override ... ok + +🔍 execute_statement called with node type: "test runtime::plugin_config::tests::test_parse_empty_config ... okIf" + +test runtime::plugin_config::tests::test_parse_simple_config ... ok🏭 Unified registry created: StringBox + +test runtime::plugin_config::tests::test_parse_with_comments ... ok🔍 execute_assignment: value expression evaluated successfully + +🔍 DEBUG: Found 'staticstest runtime::tests::tests::test_box_registry_builtin ... ok' in GlobalBox + +🔍 DEBUG: resolve_variable: name='x', local_vars=[]test runtime::tests::tests::test_box_registry_plugin_override ... ok + +🔍 DEBUG: Checking GlobalBox for 'xtest runtime::tests::tests::test_multiple_plugin_types ... ok'... + +🔍 DEBUG: Found 'xtest runtime::tests::tests::test_plugin_config_parsing ... ok' in GlobalBox + +test runtime::tests::tests::test_transparent_box_switching ... 🔍 execute_statement called with node type: "ok +Assignment"test tests::box_tests::tests::test_array_box_nyash_trait ... ok + +test tests::box_tests::tests::test_box_id_uniqueness ... 🔍 About to call execute_assignment... +ok +🔍 execute_assignment called, evaluating value expression... +test tests::box_tests::tests::test_buffer_box_nyash_trait ... ok🔍 execute_new called for class: StringBox +, with 1test tests::box_tests::tests::test_future_box_nyash_trait ... ok arguments + +test tests::box_tests::tests::test_result_box_nyash_trait ... 🔍 Trying unified registry for class: StringBoxok + +test tests::box_tests::tests::test_stream_box_nyash_trait ... ok🔍 DEBUG: resolve_variable: name='obj', local_vars=[] +test tokenizer::tests::test_comments ... +ok +🔍 DEBUG: Checking GlobalBox for 'objtest tests::box_tests::tests::test_json_box_nyash_trait ... ok'... + +test tokenizer::tests::test_complex_code ... 🔍 DEBUG: Found 'objok +' in GlobalBox +test tokenizer::tests::test_error_handling ... ok🏭 Unified registry created: StringBox +test tokenizer::tests::test_identifier ... +ok +🔍 execute_assignment: value expression evaluated successfully +test tokenizer::tests::test_line_numbers ... ok🔍 DEBUG: Statement +test tokenizer::tests::test_number_literal ... 2 completed +ok +🔍 DEBUG: Statement 3test tokenizer::tests::test_operators ... ok completed + +test tokenizer::tests::test_simple_tokens ... 🔍 DEBUG: Executing statement 4ok + of 4test tokenizer::tests::test_string_literal ... ok: Assignment +test value::tests::test_basic_creation ... +ok +🔍 execute_statement called with node type: "test value::tests::test_cross_type_equality ... okAssignment" + +🔍 About to call execute_assignment... +test interpreter::core::tests::test_arithmetic ... FAILED🔍 execute_assignment called, evaluating value expression... + +🔍 stdlib not initialized for method call +test value::tests::test_object_creation ... ok🔍 DEBUG: Interpreter execution completed + +✅ FIELD ACCESS: Returning shared reference id=157test value::tests::test_type_conversion ... ok + +🔍 DEBUG: Statement 2test value::tests::test_type_names ... ok completed + +🔍 DEBUG: resolve_variable: name='obj', local_vars=[]test value::tests::test_weak_reference_basic ... ok + +🔍 DEBUG: Checking GlobalBox for 'objtest value::tests::test_weak_reference_drop ... ok'... + +🔍 DEBUG: Found 'objtest value::tests::test_weak_reference_equality ... ok' in GlobalBox + +🔍 execute_statement called with node type: "test value::tests::test_weak_reference_string_representation ... okLocal" + +test interpreter::core::tests::test_simple_execution ... ok🔍 DEBUG: Interpreter execution completed + +🔍 execute_statement called with node type: "Return" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🔍 DEBUG: resolve_variable: name='y', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'y'... +🔍 DEBUG: Found 'y' in GlobalBox +🔍 DEBUG: resolve_variable: name='me', local_vars=["me"]test interpreter::core::tests::test_if_statement ... ok + +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=160 +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +✅ FIELD ACCESS: Returning shared reference id=197 +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 4 completed +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🔍 DEBUG: Interpreter execution completed +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: resolve_variable: name='obj', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'obj'... +🔍 DEBUG: Found 'obj' in GlobalBox +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='result', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'result'... +🔍 DEBUG: Found 'result' in GlobalBox +🔍 DEBUG: resolve_variable: name='a', local_vars=["me", "c", "a", "b", "result"]test interpreter::core::tests::test_box_instance_creation ... ok +🔍 DEBUG: Found ' +a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=215 +🔍 DEBUG: resolve_variable: name='b', local_vars=["me", "c", "a", "b", "result"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=221 +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 Checking StringBox downcast... +🔍 StringBox downcast FAILED! +❌ Interpreter error: Invalid operation: Addition not supported between IntegerBox and IntegerBox +🔍 DEBUG: Interpreter execution completed +88 + 🏎️ VM: First run completed +88 +88 +🚀 Running benchmark: bench_medium +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=236 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔗 DEBUG: Variable 'sum' set to 0 - simulating object drop +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "i", "temp", "me"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=238 +🔗 DEBUG: Old value being dropped: void +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "i", "temp", "me"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=249 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +❌ Interpreter error: Invalid operation: Multiplication not supported between IntegerBox and IntegerBox +🔍 DEBUG: Interpreter execution completed +140 + 🏎️ VM: First run completed +140 +140 +🚀 Running benchmark: bench_heavy +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=261 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='a', local_vars=["me", "b", "d", "result1", "a", "e", "c", "result2", "g", "f", "result4", "result5", "j", "h", "i", "result3"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=282 +🔍 DEBUG: resolve_variable: name='b', local_vars=["me", "b", "d", "result1", "a", "e", "c", "result2", "g", "f", "result4", "result5", "j", "h", "i", "result3"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=286 +❌ Interpreter error: Invalid operation: Multiplication not supported between IntegerBox and IntegerBox +🔍 DEBUG: Interpreter execution completed +6301391 + 🏎️ VM: First run completed +6301391 +6301391 + +📊 Nyash Performance Benchmark Results +===================================== +Iterations per test: 3 + +🎯 bench_heavy + Backend | Avg Time (ms) | Total Time (ms) | Speed Ratio + --------------|---------------|-----------------|------------ + VM | 0.694 | 2.1 | 1.00x + +🎯 bench_medium + Backend | Avg Time (ms) | Total Time (ms) | Speed Ratio + --------------|---------------|-----------------|------------ + VM | 0.605 | 1.8 | 1.00x + +🎯 bench_light + Backend | Avg Time (ms) | Total Time (ms) | Speed Ratio + --------------|---------------|-----------------|------------ + VM | 0.294 | 0.9 | 1.00x + +💡 Performance Summary: + 📈 Average across all benchmarks: + Interpreter: NaN ms + VM: 0.53 ms (NaNx faster than interpreter) + WASM: NaN ms (NaNx faster than interpreter) +test benchmarks::tests::test_benchmark_light ... ok + +failures: + +failures: + interpreter::core::tests::test_arithmetic + +test result: FAILED. 155 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.26s + +error: test failed, to rerun pass `--lib` diff --git a/test_out_full.txt b/test_out_full.txt new file mode 100644 index 00000000..063a571c --- /dev/null +++ b/test_out_full.txt @@ -0,0 +1,1155 @@ +warning: unused imports: `BasicBlockIdGenerator`, `BasicBlock`, `CompareOp`, `EffectMask`, `MirFunction`, and `ValueIdGenerator` + --> src/mir/loop_builder.rs:9:21 + | +9 | MirInstruction, BasicBlock, BasicBlockId, MirFunction, ValueId, + | ^^^^^^^^^^ ^^^^^^^^^^^ +10 | ConstValue, CompareOp, BasicBlockIdGenerator, ValueIdGenerator, EffectMask + | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: unused import: `HashSet` + --> src/mir/loop_builder.rs:13:33 + | +13 | use std::collections::{HashMap, HashSet}; + | ^^^^^^^ + +warning: unexpected `cfg` condition value: `llvm` + --> src/backend/mod.rs:13:7 + | +13 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + = note: `#[warn(unexpected_cfgs)]` on by default + +warning: unexpected `cfg` condition value: `llvm` + --> src/backend/mod.rs:23:7 + | +23 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unused import: `MirInstruction` + --> src/backend/vm_phi.rs:9:41 + | +9 | use crate::mir::{BasicBlockId, ValueId, MirInstruction}; + | ^^^^^^^^^^^^^^ + +warning: unused import: `super::Usize` + --> src/bid/types.rs:1:5 + | +1 | use super::Usize; + | ^^^^^^^^^^^^ + +warning: unused import: `std::os::raw::c_char` + --> src/bid/plugin_api.rs:2:5 + | +2 | use std::os::raw::c_char; + | ^^^^^^^^^^^^^^^^^^^^ + +warning: unused imports: `NyashHostVtable`, `NyashMethodInfo`, and `NyashPluginInfo` + --> src/bid/plugins/filebox/mod.rs:7:18 + | +7 | use crate::bid::{NyashPluginInfo, NyashMethodInfo, NyashHostVtable}; + | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ + +warning: unused imports: `SeekFrom` and `Seek` + --> src/bid/plugins/filebox/mod.rs:10:28 + | +10 | use std::io::{Read, Write, Seek, SeekFrom}; + | ^^^^ ^^^^^^^^ + +warning: unused imports: `c_char` and `c_void` + --> src/bid/plugins/filebox/mod.rs:11:20 + | +11 | use std::os::raw::{c_char, c_void}; + | ^^^^^^ ^^^^^^ + +warning: unused imports: `CStr` and `CString` + --> src/bid/plugins/filebox/mod.rs:13:16 + | +13 | use std::ffi::{CStr, CString}; + | ^^^^ ^^^^^^^ + +warning: unused import: `std::ffi::c_void` + --> src/bid/loader.rs:3:5 + | +3 | use std::ffi::c_void; + | ^^^^^^^^^^^^^^^^ + +warning: unused imports: `TlvDecoder` and `TlvEncoder` + --> src/bid/generic_plugin_box.rs:2:23 + | +2 | use crate::bid::tlv::{TlvEncoder, TlvDecoder}; + | ^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused import: `crate::bid::types::BidTag` + --> src/bid/generic_plugin_box.rs:3:5 + | +3 | use crate::bid::types::BidTag; + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `BoxBase` + --> src/runtime/plugin_loader_v2.rs:7:43 + | +7 | use crate::box_trait::{NyashBox, BoxCore, BoxBase, StringBox}; + | ^^^^^^^ + +warning: unused import: `std::ffi::c_void` + --> src/runtime/plugin_loader_v2.rs:11:5 + | +11 | use std::ffi::c_void; + | ^^^^^^^^^^^^^^^^ + +warning: unused variable: `registry` + --> src/box_factory/plugin.rs:53:13 + | +53 | let registry = get_global_registry(); + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_registry` + | + = note: `#[warn(unused_variables)]` on by default + +warning: unused variable: `args` + --> src/instance_v2.rs:147:28 + | +147 | pub fn init(&mut self, args: &[Box]) -> Result<(), String> { + | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` + +warning: unused variable: `nyash_value` + --> src/instance_v2.rs:289:21 + | +289 | if let Some(nyash_value) = self.fields_ng.lock().unwrap().get(field_name) { + | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nyash_value` + +warning: unused variable: `block_id` + --> src/mir/loop_builder.rs:246:39 + | +246 | fn mark_block_unsealed(&mut self, block_id: BasicBlockId) -> Result<(), String> { + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_id` + +warning: unused variable: `block_id` + --> src/mir/loop_builder.rs:273:49 + | +273 | fn get_variable_at_block(&self, name: &str, block_id: BasicBlockId) -> Option { + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_id` + +warning: unused variable: `dst` + --> src/backend/vm_phi.rs:48:9 + | +48 | dst: ValueId, + | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` + +warning: unused variable: `f` + --> src/bid/plugin_api.rs:167:36 + | +167 | pub fn with_alloc(mut self, f: F) -> Self + | ^ help: if this is intentional, prefix it with an underscore: `_f` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:167:26 + | +167 | pub fn with_alloc(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: unused variable: `f` + --> src/bid/plugin_api.rs:176:35 + | +176 | pub fn with_free(mut self, f: F) -> Self + | ^ help: if this is intentional, prefix it with an underscore: `_f` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:176:25 + | +176 | pub fn with_free(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `f` + --> src/bid/plugin_api.rs:183:34 + | +183 | pub fn with_log(mut self, f: F) -> Self + | ^ help: if this is intentional, prefix it with an underscore: `_f` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:183:24 + | +183 | pub fn with_log(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `args` + --> src/runtime/plugin_loader_v2.rs:236:46 + | +236 | pub fn create_box(&self, box_type: &str, args: &[Box]) -> BidResult> { + | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` + +warning: type `FileMode` is more private than the item `FileBoxRegistry::open` + --> src/bid/plugins/filebox/mod.rs:44:5 + | +44 | pub fn open(&mut self, path: &str, mode: FileMode) -> Result { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `FileBoxRegistry::open` is reachable at visibility `pub` + | +note: but type `FileMode` is only usable at visibility `pub(self)` + --> src/bid/plugins/filebox/mod.rs:29:1 + | +29 | enum FileMode { + | ^^^^^^^^^^^^^ + = note: `#[warn(private_interfaces)]` on by default + +warning: field `block_var_maps` is never read + --> src/mir/loop_builder.rs:35:5 + | +27 | pub struct LoopBuilder<'a> { + | ----------- field in this struct +... +35 | block_var_maps: HashMap>, + | ^^^^^^^^^^^^^^ + | + = note: `#[warn(dead_code)]` on by default + +warning: fields `type_name_holder` and `method_holders` are never read + --> src/bid/metadata.rs:148:5 + | +143 | pub struct PluginMetadata { + | -------------- fields in this struct +... +148 | type_name_holder: Option, + | ^^^^^^^^^^^^^^^^ +149 | method_holders: Vec<(NyashMethodInfo, CString)>, + | ^^^^^^^^^^^^^^ + +warning: fields `path` and `mode` are never read + --> src/bid/plugins/filebox/mod.rs:24:5 + | +22 | struct FileBoxState { + | ------------ fields in this struct +23 | file: File, +24 | path: String, + | ^^^^ +25 | mode: FileMode, + | ^^^^ + +warning: fields `box_types` and `init_fn` are never read + --> src/runtime/plugin_loader_v2.rs:20:5 + | +15 | pub struct LoadedPluginV2 { + | -------------- fields in this struct +... +20 | box_types: Vec, + | ^^^^^^^^^ +... +23 | init_fn: Option i32>, + | ^^^^^^^ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:62:9 + | +62 | self.add_predecessor(header_id, preheader_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled + = note: `#[warn(unused_must_use)]` on by default +help: use `let _ = ...` to ignore the resulting value + | +62 | let _ = self.add_predecessor(header_id, preheader_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:66:9 + | +66 | self.mark_block_unsealed(header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +66 | let _ = self.mark_block_unsealed(header_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:78:9 + | +78 | self.add_predecessor(body_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +78 | let _ = self.add_predecessor(body_id, header_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:79:9 + | +79 | self.add_predecessor(after_loop_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +79 | let _ = self.add_predecessor(after_loop_id, header_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:93:9 + | +93 | self.add_predecessor(header_id, latch_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +93 | let _ = self.add_predecessor(header_id, latch_id); + | +++++++ + +warning: creating a shared reference to mutable static + --> src/bid/plugins/filebox/mod.rs:102:12 + | +102 | if FILEBOX_REGISTRY.is_none() { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static + | + = note: for more information, see + = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives + = note: `#[warn(static_mut_refs)]` on by default + +warning: creating a shared reference to mutable static + --> src/bid/plugins/filebox/mod.rs:105:9 + | +105 | FILEBOX_REGISTRY.as_ref().unwrap().clone() + | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static + | + = note: for more information, see + = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives + +warning: unused imports: `BoolBox`, `IntegerBox`, and `StringBox` + --> src/ast.rs:885:28 + | +885 | use crate::box_trait::{StringBox, IntegerBox, BoolBox}; + | ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: unused import: `Mutex` + --> src/instance_v2.rs:387:26 + | +387 | use std::sync::{Arc, Mutex}; + | ^^^^^ + +warning: unused imports: `BasicBlockIdGenerator`, `BasicBlock`, `CompareOp`, `EffectMask`, `MirFunction`, and `ValueIdGenerator` + --> src/mir/loop_builder.rs:9:21 + | +9 | MirInstruction, BasicBlock, BasicBlockId, MirFunction, ValueId, + | ^^^^^^^^^^ ^^^^^^^^^^^ +10 | ConstValue, CompareOp, BasicBlockIdGenerator, ValueIdGenerator, EffectMask + | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused import: `BasicBlock` + --> src/mir/verification.rs:311:75 + | +311 | use crate::mir::{MirFunction, FunctionSignature, MirType, EffectMask, BasicBlock}; + | ^^^^^^^^^^ + +warning: unused imports: `BasicBlock`, `EffectMask`, `FunctionSignature`, `MirFunction`, `MirModule`, and `MirType` + --> src/backend/vm.rs:860:22 + | +860 | use crate::mir::{MirModule, MirFunction, FunctionSignature, MirType, EffectMask, BasicBlock}; + | ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused imports: `BidHandle` and `BoxTypeId` + --> src/runtime/tests.rs:10:22 + | +10 | use crate::bid::{BidHandle, BoxTypeId}; + | ^^^^^^^^^ ^^^^^^^^^ + +warning: variable does not need to be mutable + --> src/mir/basic_block.rs:314:13 + | +314 | let mut bb = BasicBlock::new(bb_id); + | ----^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: unused variable: `child` + --> src/mir/ownership_verifier_simple.rs:313:13 + | +313 | let child = value_gen.next(); + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_child` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:167:26 + | +167 | pub fn with_alloc(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tests/box_tests.rs:11:13 + | +11 | let mut array = ArrayBox::new(); + | ----^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tests/box_tests.rs:90:13 + | +90 | let mut stream = NyashStreamBox::from_data(vec![72, 101, 108, 108, 111]); // "Hello" + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: `nyash-rust` (lib) generated 41 warnings (run `cargo fix --lib -p nyash-rust` to apply 17 suggestions) +warning: `nyash-rust` (lib test) generated 50 warnings (39 duplicates) (run `cargo fix --lib -p nyash-rust --tests` to apply 10 suggestions) +warning: unused import: `std::collections::HashMap` + --> tests/integration_tests.rs:9:5 + | +9 | use std::collections::HashMap; + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: function `execute_nyash_code` is never used + --> tests/integration_tests.rs:12:4 + | +12 | fn execute_nyash_code(code: &str) -> Result { + | ^^^^^^^^^^^^^^^^^^ + | + = note: `#[warn(dead_code)]` on by default + +warning: unused import: `VMValue` + --> tests/mir_phase6_vm_ref_ops.rs:11:31 + | +11 | use nyash_rust::backend::{VM, VMValue}; + | ^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: unused import: `NyashBox` + --> tests/mir_phase6_vm_ref_ops.rs:12:41 + | +12 | use nyash_rust::box_trait::{IntegerBox, NyashBox}; + | ^^^^^^^^ + +warning: unused variable: `vm` + --> tests/mir_phase6_vm_ref_ops.rs:139:13 + | +139 | let mut vm = VM::new(); + | ^^ help: if this is intentional, prefix it with an underscore: `_vm` + | + = note: `#[warn(unused_variables)]` on by default + +warning: variable does not need to be mutable + --> tests/mir_phase6_vm_ref_ops.rs:139:9 + | +139 | let mut vm = VM::new(); + | ----^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: unexpected `cfg` condition value: `llvm` + --> src/runner.rs:22:7 + | +22 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unexpected `cfg` condition value: `llvm` + --> src/runner.rs:503:15 + | +503 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unexpected `cfg` condition value: `llvm` + --> src/runner.rs:526:19 + | +526 | #[cfg(not(feature = "llvm"))] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: variable does not need to be mutable + --> src/runner.rs:286:17 + | +286 | let mut printer = if self.config.mir_verbose { + | ----^^^^^^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: type `FileMode` is more private than the item `bid::plugins::filebox::FileBoxRegistry::open` + --> src/bid/plugins/filebox/mod.rs:44:5 + | +44 | pub fn open(&mut self, path: &str, mode: FileMode) -> Result { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `bid::plugins::filebox::FileBoxRegistry::open` is reachable at visibility `pub` + | +note: but type `FileMode` is only usable at visibility `pub(self)` + --> src/bid/plugins/filebox/mod.rs:29:1 + | +29 | enum FileMode { + | ^^^^^^^^^^^^^ + = note: `#[warn(private_interfaces)]` on by default + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:62:9 + | +62 | self.add_predecessor(header_id, preheader_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled + = note: `#[warn(unused_must_use)]` on by default +help: use `let _ = ...` to ignore the resulting value + | +62 | let _ = self.add_predecessor(header_id, preheader_id); + | +++++++ + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:66:9 + | +66 | self.mark_block_unsealed(header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +66 | let _ = self.mark_block_unsealed(header_id); + | +++++++ + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:78:9 + | +78 | self.add_predecessor(body_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +78 | let _ = self.add_predecessor(body_id, header_id); + | +++++++ + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:79:9 + | +79 | self.add_predecessor(after_loop_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +79 | let _ = self.add_predecessor(after_loop_id, header_id); + | +++++++ + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:93:9 + | +93 | self.add_predecessor(header_id, latch_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +93 | let _ = self.add_predecessor(header_id, latch_id); + | +++++++ + +warning: struct `NyashNotepad` is never constructed + --> examples/simple_notepad_win.rs:58:8 + | +58 | struct NyashNotepad { + | ^^^^^^^^^^^^ + | + = note: `NyashNotepad` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis + = note: `#[warn(dead_code)]` on by default + +warning: associated function `new` is never used + --> examples/simple_notepad_win.rs:64:8 + | +63 | impl NyashNotepad { + | ----------------- associated function in this implementation +64 | fn new() -> Self { + | ^^^ + +warning: unused import: `BoxCore` + --> src/main.rs:71:32 + | +71 | use box_trait::{StringBox, BoxCore, NyashBox}; + | ^^^^^^^ + +warning: variable does not need to be mutable + --> src/runner.rs:286:17 + | +286 | let mut printer = if self.config.mir_verbose { + | ----^^^^^^^ + | | + | help: remove this `mut` + +warning: unexpected `cfg` condition value: `mir-v2` + --> tests/mir_phase8_5_hierarchical_25_instructions.rs:7:8 + | +7 | #![cfg(feature = "mir-v2")] + | ^^^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `mir-v2` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + = note: `#[warn(unexpected_cfgs)]` on by default + +warning: `nyash-rust` (test "integration_tests") generated 2 warnings (run `cargo fix --test "integration_tests"` to apply 1 suggestion) +warning: `nyash-rust` (test "mir_phase6_vm_ref_ops") generated 4 warnings (run `cargo fix --test "mir_phase6_vm_ref_ops"` to apply 2 suggestions) +warning: `nyash-rust` (bin "nyash") generated 45 warnings (35 duplicates) (run `cargo fix --bin "nyash"` to apply 1 suggestion) +warning: `nyash-rust` (example "simple_notepad_win") generated 2 warnings +warning: `nyash-rust` (bin "nyash" test) generated 53 warnings (51 duplicates) (run `cargo fix --bin "nyash" --tests` to apply 2 suggestions) +warning: `nyash-rust` (test "mir_phase8_5_hierarchical_25_instructions") generated 1 warning + Finished `test` profile [unoptimized + debuginfo] target(s) in 2.16s + Running unittests src/lib.rs (target/debug/deps/nyash_rust-027bd4c76143e77b) + +running 156 tests +test bid::metadata::tests::test_host_vtable ... ok +test box_arithmetic::tests::test_add_box_integers ... ok +test box_arithmetic::tests::test_modulo_chip8_pattern ... ok +🚀 Running benchmark: bench_light +test box_arithmetic::tests::test_modulo_box ... ok +test box_arithmetic::tests::test_multiply_box ... ok +test bid::types::tests::test_handle_packing ... ok +test box_arithmetic::tests::test_compare_box ... ok +test box_operators::tests::test_boolean_arithmetic ... ok +test bid::metadata::tests::test_plugin_metadata_creation ... ok +test bid::tlv::tests::test_encode_decode_primitives ... ok +test bid::tlv::tests::test_encode_decode_handle ... ok +test box_operators::tests::test_integer_addition ... ok +test backend::vm::tests::test_basic_vm_execution ... ok +test backend::vm::tests::test_binary_operations ... ok +test ast::tests::test_binary_operator ... ok +test box_factory::tests::test_registry_creation ... ok +test ast::tests::test_ast_node_creation ... ok +test box_arithmetic::tests::test_add_box_strings ... ok +test ast::tests::test_method_call ... ok +test box_arithmetic::tests::test_subtract_box ... ok +test bid::plugin_api::tests::test_plugin_handle ... ok +test box_operators::tests::test_string_concatenation ... ok +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: test box_operators::tests::test_string_repetition ... okProgram + +🔍 DEBUG: Executing program with 1test box_arithmetic::tests::test_divide_by_zero ... ok statements +🔍 DEBUG: Executing statement +1 of test box_arithmetic::tests::test_modulo_by_zero ... ok1: +BoxDeclaration +test ast::tests::test_binary_operation ... ok +test bid::types::tests::test_type_tags ... ok +test box_operators::tests::test_can_add_with ... ok +test box_operators::tests::test_dynamic_addition ... ok +test bid::types::tests::test_arg_type_mapping ... ok +test box_trait::tests::test_add_box_integers ... ok +test box_arithmetic::tests::test_divide_box ... ok +test box_trait::tests::test_add_box_strings ... ok +🔍 execute_statement called with node type: "test backend::vm_phi::tests::test_phi_selection ... okBoxDeclaration" + +test box_trait::tests::test_bool_box_creation ... 🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'okMain' definition registered in statics namespace + +🔍 DEBUG: Statement 1Instance: StringBox + completed +Instance: MyBox +🔍 DEBUG: Starting interpreter execution... +test box_trait::tests::test_box_equality ... ok🔍 DEBUG: execute_node called with node type: Program + +test box_trait::tests::test_box_ids_unique ... ok🔍 DEBUG: Executing program with 1 + statements +test ast::tests::test_complex_ast ... ok🔍 DEBUG: Executing statement 1 + of 1test box_trait::tests::test_integer_box_creation ... ok: Assignment + +test box_trait::tests::test_string_box_creation ... ok🔍 execute_statement called with node type: " +Assignment"test bid::bridge::tests::test_integer_box_bid_conversion ... ok + +🔍 About to call execute_assignment... +test bid::bridge::tests::test_string_box_bid_conversion ... ok🔍 execute_assignment called, evaluating value expression... + +🔍 execute_new called for class: IntegerBoxtest bid::bridge::tests::test_box_registry ... ok, with 1 + arguments +test bid::bridge::tests::test_future_box_bid_conversion ... ok🔍 Trying unified registry for class: IntegerBox + +test box_trait::tests::test_void_box ... ok🌍 statics namespace already exists - skipping creation + +🔍 DEBUG: Starting interpreter execution... +test boxes::null_box::tests::test_get_or_default ... ok🔍 DEBUG: execute_node called with node type: Program + +test boxes::null_box::tests::test_null_check ... ok🔍 DEBUG: Executing program with 2 + statements +test boxes::null_box::tests::test_null_creation ... ok🔍 DEBUG: Executing statement 1 + of 2test boxes::null_box::tests::test_null_equality ... ok: Assignment + +test cli::tests::test_default_config ... ok🔍 execute_statement called with node type: " +Assignment"test cli::tests::test_parse_debug_fuel ... ok + +🔍 About to call execute_assignment... +test environment::tests::test_error_handling ... ok🔍 execute_assignment called, evaluating value expression... + +🔍 execute_new called for class: BoolBoxtest environment::tests::test_global_environment ... ok, with 1 + arguments +test environment::tests::test_nested_scopes ... ok🔍 Trying unified registry for class: BoolBox + +test environment::tests::test_python_compat ... ok🔍 DEBUG: Starting interpreter execution... + +🔍 DEBUG: execute_node called with node type: Programtest environment::tests::test_scope_info ... ok + +🔍 DEBUG: Executing program with 2test environment::tests::test_variable_setting ... ok statements + +🔍 DEBUG: Executing statement 1test environment::tests::test_variable_shadowing ... ok of 2 +: Assignmenttest finalization::tests::test_finalization_tracking ... ok + +🔍 execute_statement called with node type: "test instance_v2::tests::test_field_operations ... okAssignment" + +test instance_v2::tests::test_from_any_box_creation ... ok🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +test instance_v2::tests::test_from_declaration_creation ... ok🔍 execute_new called for class: IntegerBox +, with 1test instance_v2::tests::test_unified_approach ... ok arguments + +🔍 Trying unified registry for class: IntegerBoxtest bid::plugins::filebox::tests::test_filebox_plugin ... ok + +🔥 Static box 'Maintest mir::basic_block::tests::test_basic_block_creation ... ok' instance registered in statics namespace + +🔍 DEBUG: Starting interpreter execution... +test config::nyash_toml_v2::tests::test_parse_v2_config ... ok🔍 DEBUG: execute_node called with node type: Program + +test mir::basic_block::tests::test_basic_block_id_generator ... ok🔍 DEBUG: Executing program with 4 + statements +test mir::basic_block::tests::test_branch_successors ... ok🔍 DEBUG: Executing statement 1 + of 4test mir::basic_block::tests::test_instruction_addition ... ok: BoxDeclaration + +test mir::basic_block::tests::test_phi_instruction_ordering ... ok🔍 execute_statement called with node type: " +BoxDeclaration"test mir::basic_block::tests::test_terminator_addition ... ok + +🏭 Unified registry created: IntegerBoxtest mir::basic_block::tests::test_value_tracking ... ok + +🔍 execute_statement called with node type: "test mir::builder::tests::test_binary_op_building ... okMethodCall" + +test mir::builder::tests::test_if_statement_building ... ok🔍 execute_new called for class: IntegerBox +, with 1test mir::builder::tests::test_literal_building ... ok arguments + +🔍 Trying unified registry for class: IntegerBoxtest mir::effect::tests::test_effect_combination ... ok + +🔍 DEBUG: Statement 1test mir::effect::tests::test_effect_display ... ok completed + +🔍 DEBUG: Executing statement 2test mir::effect::tests::test_effect_mask_creation ... ok of 4 +: Assignmenttest mir::effect::tests::test_effect_names ... ok + +🔍 execute_statement called with node type: "test mir::effect::tests::test_effect_union ... okAssignment" + +test mir::effect::tests::test_parallel_safety ... ok🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +test mir::function::tests::test_function_creation ... ok🔍 execute_new called for class: TestBox +, with 0test mir::function::tests::test_function_stats ... ok arguments + +🔍 Trying unified registry for class: TestBoxtest mir::function::tests::test_module_creation ... ok + +🔍 DEBUG: resolve_variable: name='statics', local_vars=[]test mir::function::tests::test_value_id_generation ... ok + +🔍 DEBUG: Checking GlobalBox for 'staticstest mir::instruction::tests::test_barrier_instructions ... ok'... + +🔍 DEBUG: Found 'staticstest mir::instruction::tests::test_binop_instruction ... ok' in GlobalBox + +🏭 Unified registry created: BoolBoxtest mir::instruction::tests::test_call_instruction ... ok + +✅ FIELD ACCESS: Returning shared reference id=143test mir::instruction::tests::test_const_instruction ... ok + +🔍 execute_assignment: value expression evaluated successfully +test mir::instruction::tests::test_extern_call_instruction ... ok🏭 Unified registry created: IntegerBox + +test mir::instruction::tests::test_ref_get_instruction ... ok🔍 execute_statement called with node type: " +Local"test mir::instruction::tests::test_ref_new_instruction ... ok + +🔍 DEBUG: Statement 1test mir::instruction::tests::test_ref_set_instruction ... ok completed + +🔍 DEBUG: Executing statement 2test mir::instruction::tests::test_weak_load_instruction ... ok of 2 +: Iftest mir::instruction::tests::test_weak_new_instruction ... ok + +🔍 execute_statement called with node type: "test mir::instruction_v2::tests::test_effect_categories ... okIf" + +test mir::instruction_v2::tests::test_instruction_count ... ok🔍 execute_statement called with node type: " +Assignment"test mir::instruction_v2::tests::test_ownership_operations ... ok + +🔍 About to call execute_assignment... +test mir::ownership_verifier_simple::tests::test_basic_ref_set ... ok🔍 execute_assignment called, evaluating value expression... + +🔍 execute_new called for class: IntegerBoxtest mir::ownership_verifier_simple::tests::test_ownership_forest_basic ... ok, with 1 + arguments +test mir::ownership_verifier_simple::tests::test_weak_reference_tracking ... ok🔍 Trying unified registry for class: IntegerBox + +test mir::printer::tests::test_empty_module_printing ... ok🏭 Unified registry created: IntegerBox + +test mir::printer::tests::test_function_printing ... ok🔍 DEBUG: resolve_variable: name='x', local_vars=[] + +test mir::printer::tests::test_verbose_printing ... ok🔍 DEBUG: Checking GlobalBox for 'x +'... +test mir::tests::test_basic_mir_compilation ... ok🔍 DEBUG: Found 'x +' in GlobalBox +test mir::tests::test_loop_compilation ... ok🔍 execute_statement called with node type: " +Assignment"test mir::tests::test_mir_dump ... ok + +🔍 About to call execute_assignment... +test mir::tests::test_throw_compilation ... ok🔍 execute_assignment called, evaluating value expression... + +🔍 execute_new called for class: StringBoxtest mir::tests::test_try_catch_compilation ... ok, with 1 + arguments +test mir::value_id::tests::test_local_id_creation ... ok🔍 Trying unified registry for class: StringBox + +test mir::value_id::tests::test_local_id_generator ... ok🔍 try_add_operation: left=IntegerBox +, right=IntegerBoxtest mir::value_id::tests::test_value_id_creation ... ok + +🔍 After unwrap: left=IntegerBoxtest mir::value_id::tests::test_value_id_generator ... ok, right=IntegerBox + +test mir::value_id::tests::test_value_id_ordering ... ok🔍 Checking StringBox downcast... + +🔍 StringBox downcast FAILED! +test mir::verification::tests::test_undefined_value_detection ... ok❌ Interpreter error: Invalid operation: +Addition not supported between IntegerBox and IntegerBox +test mir::verification::tests::test_valid_function_verification ... ok🏭 Unified registry created: TestBox + +test runtime::box_registry::tests::test_builtin_registration ... ok🔍 execute_assignment: value expression evaluated successfully + +🔍 DEBUG: Interpreter execution completed +test runtime::box_registry::tests::test_plugin_override ... ok🔍 execute_assignment: value expression evaluated successfully + +thread 'interpreter::core::tests::test_arithmetic' panicked at src/interpreter/core.rs:590:34: +called `Result::unwrap()` on an `Err` value: InvalidOperation { message: "Addition not supported between IntegerBox and IntegerBox" } +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace + +🏭 Unified registry created: IntegerBoxtest runtime::plugin_config::tests::test_parse_empty_config ... ok + +🔍 DEBUG: Statement 1test runtime::plugin_config::tests::test_parse_simple_config ... ok completed + +🔍 DEBUG: Executing statement 2test runtime::plugin_config::tests::test_parse_with_comments ... ok of 2 +: Printtest runtime::tests::tests::test_box_registry_builtin ... ok + +🔍 execute_statement called with node type: "test runtime::tests::tests::test_box_registry_plugin_override ... okPrint" + +test runtime::tests::tests::test_multiple_plugin_types ... ok🏭 Unified registry created: StringBox + +test runtime::tests::tests::test_plugin_config_parsing ... ok🔍 execute_assignment: value expression evaluated successfully + +🔍 execute_assignment: value expression evaluated successfully +test runtime::tests::tests::test_transparent_box_switching ... ok🔍 DEBUG: resolve_variable: name='x', local_vars=[] +test tests::box_tests::tests::test_array_box_nyash_trait ... +ok +🔍 DEBUG: Checking GlobalBox for 'xtest tests::box_tests::tests::test_box_id_uniqueness ... ok'... + +test tests::box_tests::tests::test_buffer_box_nyash_trait ... 🔍 DEBUG: Found 'xok +' in GlobalBox +test tests::box_tests::tests::test_future_box_nyash_trait ... 🔍 execute_statement called with node type: "okAssignment" + +test tests::box_tests::tests::test_result_box_nyash_trait ... 🔍 About to call execute_assignment... +ok🔍 execute_assignment called, evaluating value expression... + +🔍 execute_new called for class: IntegerBoxtest tests::box_tests::tests::test_stream_box_nyash_trait ... , with 1ok arguments + +🔍 Trying unified registry for class: IntegerBoxtest tokenizer::tests::test_comments ... +ok🔍 DEBUG: Statement 2 + completed +test tests::box_tests::tests::test_json_box_nyash_trait ... 🔍 DEBUG: Executing statement 3ok of 4 +: Assignmenttest tokenizer::tests::test_complex_code ... +ok🔍 execute_statement called with node type: " +Assignment"test tokenizer::tests::test_error_handling ... +ok🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +test tokenizer::tests::test_identifier ... 🔍 execute_new called for class: StringBoxok, with 1 + arguments +test tokenizer::tests::test_line_numbers ... 🔍 Trying unified registry for class: StringBoxok + +🔍 DEBUG: Statement 2test tokenizer::tests::test_number_literal ... completed +ok🏭 Unified registry created: IntegerBox + +test tokenizer::tests::test_operators ... 🔍 DEBUG: Interpreter execution completed +ok🔍 execute_assignment: value expression evaluated successfully + +🔍 execute_statement called with node type: "test tokenizer::tests::test_simple_tokens ... Assignment"ok + +🔍 About to call execute_assignment... +test tokenizer::tests::test_string_literal ... 🔍 execute_assignment called, evaluating value expression... +ok🔍 execute_new called for class: IntegerBox +, with 1test value::tests::test_basic_creation ... arguments +ok🔍 Trying unified registry for class: IntegerBox + +42 +🔍 DEBUG: resolve_variable: name='y', local_vars=[]test value::tests::test_cross_type_equality ... ok + +🔍 DEBUG: Checking GlobalBox for 'ytest value::tests::test_object_creation ... ok'... + +🔍 DEBUG: Found 'ytest value::tests::test_type_conversion ... ok' in GlobalBox + +🏭 Unified registry created: StringBoxtest value::tests::test_type_names ... ok + +🔍 DEBUG: Statement 2test value::tests::test_weak_reference_basic ... ok completed + +🔍 execute_assignment: value expression evaluated successfully +test value::tests::test_weak_reference_drop ... ok🏭 Unified registry created: IntegerBox + +test value::tests::test_weak_reference_equality ... ok🔍 execute_assignment: value expression evaluated successfully + +🔍 DEBUG: resolve_variable: name='obj', local_vars=[]test value::tests::test_weak_reference_string_representation ... ok + +🔍 DEBUG: Checking GlobalBox for 'objtest interpreter::core::tests::test_arithmetic ... FAILED'... + +🔍 DEBUG: Found 'objtest interpreter::core::tests::test_if_statement ... ok' in GlobalBox + +🔍 DEBUG: Interpreter execution completed +🔍 execute_statement called with node type: "test interpreter::core::tests::test_simple_execution ... okAssignment" + +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: Statement 3 completed +🔍 DEBUG: Executing statement 4 of 4: Assignment +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 stdlib not initialized for method call +🔍 DEBUG: resolve_variable: name='a', local_vars=["me", "result", "c", "b", "a"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=201 +🔍 DEBUG: resolve_variable: name='obj', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'obj'... +🔍 DEBUG: Found 'obj' in GlobalBox +🔍 DEBUG: resolve_variable: name='b', local_vars=["me", "result", "c", "b", "a"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=215 +🔍 try_add_operation: left=IntegerBox, right=IntegerBox +🔍 After unwrap: left=IntegerBox, right=IntegerBox +🔍 Checking StringBox downcast... +🔍 StringBox downcast FAILED! +🔍 execute_statement called with node type: "Return" +❌ Interpreter error: Invalid operation: Addition not supported between IntegerBox and IntegerBox +🔍 DEBUG: resolve_variable: name='me', local_vars=["me"] +🔍 DEBUG: Found 'me' in local_vars +✅ RESOLVE_VARIABLE shared reference: me id=184 +🔍 DEBUG: Interpreter execution completed +✅ FIELD ACCESS: Returning shared reference id=21788 + 🏎️ VM: First run completed + +88 +🔍 execute_assignment: value expression evaluated successfully +🔍 DEBUG: Statement 488 + completed +🚀 Running benchmark: bench_medium +🔍 DEBUG: Interpreter execution completed +🔍 DEBUG: resolve_variable: name='obj', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'obj'... +🔍 DEBUG: Found 'obj' in GlobalBox +🔍 DEBUG: resolve_variable: name='result', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'result'... +🔍 DEBUG: Found 'result' in GlobalBox +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: test interpreter::core::tests::test_box_instance_creation ... okProgram + +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=236 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔗 DEBUG: Variable 'sum' set to 0 - simulating object drop +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "i", "temp", "me"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=238 +🔗 DEBUG: Old value being dropped: void +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "i", "temp", "me"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=249 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +❌ Interpreter error: Invalid operation: Multiplication not supported between IntegerBox and IntegerBox +🔍 DEBUG: Interpreter execution completed +140 + 🏎️ VM: First run completed +140 +140 +🚀 Running benchmark: bench_heavy +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=261 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='a', local_vars=["b", "i", "me", "result4", "h", "result3", "g", "f", "j", "c", "result1", "e", "a", "result5", "d", "result2"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=282 +🔍 DEBUG: resolve_variable: name='b', local_vars=["b", "i", "me", "result4", "h", "result3", "g", "f", "j", "c", "result1", "e", "a", "result5", "d", "result2"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=286 +❌ Interpreter error: Invalid operation: Multiplication not supported between IntegerBox and IntegerBox +🔍 DEBUG: Interpreter execution completed +6301391 + 🏎️ VM: First run completed +6301391 +6301391 + +📊 Nyash Performance Benchmark Results +===================================== +Iterations per test: 3 + +🎯 bench_heavy + Backend | Avg Time (ms) | Total Time (ms) | Speed Ratio + --------------|---------------|-----------------|------------ + VM | 0.700 | 2.1 | 1.00x + +🎯 bench_light + Backend | Avg Time (ms) | Total Time (ms) | Speed Ratio + --------------|---------------|-----------------|------------ + VM | 0.487 | 1.5 | 1.00x + +🎯 bench_medium + Backend | Avg Time (ms) | Total Time (ms) | Speed Ratio + --------------|---------------|-----------------|------------ + VM | 0.599 | 1.8 | 1.00x + +💡 Performance Summary: + 📈 Average across all benchmarks: + Interpreter: NaN ms + VM: 0.60 ms (NaNx faster than interpreter) + WASM: NaN ms (NaNx faster than interpreter) +test benchmarks::tests::test_benchmark_light ... ok + +failures: + +failures: + interpreter::core::tests::test_arithmetic + +test result: FAILED. 155 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.24s + +error: test failed, to rerun pass `--lib` diff --git a/test_run_output.txt b/test_run_output.txt new file mode 100644 index 00000000..aa37d8e0 --- /dev/null +++ b/test_run_output.txt @@ -0,0 +1,1140 @@ +warning: unused imports: `BasicBlockIdGenerator`, `BasicBlock`, `CompareOp`, `EffectMask`, `MirFunction`, and `ValueIdGenerator` + --> src/mir/loop_builder.rs:9:21 + | +9 | MirInstruction, BasicBlock, BasicBlockId, MirFunction, ValueId, + | ^^^^^^^^^^ ^^^^^^^^^^^ +10 | ConstValue, CompareOp, BasicBlockIdGenerator, ValueIdGenerator, EffectMask + | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: unused import: `HashSet` + --> src/mir/loop_builder.rs:13:33 + | +13 | use std::collections::{HashMap, HashSet}; + | ^^^^^^^ + +warning: unexpected `cfg` condition value: `llvm` + --> src/backend/mod.rs:13:7 + | +13 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + = note: `#[warn(unexpected_cfgs)]` on by default + +warning: unexpected `cfg` condition value: `llvm` + --> src/backend/mod.rs:23:7 + | +23 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unused import: `MirInstruction` + --> src/backend/vm_phi.rs:9:41 + | +9 | use crate::mir::{BasicBlockId, ValueId, MirInstruction}; + | ^^^^^^^^^^^^^^ + +warning: unused import: `super::Usize` + --> src/bid/types.rs:1:5 + | +1 | use super::Usize; + | ^^^^^^^^^^^^ + +warning: unused import: `std::os::raw::c_char` + --> src/bid/plugin_api.rs:2:5 + | +2 | use std::os::raw::c_char; + | ^^^^^^^^^^^^^^^^^^^^ + +warning: unused imports: `NyashHostVtable`, `NyashMethodInfo`, and `NyashPluginInfo` + --> src/bid/plugins/filebox/mod.rs:7:18 + | +7 | use crate::bid::{NyashPluginInfo, NyashMethodInfo, NyashHostVtable}; + | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ + +warning: unused imports: `SeekFrom` and `Seek` + --> src/bid/plugins/filebox/mod.rs:10:28 + | +10 | use std::io::{Read, Write, Seek, SeekFrom}; + | ^^^^ ^^^^^^^^ + +warning: unused imports: `c_char` and `c_void` + --> src/bid/plugins/filebox/mod.rs:11:20 + | +11 | use std::os::raw::{c_char, c_void}; + | ^^^^^^ ^^^^^^ + +warning: unused imports: `CStr` and `CString` + --> src/bid/plugins/filebox/mod.rs:13:16 + | +13 | use std::ffi::{CStr, CString}; + | ^^^^ ^^^^^^^ + +warning: unused import: `std::ffi::c_void` + --> src/bid/loader.rs:3:5 + | +3 | use std::ffi::c_void; + | ^^^^^^^^^^^^^^^^ + +warning: unused imports: `TlvDecoder` and `TlvEncoder` + --> src/bid/generic_plugin_box.rs:2:23 + | +2 | use crate::bid::tlv::{TlvEncoder, TlvDecoder}; + | ^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused import: `crate::bid::types::BidTag` + --> src/bid/generic_plugin_box.rs:3:5 + | +3 | use crate::bid::types::BidTag; + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `BoxBase` + --> src/runtime/plugin_loader_v2.rs:7:43 + | +7 | use crate::box_trait::{NyashBox, BoxCore, BoxBase, StringBox}; + | ^^^^^^^ + +warning: unused import: `std::ffi::c_void` + --> src/runtime/plugin_loader_v2.rs:11:5 + | +11 | use std::ffi::c_void; + | ^^^^^^^^^^^^^^^^ + +warning: unused variable: `registry` + --> src/box_factory/plugin.rs:53:13 + | +53 | let registry = get_global_registry(); + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_registry` + | + = note: `#[warn(unused_variables)]` on by default + +warning: unused variable: `args` + --> src/instance_v2.rs:147:28 + | +147 | pub fn init(&mut self, args: &[Box]) -> Result<(), String> { + | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` + +warning: unused variable: `nyash_value` + --> src/instance_v2.rs:289:21 + | +289 | if let Some(nyash_value) = self.fields_ng.lock().unwrap().get(field_name) { + | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nyash_value` + +warning: unused variable: `block_id` + --> src/mir/loop_builder.rs:246:39 + | +246 | fn mark_block_unsealed(&mut self, block_id: BasicBlockId) -> Result<(), String> { + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_id` + +warning: unused variable: `block_id` + --> src/mir/loop_builder.rs:273:49 + | +273 | fn get_variable_at_block(&self, name: &str, block_id: BasicBlockId) -> Option { + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_id` + +warning: unused variable: `dst` + --> src/backend/vm_phi.rs:48:9 + | +48 | dst: ValueId, + | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` + +warning: unused variable: `f` + --> src/bid/plugin_api.rs:167:36 + | +167 | pub fn with_alloc(mut self, f: F) -> Self + | ^ help: if this is intentional, prefix it with an underscore: `_f` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:167:26 + | +167 | pub fn with_alloc(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: unused variable: `f` + --> src/bid/plugin_api.rs:176:35 + | +176 | pub fn with_free(mut self, f: F) -> Self + | ^ help: if this is intentional, prefix it with an underscore: `_f` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:176:25 + | +176 | pub fn with_free(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `f` + --> src/bid/plugin_api.rs:183:34 + | +183 | pub fn with_log(mut self, f: F) -> Self + | ^ help: if this is intentional, prefix it with an underscore: `_f` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:183:24 + | +183 | pub fn with_log(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `args` + --> src/runtime/plugin_loader_v2.rs:236:46 + | +236 | pub fn create_box(&self, box_type: &str, args: &[Box]) -> BidResult> { + | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` + +warning: type `FileMode` is more private than the item `FileBoxRegistry::open` + --> src/bid/plugins/filebox/mod.rs:44:5 + | +44 | pub fn open(&mut self, path: &str, mode: FileMode) -> Result { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `FileBoxRegistry::open` is reachable at visibility `pub` + | +note: but type `FileMode` is only usable at visibility `pub(self)` + --> src/bid/plugins/filebox/mod.rs:29:1 + | +29 | enum FileMode { + | ^^^^^^^^^^^^^ + = note: `#[warn(private_interfaces)]` on by default + +warning: field `block_var_maps` is never read + --> src/mir/loop_builder.rs:35:5 + | +27 | pub struct LoopBuilder<'a> { + | ----------- field in this struct +... +35 | block_var_maps: HashMap>, + | ^^^^^^^^^^^^^^ + | + = note: `#[warn(dead_code)]` on by default + +warning: fields `type_name_holder` and `method_holders` are never read + --> src/bid/metadata.rs:148:5 + | +143 | pub struct PluginMetadata { + | -------------- fields in this struct +... +148 | type_name_holder: Option, + | ^^^^^^^^^^^^^^^^ +149 | method_holders: Vec<(NyashMethodInfo, CString)>, + | ^^^^^^^^^^^^^^ + +warning: fields `path` and `mode` are never read + --> src/bid/plugins/filebox/mod.rs:24:5 + | +22 | struct FileBoxState { + | ------------ fields in this struct +23 | file: File, +24 | path: String, + | ^^^^ +25 | mode: FileMode, + | ^^^^ + +warning: fields `box_types` and `init_fn` are never read + --> src/runtime/plugin_loader_v2.rs:20:5 + | +15 | pub struct LoadedPluginV2 { + | -------------- fields in this struct +... +20 | box_types: Vec, + | ^^^^^^^^^ +... +23 | init_fn: Option i32>, + | ^^^^^^^ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:62:9 + | +62 | self.add_predecessor(header_id, preheader_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled + = note: `#[warn(unused_must_use)]` on by default +help: use `let _ = ...` to ignore the resulting value + | +62 | let _ = self.add_predecessor(header_id, preheader_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:66:9 + | +66 | self.mark_block_unsealed(header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +66 | let _ = self.mark_block_unsealed(header_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:78:9 + | +78 | self.add_predecessor(body_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +78 | let _ = self.add_predecessor(body_id, header_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:79:9 + | +79 | self.add_predecessor(after_loop_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +79 | let _ = self.add_predecessor(after_loop_id, header_id); + | +++++++ + +warning: unused `Result` that must be used + --> src/mir/loop_builder.rs:93:9 + | +93 | self.add_predecessor(header_id, latch_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +93 | let _ = self.add_predecessor(header_id, latch_id); + | +++++++ + +warning: creating a shared reference to mutable static + --> src/bid/plugins/filebox/mod.rs:102:12 + | +102 | if FILEBOX_REGISTRY.is_none() { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static + | + = note: for more information, see + = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives + = note: `#[warn(static_mut_refs)]` on by default + +warning: creating a shared reference to mutable static + --> src/bid/plugins/filebox/mod.rs:105:9 + | +105 | FILEBOX_REGISTRY.as_ref().unwrap().clone() + | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static + | + = note: for more information, see + = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives + +warning: unused imports: `BoolBox`, `IntegerBox`, and `StringBox` + --> src/ast.rs:885:28 + | +885 | use crate::box_trait::{StringBox, IntegerBox, BoolBox}; + | ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: unused import: `Mutex` + --> src/instance_v2.rs:387:26 + | +387 | use std::sync::{Arc, Mutex}; + | ^^^^^ + +warning: unused imports: `BasicBlockIdGenerator`, `BasicBlock`, `CompareOp`, `EffectMask`, `MirFunction`, and `ValueIdGenerator` + --> src/mir/loop_builder.rs:9:21 + | +9 | MirInstruction, BasicBlock, BasicBlockId, MirFunction, ValueId, + | ^^^^^^^^^^ ^^^^^^^^^^^ +10 | ConstValue, CompareOp, BasicBlockIdGenerator, ValueIdGenerator, EffectMask + | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused import: `BasicBlock` + --> src/mir/verification.rs:311:75 + | +311 | use crate::mir::{MirFunction, FunctionSignature, MirType, EffectMask, BasicBlock}; + | ^^^^^^^^^^ + +warning: unused imports: `BasicBlock`, `EffectMask`, `FunctionSignature`, `MirFunction`, `MirModule`, and `MirType` + --> src/backend/vm.rs:860:22 + | +860 | use crate::mir::{MirModule, MirFunction, FunctionSignature, MirType, EffectMask, BasicBlock}; + | ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused imports: `BidHandle` and `BoxTypeId` + --> src/runtime/tests.rs:10:22 + | +10 | use crate::bid::{BidHandle, BoxTypeId}; + | ^^^^^^^^^ ^^^^^^^^^ + +warning: variable does not need to be mutable + --> src/mir/basic_block.rs:314:13 + | +314 | let mut bb = BasicBlock::new(bb_id); + | ----^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: unused variable: `child` + --> src/mir/ownership_verifier_simple.rs:313:13 + | +313 | let child = value_gen.next(); + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_child` + +warning: variable does not need to be mutable + --> src/bid/plugin_api.rs:167:26 + | +167 | pub fn with_alloc(mut self, f: F) -> Self + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `config` + --> src/config/nyash_toml_v2.rs:179:13 + | +179 | let config: toml::Value = toml::from_str(toml_str).unwrap(); + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` + +warning: unused variable: `nyash_config` + --> src/config/nyash_toml_v2.rs:180:13 + | +180 | let nyash_config = NyashConfigV2::from_file("test.toml"); + | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nyash_config` + +warning: variable does not need to be mutable + --> src/tests/box_tests.rs:11:13 + | +11 | let mut array = ArrayBox::new(); + | ----^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tests/box_tests.rs:90:13 + | +90 | let mut stream = NyashStreamBox::from_data(vec![72, 101, 108, 108, 111]); // "Hello" + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: `nyash-rust` (lib) generated 41 warnings (run `cargo fix --lib -p nyash-rust` to apply 17 suggestions) +warning: `nyash-rust` (lib test) generated 52 warnings (39 duplicates) (run `cargo fix --lib -p nyash-rust --tests` to apply 10 suggestions) +warning: unexpected `cfg` condition value: `mir-v2` + --> tests/mir_phase8_5_hierarchical_25_instructions.rs:7:8 + | +7 | #![cfg(feature = "mir-v2")] + | ^^^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `mir-v2` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + = note: `#[warn(unexpected_cfgs)]` on by default + +warning: unexpected `cfg` condition value: `llvm` + --> src/runner.rs:22:7 + | +22 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unexpected `cfg` condition value: `llvm` + --> src/runner.rs:503:15 + | +503 | #[cfg(feature = "llvm")] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unexpected `cfg` condition value: `llvm` + --> src/runner.rs:526:19 + | +526 | #[cfg(not(feature = "llvm"))] + | ^^^^^^^^^^^^^^^^ + | + = note: expected values for `feature` are: `all-examples`, `cli`, `default`, `dynamic-file`, `gui`, `gui-examples`, and `wasm-backend` + = help: consider adding `llvm` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: variable does not need to be mutable + --> src/runner.rs:286:17 + | +286 | let mut printer = if self.config.mir_verbose { + | ----^^^^^^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: type `FileMode` is more private than the item `bid::plugins::filebox::FileBoxRegistry::open` + --> src/bid/plugins/filebox/mod.rs:44:5 + | +44 | pub fn open(&mut self, path: &str, mode: FileMode) -> Result { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `bid::plugins::filebox::FileBoxRegistry::open` is reachable at visibility `pub` + | +note: but type `FileMode` is only usable at visibility `pub(self)` + --> src/bid/plugins/filebox/mod.rs:29:1 + | +29 | enum FileMode { + | ^^^^^^^^^^^^^ + = note: `#[warn(private_interfaces)]` on by default + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:62:9 + | +62 | self.add_predecessor(header_id, preheader_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled + = note: `#[warn(unused_must_use)]` on by default +help: use `let _ = ...` to ignore the resulting value + | +62 | let _ = self.add_predecessor(header_id, preheader_id); + | +++++++ + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:66:9 + | +66 | self.mark_block_unsealed(header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +66 | let _ = self.mark_block_unsealed(header_id); + | +++++++ + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:78:9 + | +78 | self.add_predecessor(body_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +78 | let _ = self.add_predecessor(body_id, header_id); + | +++++++ + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:79:9 + | +79 | self.add_predecessor(after_loop_id, header_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +79 | let _ = self.add_predecessor(after_loop_id, header_id); + | +++++++ + +warning: unused `std::result::Result` that must be used + --> src/mir/loop_builder.rs:93:9 + | +93 | self.add_predecessor(header_id, latch_id); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this `Result` may be an `Err` variant, which should be handled +help: use `let _ = ...` to ignore the resulting value + | +93 | let _ = self.add_predecessor(header_id, latch_id); + | +++++++ + +warning: unused import: `std::collections::HashMap` + --> tests/integration_tests.rs:9:5 + | +9 | use std::collections::HashMap; + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: function `execute_nyash_code` is never used + --> tests/integration_tests.rs:12:4 + | +12 | fn execute_nyash_code(code: &str) -> Result { + | ^^^^^^^^^^^^^^^^^^ + | + = note: `#[warn(dead_code)]` on by default + +warning: unused import: `BoxCore` + --> src/main.rs:71:32 + | +71 | use box_trait::{StringBox, BoxCore, NyashBox}; + | ^^^^^^^ + +warning: variable does not need to be mutable + --> src/runner.rs:286:17 + | +286 | let mut printer = if self.config.mir_verbose { + | ----^^^^^^^ + | | + | help: remove this `mut` + +warning: unused import: `VMValue` + --> tests/mir_phase6_vm_ref_ops.rs:11:31 + | +11 | use nyash_rust::backend::{VM, VMValue}; + | ^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + +warning: unused import: `NyashBox` + --> tests/mir_phase6_vm_ref_ops.rs:12:41 + | +12 | use nyash_rust::box_trait::{IntegerBox, NyashBox}; + | ^^^^^^^^ + +warning: unused variable: `vm` + --> tests/mir_phase6_vm_ref_ops.rs:139:13 + | +139 | let mut vm = VM::new(); + | ^^ help: if this is intentional, prefix it with an underscore: `_vm` + | + = note: `#[warn(unused_variables)]` on by default + +warning: variable does not need to be mutable + --> tests/mir_phase6_vm_ref_ops.rs:139:9 + | +139 | let mut vm = VM::new(); + | ----^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` on by default + +warning: struct `NyashNotepad` is never constructed + --> examples/simple_notepad_win.rs:58:8 + | +58 | struct NyashNotepad { + | ^^^^^^^^^^^^ + | + = note: `NyashNotepad` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis + = note: `#[warn(dead_code)]` on by default + +warning: associated function `new` is never used + --> examples/simple_notepad_win.rs:64:8 + | +63 | impl NyashNotepad { + | ----------------- associated function in this implementation +64 | fn new() -> Self { + | ^^^ + +warning: `nyash-rust` (test "mir_phase8_5_hierarchical_25_instructions") generated 1 warning +warning: `nyash-rust` (bin "nyash") generated 45 warnings (35 duplicates) (run `cargo fix --bin "nyash"` to apply 1 suggestion) +warning: `nyash-rust` (test "integration_tests") generated 2 warnings (run `cargo fix --test "integration_tests"` to apply 1 suggestion) +warning: `nyash-rust` (bin "nyash" test) generated 55 warnings (53 duplicates) (run `cargo fix --bin "nyash" --tests` to apply 2 suggestions) +warning: `nyash-rust` (test "mir_phase6_vm_ref_ops") generated 4 warnings (run `cargo fix --test "mir_phase6_vm_ref_ops"` to apply 2 suggestions) +warning: `nyash-rust` (example "simple_notepad_win") generated 2 warnings + Finished `test` profile [unoptimized + debuginfo] target(s) in 2.26s + Running unittests src/lib.rs (target/debug/deps/nyash_rust-027bd4c76143e77b) + +running 156 tests +test box_arithmetic::tests::test_modulo_box ... ok +test bid::types::tests::test_handle_packing ... ok +🚀 Running benchmark: bench_light +test box_arithmetic::tests::test_add_box_integers ... ok +test box_arithmetic::tests::test_compare_box ... ok +test box_arithmetic::tests::test_multiply_box ... ok +test box_arithmetic::tests::test_modulo_chip8_pattern ... ok +test bid::metadata::tests::test_host_vtable ... ok +test bid::types::tests::test_arg_type_mapping ... ok +test bid::tlv::tests::test_encode_decode_primitives ... ok +test box_operators::tests::test_boolean_arithmetic ... ok +test bid::tlv::tests::test_encode_decode_handle ... ok +test bid::metadata::tests::test_plugin_metadata_creation ... ok +test box_arithmetic::tests::test_subtract_box ... ok +test backend::vm::tests::test_basic_vm_execution ... ok +test bid::plugin_api::tests::test_plugin_handle ... ok +test backend::vm::tests::test_binary_operations ... ok +test backend::vm_phi::tests::test_phi_selection ... ok +test ast::tests::test_method_call ... ok +test ast::tests::test_binary_operator ... ok +test ast::tests::test_ast_node_creation ... ok +test box_operators::tests::test_dynamic_addition ... ok +test box_arithmetic::tests::test_add_box_strings ... ok +test bid::types::tests::test_type_tags ... ok +test box_operators::tests::test_integer_addition ... ok +test box_arithmetic::tests::test_divide_box ... ok +test box_factory::tests::test_registry_creation ... ok +test box_operators::tests::test_can_add_with ... ok +test box_operators::tests::test_string_concatenation ... ok +test box_arithmetic::tests::test_modulo_by_zero ... ok +test box_arithmetic::tests::test_divide_by_zero ... ok +test box_operators::tests::test_string_repetition ... ok +test box_trait::tests::test_add_box_integers ... ok +test ast::tests::test_complex_ast ... ok🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: +Program +test box_trait::tests::test_add_box_strings ... ok🔍 DEBUG: Executing program with 1 + statements +🔍 DEBUG: Executing statement test box_trait::tests::test_bool_box_creation ... 1 of ok1: +BoxDeclaration +Instance: StringBox +🔍 execute_statement called with node type: "Instance: MyBox +BoxDeclaration"test ast::tests::test_binary_operation ... ok + +🔍 DEBUG: Starting interpreter execution... +test box_trait::tests::test_box_equality ... ok🔍 DEBUG: execute_node called with node type: Program + +🔍 DEBUG: Executing program with test box_trait::tests::test_box_ids_unique ... ok1 statements + +🔍 DEBUG: Executing statement 1test box_trait::tests::test_integer_box_creation ... ok of 1 +: Assignmenttest bid::bridge::tests::test_string_box_bid_conversion ... ok + +🔍 execute_statement called with node type: "test bid::bridge::tests::test_integer_box_bid_conversion ... okAssignment" + +test box_trait::tests::test_string_box_creation ... ok🔍 About to call execute_assignment... + +thread 'config::nyash_toml_v2::tests::test_parse_v2_config +🔍 execute_assignment called, evaluating value expression... +' panicked at src/config/nyash_toml_v2.rstest bid::bridge::tests::test_box_registry ... ok🔍 execute_new called for class: IntegerBox:179 +, with 1:60test box_trait::tests::test_void_box ... ok arguments +: +called `Result::unwrap()` on an `Err` value: TomlError { message: "invalid inline table\nexpected `}`", raw: Some("\n[libraries]\n\"libnyash_filebox_plugin.so\" = {\n boxes = [\"FileBox\"],\n path = \"./target/release/libnyash_filebox_plugin.so\"\n}\n\n[libraries.\"libnyash_filebox_plugin.so\".FileBox]\ntype_id = 6\nabi_version = 1\n\n[libraries.\"libnyash_filebox_plugin.so\".FileBox.methods]\nbirth = { method_id = 0 }\nopen = { method_id = 1 }\nclose = { method_id = 4 }\n"), keys: [], span: Some(45..46) } +🔍 Trying unified registry for class: IntegerBox +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace +test boxes::null_box::tests::test_get_or_default ... ok + +🔍 DEBUG: Starting interpreter execution... +test boxes::null_box::tests::test_null_check ... ok🔍 DEBUG: execute_node called with node type: Program + +test boxes::null_box::tests::test_null_creation ... 🔍 DEBUG: Executing program with 2ok + statements +test boxes::null_box::tests::test_null_equality ... ok🔍 DEBUG: Executing statement 1 + of 2test bid::bridge::tests::test_future_box_bid_conversion ... ok: Assignment + +test cli::tests::test_default_config ... ok🔍 execute_statement called with node type: " +Assignment"test cli::tests::test_parse_debug_fuel ... ok + +🔍 About to call execute_assignment... +test environment::tests::test_error_handling ... ok🔍 execute_assignment called, evaluating value expression... + +🔍 execute_new called for class: BoolBoxtest environment::tests::test_global_environment ... ok, with 1 + arguments +test environment::tests::test_nested_scopes ... ok +thread 'mir::effect::tests::test_effect_union' panicked at src/mir/effect.rs:312:9: +assertion failed: !combined.is_parallel_safe() +🔍 Trying unified registry for class: BoolBox + +test environment::tests::test_python_compat ... ok🔍 DEBUG: Starting interpreter execution... + +🔍 DEBUG: execute_node called with node type: Programtest environment::tests::test_scope_info ... ok +🔍 DEBUG: Executing program with +4 statements +test environment::tests::test_variable_setting ... ok🔍 DEBUG: Executing statement 1 + of 4test environment::tests::test_variable_shadowing ... ok: BoxDeclaration + +test finalization::tests::test_finalization_tracking ... ok🔍 execute_statement called with node type: " +BoxDeclaration"test instance_v2::tests::test_field_operations ... ok + +🌍 statics namespace created in GlobalBox successfully +test instance_v2::tests::test_from_any_box_creation ... ok🔥 Static Box 'Main +' definition registered in statics namespace +test instance_v2::tests::test_from_declaration_creation ... ok🔍 DEBUG: Starting interpreter execution... + +🔍 DEBUG: execute_node called with node type: Programtest bid::plugins::filebox::tests::test_filebox_plugin ... ok + +🔍 DEBUG: Executing program with 2test instance_v2::tests::test_unified_approach ... ok statements + +🔍 DEBUG: Executing statement 1test mir::basic_block::tests::test_basic_block_creation ... ok of 2 +: Assignmenttest mir::basic_block::tests::test_basic_block_id_generator ... ok + +🔍 execute_statement called with node type: "test mir::basic_block::tests::test_branch_successors ... okAssignment" + +test mir::basic_block::tests::test_instruction_addition ... ok🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +test mir::basic_block::tests::test_phi_instruction_ordering ... ok🔍 execute_new called for class: IntegerBox +, with 1test mir::basic_block::tests::test_terminator_addition ... ok arguments + +🔍 Trying unified registry for class: IntegerBoxtest mir::basic_block::tests::test_value_tracking ... ok + +🔍 DEBUG: Statement 1test mir::builder::tests::test_binary_op_building ... ok completed + +🔍 DEBUG: Statement 1test mir::builder::tests::test_if_statement_building ... ok completed + +🔍 DEBUG: Executing statement 2test mir::builder::tests::test_literal_building ... ok of 4 +: Assignmenttest mir::effect::tests::test_effect_combination ... ok + +🔍 execute_statement called with node type: "test mir::effect::tests::test_effect_display ... okAssignment" + +test mir::effect::tests::test_effect_mask_creation ... ok🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +test mir::effect::tests::test_effect_names ... ok🔍 execute_new called for class: TestBox +, with 0test mir::effect::tests::test_parallel_safety ... ok arguments + +🔍 Trying unified registry for class: TestBoxtest mir::function::tests::test_function_creation ... ok + +🏭 Unified registry created: IntegerBoxtest mir::function::tests::test_function_stats ... ok +thread 'mir::tests::test_mir_dump' panicked at src/mir/mod.rs:116:9: +MIR dump should contain function information + + +🌍 statics namespace already exists - skipping creation +test mir::function::tests::test_module_creation ... ok🔍 execute_new called for class: IntegerBox +, with 1test mir::function::tests::test_value_id_generation ... ok arguments + +🔍 Trying unified registry for class: IntegerBoxtest mir::instruction::tests::test_barrier_instructions ... ok + +🔥 Static box 'Maintest mir::instruction::tests::test_binop_instruction ... ok' instance registered in statics namespace + +🏭 Unified registry created: BoolBoxtest mir::instruction::tests::test_call_instruction ... ok + +🔍 execute_statement called with node type: "test mir::instruction::tests::test_const_instruction ... okMethodCall" + +test mir::effect::tests::test_effect_union ... FAILED🔍 execute_assignment: value expression evaluated successfully + +🏭 Unified registry created: IntegerBoxtest config::nyash_toml_v2::tests::test_parse_v2_config ... FAILED + +🔍 DEBUG: resolve_variable: name='statics', local_vars=[]test mir::instruction::tests::test_extern_call_instruction ... ok + +🔍 DEBUG: Checking GlobalBox for 'staticstest mir::instruction::tests::test_ref_get_instruction ... ok'... + +🔍 DEBUG: Found 'staticstest mir::instruction::tests::test_ref_new_instruction ... ok' in GlobalBox + +🏭 Unified registry created: TestBoxtest mir::instruction::tests::test_ref_set_instruction ... ok + +🔍 DEBUG: Interpreter execution completed +test mir::instruction::tests::test_weak_load_instruction ... ok🔍 execute_assignment: value expression evaluated successfully + +thread 'interpreter::core::tests::test_if_statement' panicked at src/interpreter/core.rs:608:34: +called `Result::unwrap()` on an `Err` value: UndefinedVariable { name: "x\n💡 Suggestion: Declare the variable first:\n • For fields: Add 'x' to 'init { }' block\n • For local variables: Use 'local x'\n • For field access: Use 'me.x'" } + +✅ FIELD ACCESS: Returning shared reference id=151test mir::instruction::tests::test_weak_new_instruction ... ok + +🔍 execute_assignment: value expression evaluated successfully +test mir::instruction_v2::tests::test_effect_categories ... ok🏭 Unified registry created: IntegerBox + +test mir::instruction_v2::tests::test_instruction_count ... ok🔍 try_add_operation: left=IntegerBox +, right=IntegerBoxtest mir::instruction_v2::tests::test_ownership_operations ... ok + +🔍 After unwrap: left=IntegerBoxtest mir::ownership_verifier_simple::tests::test_basic_ref_set ... ok, right=IntegerBox + +test mir::ownership_verifier_simple::tests::test_ownership_forest_basic ... ok🔍 Checking StringBox downcast... + +🔍 StringBox downcast FAILED! +test mir::ownership_verifier_simple::tests::test_weak_reference_tracking ... ok🔍 execute_statement called with node type: " +Local"test mir::printer::tests::test_empty_module_printing ... ok + +🔍 DEBUG: Interpreter execution completed +test mir::printer::tests::test_function_printing ... ok🔍 DEBUG: Interpreter execution completed + +thread 'interpreter::core::tests::test_box_instance_creation' panicked at src/interpreter/core.rs:637:34: +called `Result::unwrap()` on an `Err` value: UndefinedVariable { name: "obj\n💡 Suggestion: Declare the variable first:\n • For fields: Add 'obj' to 'init { }' block\n • For local variables: Use 'local obj'\n • For field access: Use 'me.obj'" } + +🔍 DEBUG: Interpreter execution completed + +thread 'interpreter::core::tests::test_simple_execution' panicked at src/interpreter/core.rs:577:9: +assertion failed: result.is_ok() +test mir::printer::tests::test_verbose_printing ... ok🔍 execute_statement called with node type: " +thread 'interpreter::core::tests::test_arithmetic' panicked at src/interpreter/core.rs:588:34: +called `Result::unwrap()` on an `Err` value: InvalidOperation { message: "Addition not supported between IntegerBox and IntegerBox" } + +Assignment"test mir::tests::test_basic_mir_compilation ... ok +🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: test mir::tests::test_loop_compilation ... okIntegerBox +, with 1test mir::tests::test_mir_dump ... FAILED arguments +🔍 Trying unified registry for class: +IntegerBox +test mir::tests::test_throw_compilation ... ok +thread 'tokenizer::tests::test_comments' panicked at src/tokenizer.rs:616:9: +assertion `left == right` failed + left: 6 + right: 4 +🏭 Unified registry created: IntegerBox + +🔍 execute_assignment: value expression evaluated successfully +test mir::tests::test_try_catch_compilation ... ok🔍 execute_statement called with node type: " +Assignment"test mir::value_id::tests::test_local_id_creation ... ok +🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: test mir::value_id::tests::test_local_id_generator ... okIntegerBox, with +1 arguments +test mir::value_id::tests::test_value_id_creation ... ok +thread 'tokenizer::tests::test_line_numbers' panicked at src/tokenizer.rs:601:9: +assertion `left == right` failed + left: 1 + right: 2 +🔍 Trying unified registry for class: IntegerBox + +test mir::value_id::tests::test_value_id_generator ... ok🏭 Unified registry created: IntegerBox + +🔍 execute_assignment: value expression evaluated successfully +test mir::value_id::tests::test_value_id_ordering ... ok🔍 execute_statement called with node type: " +Assignment"test mir::verification::tests::test_undefined_value_detection ... ok +🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: test mir::verification::tests::test_valid_function_verification ... okIntegerBox, with +1 arguments +test runtime::box_registry::tests::test_builtin_registration ... ok🔍 Trying unified registry for class: IntegerBox + +test runtime::box_registry::tests::test_plugin_override ... ok🏭 Unified registry created: IntegerBox + +🔍 execute_assignment: value expression evaluated successfully +test runtime::plugin_config::tests::test_parse_empty_config ... ok🔍 execute_statement called with node type: " +Assignment"test runtime::plugin_config::tests::test_parse_simple_config ... ok +🔍 About to call execute_assignment... + +🔍 execute_assignment called, evaluating value expression... +test interpreter::core::tests::test_if_statement ... FAILED +🔍 DEBUG: resolve_variable: name='a', local_vars=["a", "b", "me", "c", "result"]test runtime::plugin_config::tests::test_parse_with_comments ... ok +🔍 DEBUG: Found ' +a' in local_vars +test runtime::tests::tests::test_box_registry_builtin ... ok✅ RESOLVE_VARIABLE shared reference: a + id=202test runtime::tests::tests::test_box_registry_plugin_override ... ok + +🔍 DEBUG: resolve_variable: name='b', local_vars=["a", "b", "me", "c", "result"]test runtime::tests::tests::test_multiple_plugin_types ... ok +🔍 DEBUG: Found ' +b' in local_vars +test runtime::tests::tests::test_plugin_config_parsing ... ok✅ RESOLVE_VARIABLE shared reference: b +test runtime::tests::tests::test_transparent_box_switching ... id=206ok + +🔍 try_add_operation: left=test tests::box_tests::tests::test_array_box_nyash_trait ... okIntegerBox, right= +test tests::box_tests::tests::test_box_id_uniqueness ... IntegerBox +ok +🔍 After unwrap: left=IntegerBoxtest tests::box_tests::tests::test_buffer_box_nyash_trait ... ok, right=IntegerBox +test interpreter::core::tests::test_box_instance_creation ... +🔍 Checking StringBox downcast... +FAILED +🔍 StringBox downcast FAILED! +test tests::box_tests::tests::test_future_box_nyash_trait ... ok +🔍 DEBUG: Interpreter execution completed +test interpreter::core::tests::test_simple_execution ... FAILED +test interpreter::core::tests::test_arithmetic ... FAILED +test tests::box_tests::tests::test_result_box_nyash_trait ... ok +test tests::box_tests::tests::test_json_box_nyash_trait ... ok +test tokenizer::tests::test_comments ... FAILED +test tokenizer::tests::test_complex_code ... ok +test tokenizer::tests::test_error_handling ... ok +test tests::box_tests::tests::test_stream_box_nyash_trait ... ok +test tokenizer::tests::test_identifier ... ok +test tokenizer::tests::test_line_numbers ... FAILED +test tokenizer::tests::test_number_literal ... ok +88 + 🏎️ VM: First run completed +test tokenizer::tests::test_operators ... ok +88 +test tokenizer::tests::test_simple_tokens ... ok +88 +🚀 Running benchmark: bench_medium +test tokenizer::tests::test_string_literal ... ok +test value::tests::test_basic_creation ... ok +test value::tests::test_cross_type_equality ... ok +test value::tests::test_object_creation ... ok +test value::tests::test_type_conversion ... ok +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: test value::tests::test_type_names ... okProgram + +🔍 DEBUG: Executing program with 1test value::tests::test_weak_reference_basic ... ok statements +🔍 DEBUG: Executing statement +1 of test value::tests::test_weak_reference_drop ... ok1: +BoxDeclaration +test value::tests::test_weak_reference_equality ... ok🔍 execute_statement called with node type: " +BoxDeclaration"test value::tests::test_weak_reference_string_representation ... ok + +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=223 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔗 DEBUG: Variable 'sum' set to 0 - simulating object drop +🔍 DEBUG: resolve_variable: name='sum', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'sum' in local_vars +✅ RESOLVE_VARIABLE shared reference: sum id=225 +🔗 DEBUG: Old value being dropped: void +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='i', local_vars=["sum", "i", "me", "temp"] +🔍 DEBUG: Found 'i' in local_vars +✅ RESOLVE_VARIABLE shared reference: i id=236 +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 DEBUG: Interpreter execution completed +140 + 🏎️ VM: First run completed +140 +140 +🚀 Running benchmark: bench_heavy +🔍 DEBUG: Starting interpreter execution... +🔍 DEBUG: execute_node called with node type: Program +🔍 DEBUG: Executing program with 1 statements +🔍 DEBUG: Executing statement 1 of 1: BoxDeclaration +🔍 execute_statement called with node type: "BoxDeclaration" +🌍 statics namespace created in GlobalBox successfully +🔥 Static Box 'Main' definition registered in statics namespace +🔍 DEBUG: Statement 1 completed +🌍 statics namespace already exists - skipping creation +🔥 Static box 'Main' instance registered in statics namespace +🔍 execute_statement called with node type: "MethodCall" +🔍 DEBUG: resolve_variable: name='statics', local_vars=[] +🔍 DEBUG: Checking GlobalBox for 'statics'... +🔍 DEBUG: Found 'statics' in GlobalBox +✅ FIELD ACCESS: Returning shared reference id=248 +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Local" +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 execute_new called for class: IntegerBox, with 1 arguments +🔍 Trying unified registry for class: IntegerBox +🏭 Unified registry created: IntegerBox +🔍 execute_assignment: value expression evaluated successfully +🔍 execute_statement called with node type: "Assignment" +🔍 About to call execute_assignment... +🔍 execute_assignment called, evaluating value expression... +🔍 DEBUG: resolve_variable: name='a', local_vars=["me", "result1", "f", "result2", "i", "result4", "b", "e", "g", "a", "h", "d", "result5", "result3", "c", "j"] +🔍 DEBUG: Found 'a' in local_vars +✅ RESOLVE_VARIABLE shared reference: a id=269 +🔍 DEBUG: resolve_variable: name='b', local_vars=["me", "result1", "f", "result2", "i", "result4", "b", "e", "g", "a", "h", "d", "result5", "result3", "c", "j"] +🔍 DEBUG: Found 'b' in local_vars +✅ RESOLVE_VARIABLE shared reference: b id=273 +🔍 DEBUG: Interpreter execution completed +6301391 + 🏎️ VM: First run completed +6301391 +6301391 + +📊 Nyash Performance Benchmark Results +===================================== +Iterations per test: 3 + +🎯 bench_light + Backend | Avg Time (ms) | Total Time (ms) | Speed Ratio + --------------|---------------|-----------------|------------ + VM | 2.171 | 6.5 | 1.00x + +🎯 bench_medium + Backend | Avg Time (ms) | Total Time (ms) | Speed Ratio + --------------|---------------|-----------------|------------ + VM | 0.561 | 1.7 | 1.00x + +🎯 bench_heavy + Backend | Avg Time (ms) | Total Time (ms) | Speed Ratio + --------------|---------------|-----------------|------------ + VM | 0.601 | 1.8 | 1.00x + +💡 Performance Summary: + 📈 Average across all benchmarks: + Interpreter: NaN ms + VM: 1.11 ms (NaNx faster than interpreter) + WASM: NaN ms (NaNx faster than interpreter) +test benchmarks::tests::test_benchmark_light ... ok + +failures: + +failures: + config::nyash_toml_v2::tests::test_parse_v2_config + interpreter::core::tests::test_arithmetic + interpreter::core::tests::test_box_instance_creation + interpreter::core::tests::test_if_statement + interpreter::core::tests::test_simple_execution + mir::effect::tests::test_effect_union + mir::tests::test_mir_dump + tokenizer::tests::test_comments + tokenizer::tests::test_line_numbers + +test result: FAILED. 147 passed; 9 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.23s + +error: test failed, to rerun pass `--lib`