Skip to content
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

Merged
merged 6 commits into from
Aug 27, 2024
Merged

Fix dc example #567

merged 6 commits into from
Aug 27, 2024

Conversation

luisacicolini
Copy link
Contributor

@luisacicolini luisacicolini commented Aug 26, 2024

Function splitOn is defined using splitOnAux, which is defined by well-founded recursion and marked @[irreducible] by default. As advised, we set splitOnAux back to semireducible by using unseal to use it in DCExample. CC: @ymherklotz @alexkeizer

Copy link

Alive Statistics: 64 / 93 (29 failed)

Copy link

Alive Statistics: 64 / 93 (29 failed)


def remNone (lst : List (Option Bool)) : List (Option Bool) :=
lst.filter (fun | some x => true
| none => false)


Copy link
Collaborator

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.

}]


Copy link
Collaborator

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


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unrelated.

Copy link
Collaborator

@tobiasgrosser tobiasgrosser left a 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.

@tobiasgrosser
Copy link
Collaborator

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



Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated.

Copy link

Alive Statistics: 64 / 93 (29 failed)

Copy link

Alive Statistics: 64 / 93 (29 failed)

Copy link
Collaborator

@ymherklotz ymherklotz left a 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.

@luisacicolini luisacicolini added this pull request to the merge queue Aug 27, 2024
Merged via the queue into main with commit e7c06f9 Aug 27, 2024
2 checks passed
AtticusKuhn pushed a commit that referenced this pull request Sep 2, 2024
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants