Skip to content

Commit a206888

Browse files
authored
Merge pull request #264 from diffblue/p-command-line-option1
ebmc: fix -p command line option
2 parents 87da407 + be75859 commit a206888

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
p-command-line-option1.v
3+
--bound 1 -p "some_value >= 1"
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^\[command-line assertion\] always main\.some_value >= 1: SUCCESS$
7+
--
8+
^warning: ignoring
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module main(input clk);
2+
3+
reg [31:0] some_value;
4+
5+
initial some_value = 1;
6+
7+
always @(posedge clk)
8+
some_value = some_value + 1;
9+
10+
endmodule

src/ebmc/ebmc_properties.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ ebmc_propertiest ebmc_propertiest::from_command_line(
128128

129129
auto property_string = cmdline.get_value('p');
130130

131+
language->set_message_handler(message_handler);
132+
131133
exprt expr;
132134
if(language->to_expr(
133135
property_string,

0 commit comments

Comments
 (0)