[TS] Normalize negative indices in Array.fill
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 72/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- kotlin, node.js, typescript
- 領域
- devtools, testing-qa
研究方向
Start at the Fill negative-index TODO in usvm-ts/src/main/kotlin/org/usvm/machine/expr/CallApproximations.kt, lines 495-520, and run the minimal TypeScript example against concrete Node.js behavior. Trace how symbolic indices are represented and how approximation results are classified. Done means a focused symbolic test covers the supported case without claiming exact semantics, while unsupported operands or environments remain explicit.
由索引模型根據 Issue 內容生成。
描述
Problem
The Array.fill approximation explicitly leaves negative start and end indices unsupported.
Minimal TypeScript example
export function fill(): number[] {
return [1, 2, 3].fill(9, -2);
}
Expected behavior
fill() returns [1, 9, 9]. Normalize negative indices relative to length and clamp to the valid interval, including symbolic indices in the supported domain.
Current source evidence
Checked against USVM main 53dce8f3bca2713642c783ba8308a6a360a9e516. This exact snippet is a proposed regression from source audit; it has not yet been run as a new end-to-end test. #368 audits the existing call approximations but does not implement these individual fixes.
Acceptance criteria
- A focused test checks the symbolic outcome without reporting an approximation as exact semantics.
- The supported case agrees with concrete TypeScript/Node.js replay.
- Unsupported operand or environment cases remain explicit.
- 主要語言
- Kotlin
- 星號
- 33
- 分支
- 27
- 平均合併
- 4 天 1 小時
- 30 天內合併 PR
- 84
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
UnitTestBot/usvm 的其他 Issue
-
[TS PBT] Save campaign-file artifacts before stdout publication可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 74/100
UnitTestBot/usvm#612 ·
維護者通常 1 天內回覆
-
[TS PBT] Preserve class verification after expected PBT budget expiry可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 5/5 一週以上 新手友好度 18/100
UnitTestBot/usvm#618 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 25/100
UnitTestBot/usvm#613 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 43/100
UnitTestBot/usvm#604 ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 25/100
UnitTestBot/usvm#592 ·
維護者通常 1 天內回覆
相似的 Issue
-
enhancement needs-triage
難度 1/5 1 小時以內 新手友好度 78/100
facebook/facebook-android-sdk#1418 ·
-
advisor
難度 2/5 1-3 小時 新手友好度 77/100
oss-review-toolkit/ort#12667 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 65/100
open-learning-exchange/myplanet#18413 ·
維護者通常 2 天內回覆
-
Mikrokosmos Fansub: Url and theme changed可能已有人在做 @FranPratama 今天認領。 未關閉Bug Domain changed
難度 2/5 1-3 小時 新手友好度 66/100
keiyoushi/extensions-source#20459 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
pedroSG94/RootEncoder#2224 ·
維護者通常 2 天內回覆