How can i remove multiple declaration of same variable when translating from IR->Z3. #2293
Replies: 1 comment 1 reply
-
|
Assuming this is related to #1549 and you're attempting to add support to new nodes to the IR -> Z3 translation logic. If you look at other functions in https://github.com/google/xls/blob/main/xls/solvers/z3_ir_translator.cc, you'll notice that none of them is printing anything to stdout. Instead https://github.com/google/xls/blob/main/xls/solvers/smtlib_emitter_main.cc#L61 is doing the printing after converting the IR graph to a Z3 AST, w/ So adding support for new nodes should be done by augmenting the Z3 AST w/ the appropriate Z3 objects in the corresponding Hope that helps. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Dslx file :
IR file:
Output :
HandleAssert Code :
here in output below line is printing twice this should not be the case
Beta Was this translation helpful? Give feedback.
All reactions