(
&self,
function: &BNFunction,
llil: &LowLevelILFunction<A, M, NonSSA<RegularNonSSA>>,
)
| 331 | } |
| 332 | |
| 333 | pub fn function_guid<A: Architecture, M: FunctionMutability>( |
| 334 | &self, |
| 335 | function: &BNFunction, |
| 336 | llil: &LowLevelILFunction<A, M, NonSSA<RegularNonSSA>>, |
| 337 | ) -> FunctionGUID { |
| 338 | let function_id = FunctionID::from(function); |
| 339 | match self.cache.get(&function_id) { |
| 340 | Some(function_guid) => function_guid.value().to_owned(), |
| 341 | None => { |
| 342 | let function_guid = function_guid(function, llil); |
| 343 | self.cache.insert(function_id, function_guid); |
| 344 | function_guid |
| 345 | } |
| 346 | } |
| 347 | } |
| 348 | |
| 349 | pub fn try_function_guid(&self, function: &BNFunction) -> Option<FunctionGUID> { |
| 350 | let function_id = FunctionID::from(function); |
no test coverage detected