]> git.nickg.me.uk Git - nvc.git/commit
Fix coverage generation for unary operators
authorSean Anderson <sean.anderson@seco.com>
Mon, 22 May 2023 16:01:38 +0000 (12:01 -0400)
committerNick Gasson <nick@nickg.me.uk>
Mon, 22 May 2023 20:14:01 +0000 (20:14 +0000)
commitedfb1489c44f473f4d9924a02d562c95edefb9f6
treec022a6572e29a8dfeec74ebb271d79963dfbf70b
parentb4d47cead090fff1c6d080b5fbeedbbe46f278d2
Fix coverage generation for unary operators

Unary functions (such as reductions) cause an assertion failure in
lower_logic_expr_coverage. As they operate on arrays, and arrays are
skipped anyway, modify this function to skip such operators. Also remove
a debug print while we're here.

Add a test case to ensure such functions are excluded from coverage.

Closes: #698
src/lower.c
test/regress/cover16.sh [new file with mode: 0755]
test/regress/cover16.vhd [new file with mode: 0644]
test/regress/gold/cover16.txt [new file with mode: 0644]
test/regress/testlist.txt