SMOD description
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- ドキュメント
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
調査の方向性
リンク先のevm.codesのCancun opcodeページにあるSMODの説明から始め、オーバーフローに関する記述をYellow Paperと比較します。必要に応じて、リンク先のopSmodおよびSmodの実装を調べ、問題となっている動作を理解します。SMODの説明にその記述を含めるべきかどうかを解決し、それに応じて文言を更新できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
https://www.evm.codes/?fork=cancun#07:
Note the overflow semantic when $−2^{255}$ is negated.
This is a controversial statement for this opcode.
There is no such statement in https://ethereum.github.io/yellowpaper/paper.pdf.
If needed, you may look deeper into implementation details:
-
opSdiv: https://github.com/ethereum/go-ethereum/blob/master/core/vm/instructions.go#L53
-
Sdiv: https://github.com/holiman/uint256/blob/master/uint256.go#L789
-
opSmod: https://github.com/ethereum/go-ethereum/blob/master/core/vm/instructions.go#L65
-
Smod: https://github.com/holiman/uint256/blob/master/uint256.go#L662C1-L682C2
The main point is that SDIV comment—
"Note the overflow semantic when $−2^{255}$ is negated."—
refers to an overflow case.
In contrast, SMOD does not overflow because its arithmetic logic disregards the sign of the second operand.
- 主要言語
- TypeScript
- スター
- 833
- フォーク
- 197
- 平均マージ
- 5分
- マージ済み PR(30日)
- 2
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
duneanalytics/evm.codes のほかの issue
-
improvement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
duneanalytics/evm.codes#184 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
duneanalytics/evm.codes#416 ·
-
## PR Summaryオープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
duneanalytics/evm.codes#413 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
duneanalytics/evm.codes#411 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
duneanalytics/evm.codes#407 ·
duneanalytics/evm.codes の issue をすべて見る
似ている issue
-
Translate the appオープンgood first issue help wanted
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
Mikiyas-Meles-Assefa/opensourcebook#154 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
rowbinary: typeStringToReader keeps Variant members in text order, so Variant(Int64, Float64) reads 7 as 3.5e-323対応中かも @rwits08 が今日担当しました。 オープンbug data-types
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
ClickHouse/clickhouse-js#1293 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
sidebandstudio/clawtrate#1863 ·
メンテナーはふだん 1 日以内に返信