Skip to content

Commit

Permalink
Merge pull request diffblue#1806 from thk123/refactor/address-review-…
Browse files Browse the repository at this point in the history
…comments-from-1796

Adding comment referencing where the invariant comes from
  • Loading branch information
smowton authored Feb 16, 2018
2 parents db9c214 + f123ae9 commit bb88574
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/java_bytecode/java_bytecode_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,7 @@ void java_bytecode_parsert::rmethod_attribute(methodt &method)
u2 start_pc=read_u2();
u2 end_pc=read_u2();

// from the class file format spec ("4.7.3. The Code Attribute" for Java8)
INVARIANT(
start_pc < end_pc,
"The start_pc must be less than the end_pc as this is the range the "
Expand Down

0 comments on commit bb88574

Please sign in to comment.