creusot icon indicating copy to clipboard operation
creusot copied to clipboard

Unsafe checker

Open xldenis opened this issue 3 years ago • 1 comments

Creusot can't actually verify unsafe code. For the moment, when you attempt to perform an 'unsafe operation' (raw pointer stuff, etc), an error is printed about how this operation is unsupported. Instead, we should check if a function contains unsafe code at all and just abort compilation, reporting a helpful message about unsafety.

xldenis avatar Sep 13 '21 08:09 xldenis

This is a bool field on basic blocks so it shouldn't be hard to check

xldenis avatar Sep 14 '21 08:09 xldenis