2023-08-11 20:59:39 -05:00
|
|
|
#!/usr/bin/env bash
|
2022-06-03 00:37:29 -05:00
|
|
|
set -ex
|
|
|
|
../../yosys -q -p 'read_verilog -formal smtlib2_module.v; prep; write_smt2 smtlib2_module.smt2'
|
2022-06-07 10:37:04 -05:00
|
|
|
sed 's/; SMT-LIBv2 description generated by Yosys .*/; SMT-LIBv2 description generated by Yosys $VERSION/;s/ *$//' smtlib2_module.smt2 > smtlib2_module-filtered.smt2
|
2022-06-03 03:09:57 -05:00
|
|
|
diff -au smtlib2_module-expected.smt2 smtlib2_module-filtered.smt2
|