-
Notifications
You must be signed in to change notification settings - Fork 435
[HWToBTOR2] Emit verif.symbolic_value as input
#9924
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
Open
dobios
wants to merge
15
commits into
main
Choose a base branch
from
dev/dobios/btor2-formalOp
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+117
−17
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
2f8b131
refactored runOnOperation to simplify adding new top-level ops
dobios 8992682
added symbolicValueOp verif visitor
dobios 5efa356
Merge branch 'dev/dobios/symbolic-visitor' into dev/dobios/btor2-form…
dobios b2de48f
WIP support for symbolic values
dobios c27be82
[Verif] Added optional name parameter for
dobios 9a2b36b
Added name generation in LowerToHW
dobios a6ceab4
made name print as SSA name
dobios d445cc5
format
dobios 4ab39d2
typo in comment
dobios 028013e
Merge branch 'dev/dobios/symbolic_value_name' into dev/dobios/btor2-f…
dobios 54716f2
Merge branch 'main' into dev/dobios/btor2-formalOp
dobios 943ccea
added support for
dobios 4df8f5b
Merge branch 'main' into dev/dobios/btor2-formalOp
dobios 07a8e94
added symbolic value btor2 test
dobios 19a4ad4
Merge branch 'main' into dev/dobios/btor2-formalOp
dobios File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| // RUN: circt-opt %s --convert-hw-to-btor2 -o %t | FileCheck %s | ||
|
|
||
| // CHECK: [[I32:[0-9]+]] sort bitvec 32 | ||
| // CHECK: [[A:[0-9]+]] input [[I32]] a | ||
| // CHECK: [[B:[0-9]+]] input [[I32]] b | ||
| // CHECK: [[C:[0-9]+]] input [[I32]] c | ||
| // CHECK: [[ADD:[0-9]+]] add [[I32]] [[A]] [[B]] | ||
| // CHECK: [[I1:[0-9]+]] sort bitvec 1 | ||
| // CHECK: [[RES:[0-9]+]] eq [[I1]] [[ADD]] [[C]] | ||
| // CHECK: [[NOT:[0-9]+]] not [[I1]] [[RES]] | ||
| // CHECK: [[BAD:[0-9]+]] bad [[NOT]] | ||
|
|
||
| module { | ||
| hw.module @foo(in %a : i32) { | ||
| %b = verif.symbolic_value : i32 | ||
| %c = verif.symbolic_value : i32 | ||
| %res = comb.add %a, %b : i32 | ||
| %cond = comb.icmp eq %res, %c : i32 | ||
| verif.assert %cond : i1 | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.