lifting-bits / remill

Library for lifting machine code to LLVM bitcode
Apache License 2.0
1.26k stars 142 forks source link

Add preferred value to undef intrinsic #546

Open lkorenc opened 2 years ago

lkorenc commented 2 years ago

Currently, __remill_undef_* do not take any operands. However there are places in semantics where it would be desirable to specify a preferred value, since it could reflect the usual behaviour of cpu. By adding extra argument to __remill_undef_* this can be communicated clearly

This can potentially break user code, as prototype of intrinsic will change.