Skip to content

Commit 6038d22

Browse files
authored
Merge pull request #1288 from diffblue/wildcard-convert-relation
Verilog: use `verilog_typecheck_exprt::convert_relation` for wildcard equality
2 parents 75f52a8 + fb1f9f4 commit 6038d22

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

regression/verilog/expressions/wildcard_equality1.desc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ wildcard_equality1.sv
99
^\[main\.property06\] always 2'b10 ==\? 2'b0x === 0: PROVED .*$
1010
^\[main\.property07\] always 2'b00 !=\? 2'b0x === 0: PROVED .*$
1111
^\[main\.property08\] always 2'b10 !=\? 2'b0x === 1: PROVED .*$
12-
^\[main\.property09\] always 2'b11 ==\? 2'b11 === 0: REFUTED$
12+
^\[main\.property09\] always 1'sb1 ==\? 2'b11 === 0: PROVED .*$
1313
^\[main\.property10\] always 2'sb11 ==\? 2'sb11 === 1: PROVED .*$
14-
^EXIT=10$
14+
^EXIT=0$
1515
^SIGNAL=0$
1616
--
1717
^warning: ignoring

src/verilog/verilog_typecheck_expr.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3262,10 +3262,7 @@ exprt verilog_typecheck_exprt::convert_binary_expr(binary_exprt expr)
32623262
expr.id() == ID_verilog_wildcard_inequality)
32633263
{
32643264
// ==? and !=?
3265-
Forall_operands(it, expr)
3266-
convert_expr(*it);
3267-
3268-
tc_binary_expr(expr);
3265+
convert_relation(expr);
32693266

32703267
expr.type() = verilog_unsignedbv_typet(1);
32713268

0 commit comments

Comments
 (0)