Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[enhancement] Unify DSLX predicate annotation syntax across Quickcheck and Fuzz testing

オープン
#4,533 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
32/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
cpp

調査の方向性

まず、DSLX の述語アノテーションの処理と、Quickcheck および fuzz のテストランナーを見つけます。qc と fuzz のアノテーションがどのように解析され、選択されるかを比較し、次に、ランナーのオプションによって 1 つの述語アノテーションで両方のモードをサポートできる方法を判断します。同じ述語を重複したアノテーションなしでどちらのランナーでも実行でき、関連する既存の動作が維持されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

dslx enhancement formal fuzz

created by a gemini-powered agent

What's hard to do? (limit 100 words)

Currently, predicate functions in XLS DSLX must be annotated separately as either quickcheck or fuzz tests (they cannot be annotated as both simultaneously). Quickcheck (qc) runs via the DSLX interpreter and is faster for checking small domains, while fuzzing requires ahead-of-time (AOT) compilation and uses coverage guidance for broader domain exploration. Because annotations are separate, developers cannot easily switch between quickcheck and fuzz testing on the same predicate function.

Current best alternative workaround (limit 100 words)

Developers must maintain separate annotations or duplicate predicate wrappers to run both quickcheck and fuzz testing on the same domain properties, or choose one execution mode upfront and forgo the benefits of the other.

Your view of the "best case XLS enhancement" (limit 100 words)

Unify the annotation syntax for predicate functions so that a single annotation syntax is used for domain predicates, and allow selecting the execution mode/runner (qc vs fuzz) via test runner options.

Benefits:

  • Simplifies DSLX predicate testing and avoids duplicate annotations.
  • Allows running either quickcheck or fuzzing on the same predicates.
  • Potentially allows collecting fuzz predicates for Z3 formal proofs (prove_quickcheck_main).
主要言語
C++
スター
1.9k
フォーク
292
平均マージ
2日 17時間
マージ済み PR(30日)
100

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

google/xls のほかの issue

google/xls の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。