Having to type ARMGlobalBV (ASL.knownGlobalRef @...) every time is a real drag. It would be nicer if we could just type, for example, arm_R0 to refer to ARMGlobalBV (ASL.knownGlobalRef @"_R0") without needing any extra faff. Similarly for arm_R1, arm_R2, etc. To my knowledge, there is only one such definition in macaw-aarch32 at the moment:
Currently, lots of places in
macaw-aarch32
refer to ARM registers in an extremely verbose way:Having to type
ARMGlobalBV (ASL.knownGlobalRef @...)
every time is a real drag. It would be nicer if we could just type, for example,arm_R0
to refer toARMGlobalBV (ASL.knownGlobalRef @"_R0")
without needing any extra faff. Similarly forarm_R1
,arm_R2
, etc. To my knowledge, there is only one such definition inmacaw-aarch32
at the moment:https://github.com/GaloisInc/macaw/blob/1ab280b5f8bc4a74515548db38da9c63030c1d3b/macaw-aarch32/src/Data/Macaw/ARM/ARMReg.hs#L109-L111
We should add shorthand for the other ARM registers as well.