0xMiden / 0xMiden/compiler

native/MASM divergence for `i64::checked_mul`

未關閉
#1,144 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Rust
星號
115
分支
84
平均合併
1 天 8 小時
30 天內合併 PR
15

描述

Reproduction requires #1140

```sh
cargo nextest run -p midenc-integration-tests \
--run-ignored all \
-E 'test(/checked_mul_i64_edge_case/)'
```

```
thread 'end_to_end::arithmetic::checked_mul_i64_edge_cases' (188951) panicked at tests/integration/src/end_to_end/arithmetic.rs:1082:13:
Found minimal(shrinked) failing case: (-4611686018427387904, 2)
Failure: Reason("assertion failed: `(left == right)` \n left: `[0, 0, 0, 0, 0, 0, 0, 128, 1]`, \n right: `[0, 0, 0, 0, 0, 0, 0, 128, 0]`: VM output mismatch at tests/integration/src/end_to_end/arithmetic.rs:1075")
```

貢獻指南

開啟貢獻指南

研究方向

失敗的測試位於 tests/integration/src/end_to_end/arithmetic.rs 第 1082 行。執行提供的 cargo nextest 命令,以重現 i64::checked_mul 在輸入 (-4611686018427387904, 2) 時原生實作與 MASM 實作之間的差異。檢查編譯器針對帶檢查的乘法運算的程式碼生成,重點關注 64 位元整數的溢位處理。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
rust
領域
compilers
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。