mirror of
https://github.com/morluto/rea.git
synced 2026-11-22 22:45:47 +00:00
fix(ghidra): omit duplicate load-image result (#7777)
* fix(ghidra): omit duplicate load-image result * docs(mcp): describe load-image evidence projection
This commit is contained in:
1 parent
64d282b0a6
commit
a965cbab06
5 files changed
+59
-13
No files matched your search
@@ -166,6 +166,17 @@ export type NativeLoadImage = z.infer<typeof nativeLoadImageSchema>;
|
||||
export type NativeLoadImageObservation = z.infer<
|
||||
typeof nativeLoadImageObservationSchema
|
||||
>;
|
||||
|
||||
/** Remove entry-context rows that carry no register observations. */
|
||||
export const normalizeNativeLoadImageObservation = (
|
||||
observation: NativeLoadImageObservation,
|
||||
): NativeLoadImageObservation => ({
|
||||
...observation,
|
||||
entry_context: observation.entry_context.filter(
|
||||
({ registers }) => registers.length > 0,
|
||||
),
|
||||
});
|
||||
|
||||
/** One independently compared native import fact. */
|
||||
export type NativeLoadImageCheck = z.infer<typeof nativeLoadImageCheckSchema>;
|
||||
|
||||
|
||||
Reference in new issue
Block a user