(value: LowLevelILRegisterOrConstant<R>)
| 52 | |
| 53 | impl<R: ArchReg> From<LowLevelILRegisterOrConstant<R>> for BNRegisterOrConstant { |
| 54 | fn from(value: LowLevelILRegisterOrConstant<R>) -> Self { |
| 55 | match value { |
| 56 | LowLevelILRegisterOrConstant::Register(_, r) => Self { |
| 57 | constant: false, |
| 58 | reg: r.id().0, |
| 59 | value: 0, |
| 60 | }, |
| 61 | LowLevelILRegisterOrConstant::Constant(_, value) => Self { |
| 62 | constant: true, |
| 63 | reg: 0, |
| 64 | value, |
| 65 | }, |
| 66 | } |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | // TODO flesh way out |
nothing calls this directly
no test coverage detected