# Type of Error when using Empty Sequence as Consequent

**URL:** <https://verificationacademy.com/forums/t/type-of-error-when-using-empty-sequence-as-consequent/49691>\
**Category:** SystemVerilog\
**Tags:** SVA, assertion, degenerate-sequence\
**Created:** [February 22, 2025, 2:11pm UTC](https://verificationacademy.com/forums/t/type-of-error-when-using-empty-sequence-as-consequent/49691 "2025-02-22T14:11:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LFT](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/l/34f0e0/32.png) [@LFT](https://verificationacademy.com/forums/u/LFT)\
**Post date:** [February 22, 2025, 2:11pm UTC](https://verificationacademy.com/forums/t/type-of-error-when-using-empty-sequence-as-consequent/49691/1 "2025-02-22T14:11:35Z")

</div>

Hi All,  
I was referring to [empty.pdf](http://systemverilog.us/empty.pdf) shared by Ben in following [thread](https://verificationacademy.com/forums/t/empty-sequence-in-systemverilog/32096)

As Ben mentions that ::

```auto
assert property( @(posedge clk) start |-> b[*0] ##0 c ); 

```

Is illegal as the consequent admits only **No Match**

**My question is whether it should be flagged as compilation/elaboration time error or a run-time error ?**  
**Does the LRM clarify this or is a tool free to throw an error at run-time as well ?**

---

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [February 22, 2025, 6:28pm UTC](https://verificationacademy.com/forums/t/type-of-error-when-using-empty-sequence-as-consequent/49691/2 "2025-02-22T18:28:32Z")

</div>

I think the LRM is not very clear here, but I think the intent was it should be an error. The only place it mentions being an error is if you try to attach a call to a subroutine.

I can see arguments both ways because of automatically generated code that might take advantage of the fact that they knowing `start` will never happen so they don’t care about their consequence having an empty match.

---

<div class="post-metadata">

**Author:** ![LFT](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/l/34f0e0/32.png) [@LFT](https://verificationacademy.com/forums/u/LFT)\
**Post date:** [February 22, 2025, 8:09pm UTC](https://verificationacademy.com/forums/t/type-of-error-when-using-empty-sequence-as-consequent/49691/3 "2025-02-22T20:09:30Z")

</div>

Thanks Dave.

> [@dave\_59](#):
>
> The only place it mentions being an error is if you try to attach a call to a subroutine.

LRM Section 16.11 mentions  
"It shall **be an error** to attach a subroutine call or any sequence\_match\_item to a sequence that admits an empty match "

Here **LRM specifically mentions the word “error”** ( although it doesn’t clarify the type of error i.e whether it should be compilation/elaboration or run-time error )

Whereas LRM Section 16.12.22 Nondegeneracy mentions ::  
“a) Any sequence that is used as a property shall be nondegenerate and shall not admit any empty match.”  
Here LRM doesn’t explicitly mention it as an **error**

**I observe that some tools throw a compilation error while some throw run-time error.**
