diff options
| author | Michael Krasnitski <michael.krasnitski@gmail.com> | 2024-02-21 18:49:52 -0500 |
|---|---|---|
| committer | Kyle Martin <krm504@nyu.edu> | 2024-03-18 17:46:37 -0400 |
| commit | 881318f0321c196ca5d87639e6e05796c39f04da (patch) | |
| tree | a4c529bf40d44b823d32b3c3460f91d8e8548226 /rust/src | |
| parent | 86d055849c7fe9b45bec16c6d20eb7e76de81097 (diff) | |
Use BTreeMap for jump targets to ensure deterministic iteration order
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/mlil/lift.rs | 4 | ||||
| -rw-r--r-- | rust/src/mlil/operation.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/rust/src/mlil/lift.rs b/rust/src/mlil/lift.rs index e9ae54bc..ba434d15 100644 --- a/rust/src/mlil/lift.rs +++ b/rust/src/mlil/lift.rs @@ -1,4 +1,4 @@ -use std::collections::HashMap; +use std::collections::BTreeMap; use crate::rc::Ref; use crate::types::{ConstantData, ILIntrinsic, SSAVariable, Variable}; @@ -15,7 +15,7 @@ pub enum MediumLevelILLiftedOperand { Float(f64), Int(u64), IntList(Vec<u64>), - TargetMap(HashMap<u64, u64>), + TargetMap(BTreeMap<u64, u64>), Var(Variable), VarList(Vec<Variable>), VarSsa(SSAVariable), diff --git a/rust/src/mlil/operation.rs b/rust/src/mlil/operation.rs index fdeaaf1b..822688a6 100644 --- a/rust/src/mlil/operation.rs +++ b/rust/src/mlil/operation.rs @@ -1,4 +1,4 @@ -use std::collections::HashMap; +use std::collections::BTreeMap; use crate::types::{ConstantData, ILIntrinsic, SSAVariable, Variable}; @@ -129,7 +129,7 @@ pub struct JumpTo { #[derive(Clone, Debug, PartialEq)] pub struct LiftedJumpTo { pub dest: Box<MediumLevelILLiftedInstruction>, - pub targets: HashMap<u64, u64>, + pub targets: BTreeMap<u64, u64>, } // GOTO |
