Variables without initializers cause invalid code generation.
还没有人认领这个 Issue。
评估
调研方向
首先复现 issue 中的两个 P4 声明,并比较生成的输出。跟踪编译器前端对没有初始化器的变量的处理以及代码生成路径;完成的标准是未初始化的声明能够被接受,并生成符合 P4 规范第 11.2 节的有效代码。
由索引模型根据 Issue 内容生成。
描述
The following works fine.
bit<32> x = 0;
However, the following causes bad code generation
bit<32> x;
According to the P4 spec section 11.2, variable initializers are optional, so this should be accepted by the front end and generate valid code.
- 主要语言
- Rust
- 星标
- 140
- 派生
- 14
- 平均合并
- 3 天 18 小时
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
oxidecomputer/p4 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 48/100
oxidecomputer/p4#279 ·
-
Resubmit-based user loadable programs可能重新可做 @Robby-work 于 71 天前认领,目前没有进行中的 PR。 未关闭
oxidecomputer/p4#275 · 已指派 1 人 ·
-
难度 3/5 1-2 天 新手友好度 35/100
oxidecomputer/p4#193 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 20/100
oxidecomputer/p4#192 · 1 条评论 ·
-
bug front-end
难度 3/5 1-2 天 新手友好度 45/100
oxidecomputer/p4#159 ·
相似的 Issue
-
area: cli good first issue type: feature
难度 2/5 1-3 小时 新手友好度 78/100
-
[Bug] Windows Ghidra provider rejects a PATH-only JDK: bare `java.exe` probe fails with Win32 87未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
renaming a provider to a taken name fails with a raw sql error可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭area:storage kind:bug priority:p3 ready
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
bug bugfix
难度 2/5 1-3 小时 新手友好度 72/100
storytold/photocraft#16975 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复