Skip to content

Commit 2ba61b5

Browse files
authored
feat: Add From<&PcodeMachineAddress> for ConcretePcodeAddress (#155)
implementation
1 parent 80d1ff3 commit 2ba61b5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

jingle/src/modeling/machine/cpu/concrete.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ impl From<PcodeMachineAddress> for ConcretePcodeAddress {
7878
}
7979
}
8080

81+
impl From<&PcodeMachineAddress> for ConcretePcodeAddress {
82+
fn from(value: &PcodeMachineAddress) -> Self {
83+
Self {
84+
machine: *value,
85+
pcode: 0,
86+
}
87+
}
88+
}
8189
/// Simple in-function transition handling, transitioning from one address to the
8290
/// next per uninterpreted/unanalyzed pcode. The implementation is used for
8391
/// the initial exploration of a CFG. The analyses built around this have

0 commit comments

Comments
 (0)