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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
//! # Verifiers Module
//!
//! This module contains a collection of verifiers that validate different aspects of Java
//! class files according to the JVM specification. Each submodule implements verification
//! for a specific component of the class file structure.
//!
//! These verifiers help ensure that class files meet the structural and semantic requirements
//! before they are processed further or executed.
//!
//! # Bytecode Verification
//!
//! The new `bytecode` module provides a 100% JVMS-compliant bytecode verifier with:
//! - Rigorous type system implementation ([JVMS §4.10.1.2](https://docs.oracle.com/javase/specs/jvms/se25/html/jvms-4.html#jvms-4.10.1.2))
//! - Complete instruction coverage (all 200+ opcodes)
//! - Optimized dataflow analysis using dense vectors
//! - Comprehensive error reporting
//!
//! # References
//!
//! - [JVMS §4.9 - Constraints on Java Virtual Machine Code](https://docs.oracle.com/javase/specs/jvms/se25/html/jvms-4.html#jvms-4.9)
//! - [JVMS §4.10 - Verification of class Files](https://docs.oracle.com/javase/specs/jvms/se25/html/jvms-4.html#jvms-4.10)
/// Performs dataflow analysis and bytecode verification (legacy implementation).
pub
/// New modular bytecode verification implementation.
///
/// This module provides a 100% JVMS-compliant bytecode verifier organized into:
/// - `type_system`: Rigorous verification type system
/// - `frame`: Optimized stack frame for dataflow analysis
/// - `control_flow`: CFG construction and StackMapTable validation
/// - `handlers`: Specialized instruction verifiers
/// Validates attributes within a class file.
pub
/// Verifies the access flags of a class for validity according to the JVM specification.
pub
/// Provides the verification context interface for type resolution.
/// Validates the code attribute within a method.
pub
/// Validates the constant pool entries for correctness and consistency.
pub
/// Defines errors related to verification.
/// Verifies the access flags of fields for validity according to the JVM specification.
pub
/// Validates field definitions within a class file.
pub
/// Defines stack frames used in bytecode verification.
pub
/// Verifies the interfaces implemented by a class.
pub
/// Verifies the access flags of methods for validity according to the JVM specification.
pub
/// Validates method definitions and signatures within a class file.
pub
/// Verifies `NestHost` and `NestMembers` attribute consistency.
pub
/// Verifies `PermittedSubclasses` attribute for sealed classes.
pub
/// Verifies `Record` attribute and record component validation.
pub
/// Validates generic signature grammar and type variable references.
pub
/// Defines verification types used in bytecode verification.
pub
/// Provides the main verification framework and orchestration for all verifiers.
pub
pub use VerifyMode;
pub use ;