QuickChick / Luck

Luck -- A Language for Property-Based Generators

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An error "Pat shouldnot happen"

pirapira opened this issue · comments

Sometimes the error Pat shouldnothappen happens.

The luck file.

$ git clone git@github.com:pirapira/minus-minus-solidity.git
$ mkdir minus-minus-solidity
$ git checkout shouldnot
$ stack build && stack exec mms-exe
mms-exe: Pat shouldnot happen
CallStack (from HasCallStack):
  error, called at src/Core/Semantics.hs:429:26 in luck-0.1.0.0-LJij1R78ObT1aQOfaHb3dW:Core.Semantics

This error happens with 70% probability.

This was caused by an obscure optimization firing unexpectedly which invalidated some invariants. Fixed now (updated invariants).

Thanks!