Skip to content

Commit d6241f6

Browse files
committed
introduce verilog_sva_property_typet
This introduces a type for Verilog SVA properties To distinguish properties from state predicates and sequences.
1 parent 78d038d commit d6241f6

File tree

5 files changed

+122
-61
lines changed

5 files changed

+122
-61
lines changed

src/hw_cbmc_irep_ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ IREP_ID_ONE(verilog_null)
140140
IREP_ID_ONE(verilog_event)
141141
IREP_ID_ONE(verilog_event_trigger)
142142
IREP_ID_ONE(verilog_string)
143+
IREP_ID_ONE(verilog_sva_property)
143144
IREP_ID_ONE(verilog_sva_sequence)
144145
IREP_ID_ONE(reg)
145146
IREP_ID_ONE(macromodule)

src/verilog/sva_expr.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ exprt sva_sequence_consecutive_repetition_exprt::lower() const
8383
auto n_expr = from_integer(n, integer_typet{});
8484
result = sva_or_exprt{
8585
std::move(result),
86-
sva_sequence_consecutive_repetition_exprt{op(), n_expr}};
86+
sva_sequence_consecutive_repetition_exprt{op(), n_expr},
87+
verilog_sva_sequence_typet{}};
8788
}
8889

8990
return result;

0 commit comments

Comments
 (0)