1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//! Shared deobfuscation capability vocabulary used for pass ordering.
//!
//! Hosts that run the pass scheduler embed [`DeobfuscationCapability`] in
//! their concrete `T::Capability` enum. Generic analyssa passes declare
//! [`provides`](crate::scheduling::SsaPass::provides) and
//! [`requires`](crate::scheduling::SsaPass::requires) using these variants;
//! the host's `From<DeobfuscationCapability>` impl bridges into its own
//! capability enum so target-specific tags can sit alongside the shared
//! vocabulary.
//!
//! These milestones describe the *outcome* of a pass, not its mechanism —
//! "static fields have been resolved to concrete constants" applies just
//! as well to a CIL field-decryption pass as to a VB6 GoSub-table resolver.
/// Capability milestone produced or consumed by a deobfuscation pass.
///
/// The scheduler uses these to compute pass-execution order: if pass A
/// provides a capability and pass B requires it, B is scheduled in a
/// later layer than A.