mirror of
https://github.com/GaloisInc/macaw.git
synced 2024-12-28 08:34:23 +03:00
don't turn sext into uext
This commit is contained in:
parent
b5c143418d
commit
a9d49a96ed
@ -173,7 +173,7 @@ rewriteApp app = do
|
||||
Trunc (valueAsApp -> Just (SExt v _)) w -> case compareNat w (typeWidth v) of
|
||||
NatLT _ -> rewriteApp $ Trunc v w
|
||||
NatEQ -> pure v
|
||||
NatGT _ -> rewriteApp $ UExt v w
|
||||
NatGT _ -> rewriteApp $ SExt v w
|
||||
|
||||
SExt (BVValue u x) w -> do
|
||||
pure $ BVValue w $ toUnsigned w $ toSigned u x
|
||||
|
Loading…
Reference in New Issue
Block a user