Skip to content

Commit 51900be

Browse files
authored
Merge pull request #814 from diffblue/precedence-function-call
Verilog: fix precedence of function calls
2 parents 3f0211b + f0ec14a commit 51900be

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CORE
22
past1.sv
33
--aig
4-
^\[main\.p0\] ##0 \(\$past\(main\.counter, 0\)\) == 0: FAILURE: property not supported by netlist BMC engine$
4+
^\[main\.p0\] ##0 \$past\(main\.counter, 0\) == 0: FAILURE: property not supported by netlist BMC engine$
55
^EXIT=10$
66
^SIGNAL=0$
77
--
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CORE
22
past1.sv
33
--bdd
4-
^\[main\.p0\] ##0 \(\$past\(main\.counter, 0\)\) == 0: FAILURE: property not supported by BDD engine$
4+
^\[main\.p0\] ##0 \$past\(main\.counter, 0\) == 0: FAILURE: property not supported by BDD engine$
55
^EXIT=10$
66
^SIGNAL=0$
77
--

regression/verilog/system-functions/past2.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CORE
22
past2.sv
33
--bdd
4-
^\[main\.p0\] always \(main\.counter == 0 \|-> \(\$past\(main\.counter, 1\)\) == 0\): FAILURE: property not supported by BDD engine$
4+
^\[main\.p0\] always \(main\.counter == 0 \|-> \$past\(main\.counter, 1\) == 0\): FAILURE: property not supported by BDD engine$
55
^EXIT=10$
66
^SIGNAL=0$
77
--

src/verilog/expr2verilog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ expr2verilogt::convert_function_call(const function_call_exprt &src)
354354

355355
dest+=")";
356356

357-
return {verilog_precedencet::MIN, dest};
357+
return {verilog_precedencet::MEMBER, dest};
358358
}
359359

360360
/*******************************************************************\

0 commit comments

Comments
 (0)