-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix dc example #567
Fix dc example #567
Conversation
Alive Statistics: 64 / 93 (29 failed) |
Alive Statistics: 64 / 93 (29 failed) |
|
||
def remNone (lst : List (Option Bool)) : List (Option Bool) := | ||
lst.filter (fun | some x => true | ||
| none => false) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unrelated. Maybe not include this in this commit.
}] | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unrelated. Maybe not include this in this commit.
@@ -208,7 +208,6 @@ def mkTy2 : String → MLIR.AST.ExceptM (DC) Ty2 | |||
| "Bool" => return (.bool) | |||
| _ => throw .unsupportedType | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unrelated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How nice. Thank you for debugging this.
Also, you may want to update the commit message to include @ymherklotz's analysis. |
Co-authored-by: Tobias Grosser <[email protected]>
@@ -3,24 +3,22 @@ import SSA.Core.MLIRSyntax.GenericParser | |||
import SSA.Projects.CIRCT.DC | |||
import SSA.Projects.CIRCT.DC.Stream | |||
|
|||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated.
Alive Statistics: 64 / 93 (29 failed) |
Alive Statistics: 64 / 93 (29 failed) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me! I think unseal
is fine for now, but maybe there is a way to handle it a bit better in the framework in the future.
Function `splitOn` is defined using `splitOnAux`, which is defined by well-founded recursion and marked @[irreducible] by default. As [advised](leanprover/lean4#4061), we set `splitOnAux` back to semireducible by using `unseal` to use it in `DCExample`. CC: @ymherklotz @alexkeizer --------- Co-authored-by: Tobias Grosser <[email protected]>
Function
splitOn
is defined usingsplitOnAux
, which is defined by well-founded recursion and marked @[irreducible] by default. As advised, we setsplitOnAux
back to semireducible by usingunseal
to use it inDCExample
. CC: @ymherklotz @alexkeizer