Skip to content

Commit

Permalink
add testcase with escaped identifier using all allowed non-alphanumer…
Browse files Browse the repository at this point in the history
…ical characters
  • Loading branch information
nakengelhardt committed Apr 8, 2022
1 parent 1e1aea0 commit 4cfac21
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
/aim_vs_smt2_nonzero_start_offset*/
/invalid_ff_dcinit_merge*/
/2props1trace*/
/escapechars*/
25 changes: 25 additions & 0 deletions tests/escapechars.sby
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[options]
mode bmc
depth 1
expect fail
wait on

[engines]
smtbmc yices
smtbmc boolector
btor btormc
abc bmc3


[script]
read -sv escapechars.v
prep -top test

[file escapechars.v]
module test(
input \foo!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~bar
);
always @* begin
assert (\foo!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~bar );
end
endmodule

0 comments on commit 4cfac21

Please sign in to comment.