iets3.opensource icon indicating copy to clipboard operation
iets3.opensource copied to clipboard

Fix model checker errors

Open lhartl opened this issue 5 years ago • 2 comments

To be able to use the model checker, the existing model checker errors and warnings should be fixed where possible.

lhartl avatar Feb 11 '21 15:02 lhartl

Hi, i have a look at the model-checker errors in tests.in.expr.os:

See branch fix/modelchecker-testInExprOs

heikob2 avatar Mar 04 '21 13:03 heikob2

maybe a bug in the TS: shouldn't be type number also be of type any testsuite AlgebraicLanguage::eval()

To me any seems to be a candidate to be a supertype of everything, but right now it's only supertype of join types. Maybe @markusvoelter can give some hints why this has been done this way.

But we clearly have here an issue with deriving a common type for match expressions - in my case it gets a boolean type.

isn't int and real deprecated?

No, they are just simple way of expressing integer and floating-point number types.

IListOneArgOp gives TS-error, if arg is a list and number of entries do not match (with "left" operand).

Looks like a TS bug with the ListWithAllOp that doesn't checks its arg for a list type, instead just generally expecting its type to be a subtype of the base list type which is not correct (due to a possible list size mismatch as you noted)

wsafonov avatar Mar 05 '21 20:03 wsafonov