GaloisInc / pate

Patches Assured up to Trace Equivalence

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove use of unsafeCoerce in ExprHelpers

travitch opened this issue · comments

Now that GaloisInc/what4@c648cd1 has landed in what4, we can remove

-- FIXME: this is a workaround for the fact that 'natToInteger' from What4.Interface
-- is in the IO monad, but doesn't need to be.
natToIntegerPure ::
W4.IsExprBuilder sym => sym -> W4.SymNat sym -> W4.SymInteger sym
natToIntegerPure _sym n = unsafeCoerce n