Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IC3: better error message when given assumption #898

Merged
merged 1 commit into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions regression/ebmc/ic3/not_supported3.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CORE
not_supported3.sv
--ic3
^no support for assumptions$
^EXIT=1$
^SIGNAL=0$
--
13 changes: 13 additions & 0 deletions regression/ebmc/ic3/not_supported3.sv
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module main(input clk);

reg my_bit;

initial my_bit=0;

always @(posedge clk)
my_bit = !my_bit;

// no support for assumptions
p0: assume property (my_bit == 0);

endmodule
10 changes: 10 additions & 0 deletions src/ic3/m1ain.cc
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,16 @@ int ic3_enginet::operator()()
return 1;
}

// No support for assumptions
for(auto &property : properties.properties)
{
if(property.is_assumed())
{
message.error() << "no support for assumptions" << messaget::eom;
return 1;
}
}

std::size_t number_of_properties = 0;

for(auto &property : properties.properties)
Expand Down
Loading