@@ -20,31 +20,35 @@ protected void registerAll() {
2020      IFernflowerPreferences .VERIFY_ANONYMOUS_CLASSES , "1" ,
2121      IFernflowerPreferences .INCLUDE_ENTIRE_CLASSPATH , "0" ,
2222      IFernflowerPreferences .TERNARY_CONDITIONS , "1" ,
23-       IFernflowerPreferences .FORCE_JSR_INLINE , "1" 
23+       IFernflowerPreferences .FORCE_JSR_INLINE , "1" ,
24+       IFernflowerPreferences .VERIFY_PRE_POST_VARIABLE_MERGES , "1" 
2425    );
2526    registerSet ("Entire Classpath" , this ::registerEntireClassPath ,
2627      IFernflowerPreferences .BYTECODE_SOURCE_MAPPING , "1" ,
2728      IFernflowerPreferences .DUMP_ORIGINAL_LINES , "1" ,
2829      IFernflowerPreferences .DUMP_EXCEPTION_ON_ERROR , "0" ,
2930      IFernflowerPreferences .IGNORE_INVALID_BYTECODE , "1" ,
3031      IFernflowerPreferences .VERIFY_ANONYMOUS_CLASSES , "1" ,
31-       IFernflowerPreferences .INCLUDE_ENTIRE_CLASSPATH , "1" 
32+       IFernflowerPreferences .INCLUDE_ENTIRE_CLASSPATH , "1" ,
33+       IFernflowerPreferences .VERIFY_PRE_POST_VARIABLE_MERGES , "1" 
3234    );
3335    registerSet ("Java Runtime" , this ::registerJavaRuntime ,
3436      IFernflowerPreferences .BYTECODE_SOURCE_MAPPING , "1" ,
3537      IFernflowerPreferences .DUMP_ORIGINAL_LINES , "1" ,
3638      IFernflowerPreferences .DUMP_EXCEPTION_ON_ERROR , "0" ,
3739      IFernflowerPreferences .IGNORE_INVALID_BYTECODE , "1" ,
3840      IFernflowerPreferences .VERIFY_ANONYMOUS_CLASSES , "1" ,
39-       IFernflowerPreferences .INCLUDE_JAVA_RUNTIME , "1" 
41+       IFernflowerPreferences .INCLUDE_JAVA_RUNTIME , "1" ,
42+       IFernflowerPreferences .VERIFY_PRE_POST_VARIABLE_MERGES , "1" 
4043    );
4144    registerSet ("Literals" , this ::registerLiterals ,
4245      IFernflowerPreferences .BYTECODE_SOURCE_MAPPING , "1" ,
4346      IFernflowerPreferences .DUMP_ORIGINAL_LINES , "1" ,
4447      IFernflowerPreferences .DUMP_EXCEPTION_ON_ERROR , "0" ,
4548      IFernflowerPreferences .IGNORE_INVALID_BYTECODE , "1" ,
4649      IFernflowerPreferences .VERIFY_ANONYMOUS_CLASSES , "1" ,
47-       IFernflowerPreferences .LITERALS_AS_IS , "0" 
50+       IFernflowerPreferences .LITERALS_AS_IS , "0" ,
51+       IFernflowerPreferences .VERIFY_PRE_POST_VARIABLE_MERGES , "1" 
4852    );
4953    registerSet ("Pattern Matching" , this ::registerPatternMatching ,
5054      IFernflowerPreferences .BYTECODE_SOURCE_MAPPING , "1" ,
@@ -53,7 +57,8 @@ protected void registerAll() {
5357      IFernflowerPreferences .IGNORE_INVALID_BYTECODE , "1" ,
5458      IFernflowerPreferences .VERIFY_ANONYMOUS_CLASSES , "1" ,
5559      IFernflowerPreferences .INCLUDE_ENTIRE_CLASSPATH , "0" ,
56-       IFernflowerPreferences .PATTERN_MATCHING , "1" 
60+       IFernflowerPreferences .PATTERN_MATCHING , "1" ,
61+       IFernflowerPreferences .VERIFY_PRE_POST_VARIABLE_MERGES , "1" 
5762    );
5863    registerSet ("Ternary Constant Simplification" , this ::registerTernaryConstantSimplification ,
5964      IFernflowerPreferences .BYTECODE_SOURCE_MAPPING , "1" ,
@@ -62,7 +67,8 @@ protected void registerAll() {
6267      IFernflowerPreferences .IGNORE_INVALID_BYTECODE , "1" ,
6368      IFernflowerPreferences .VERIFY_ANONYMOUS_CLASSES , "1" ,
6469      IFernflowerPreferences .LITERALS_AS_IS , "0" ,
65-       IFernflowerPreferences .TERNARY_CONSTANT_SIMPLIFICATION , "1" 
70+       IFernflowerPreferences .TERNARY_CONSTANT_SIMPLIFICATION , "1" ,
71+       IFernflowerPreferences .VERIFY_PRE_POST_VARIABLE_MERGES , "1" 
6672    );
6773    registerSet ("LVT" , this ::registerLVT ,
6874      IFernflowerPreferences .DECOMPILE_INNER , "1" ,
@@ -71,7 +77,8 @@ protected void registerAll() {
7177      IFernflowerPreferences .ASCII_STRING_CHARACTERS , "1" ,
7278      IFernflowerPreferences .REMOVE_SYNTHETIC , "1" ,
7379      IFernflowerPreferences .REMOVE_BRIDGE , "1" ,
74-       IFernflowerPreferences .USE_DEBUG_VAR_NAMES , "1" 
80+       IFernflowerPreferences .USE_DEBUG_VAR_NAMES , "1" ,
81+       IFernflowerPreferences .VERIFY_PRE_POST_VARIABLE_MERGES , "1" 
7582    );
7683    registerSet ("Try Loop" , this ::registerTryLoop ,
7784      IFernflowerPreferences .BYTECODE_SOURCE_MAPPING , "1" ,
@@ -80,7 +87,8 @@ protected void registerAll() {
8087      IFernflowerPreferences .IGNORE_INVALID_BYTECODE , "1" ,
8188      IFernflowerPreferences .VERIFY_ANONYMOUS_CLASSES , "1" ,
8289      IFernflowerPreferences .INCLUDE_ENTIRE_CLASSPATH , "0" ,
83-       IFernflowerPreferences .TRY_LOOP_FIX , "1" 
90+       IFernflowerPreferences .TRY_LOOP_FIX , "1" ,
91+       IFernflowerPreferences .VERIFY_PRE_POST_VARIABLE_MERGES , "1" 
8492    );
8593    registerSet ("Javadoc" , () -> {
8694      register (JAVA_8 , "TestJavadoc" );
@@ -108,7 +116,8 @@ public String getMethodDoc(StructClass structClass, StructMethod structMethod) {
108116      IFernflowerPreferences .IGNORE_INVALID_BYTECODE , "1" ,
109117      IFernflowerPreferences .VERIFY_ANONYMOUS_CLASSES , "1" ,
110118      IFernflowerPreferences .INCLUDE_ENTIRE_CLASSPATH , "0" ,
111-       IFernflowerPreferences .RENAME_ENTITIES , "1" 
119+       IFernflowerPreferences .RENAME_ENTITIES , "1" ,
120+       IFernflowerPreferences .VERIFY_PRE_POST_VARIABLE_MERGES , "1" 
112121    );
113122    registerSet ("Complex Condys" , () -> register (JASM , "TestComplexCondy" ),
114123      IFernflowerPreferences .BYTECODE_SOURCE_MAPPING , "1" ,
@@ -118,7 +127,8 @@ public String getMethodDoc(StructClass structClass, StructMethod structMethod) {
118127      IFernflowerPreferences .VERIFY_ANONYMOUS_CLASSES , "1" ,
119128      IFernflowerPreferences .INCLUDE_ENTIRE_CLASSPATH , "0" ,
120129      IFernflowerPreferences .DECOMPILE_COMPLEX_CONDYS , "1" ,
121-       IFernflowerPreferences .PREFERRED_LINE_LENGTH , "250" 
130+       IFernflowerPreferences .PREFERRED_LINE_LENGTH , "250" ,
131+       IFernflowerPreferences .VERIFY_PRE_POST_VARIABLE_MERGES , "1" 
122132    );
123133    registerSet ("Text Tokens" , this ::registerTextTokens ,
124134      IFernflowerPreferences .DUMP_TEXT_TOKENS , "1" ,
@@ -130,15 +140,17 @@ public String getMethodDoc(StructClass structClass, StructMethod structMethod) {
130140      IFernflowerPreferences .INCLUDE_ENTIRE_CLASSPATH , "0" ,
131141      IFernflowerPreferences .TERNARY_CONDITIONS , "1" ,
132142      IFernflowerPreferences .FORCE_JSR_INLINE , "1" ,
133-       IFernflowerPreferences .PREFERRED_LINE_LENGTH , "120" 
143+       IFernflowerPreferences .PREFERRED_LINE_LENGTH , "120" ,
144+       IFernflowerPreferences .VERIFY_PRE_POST_VARIABLE_MERGES , "1" 
134145    );
135146    registerSet ("Synthetics Marking" , this ::registerSyntheticsMarking ,
136147      IFernflowerPreferences .BYTECODE_SOURCE_MAPPING , "1" ,
137148      IFernflowerPreferences .DUMP_ORIGINAL_LINES , "1" ,
138149      IFernflowerPreferences .DUMP_EXCEPTION_ON_ERROR , "0" ,
139150      IFernflowerPreferences .IGNORE_INVALID_BYTECODE , "1" ,
140151      IFernflowerPreferences .VERIFY_ANONYMOUS_CLASSES , "1" ,
141-       IFernflowerPreferences .MARK_CORRESPONDING_SYNTHETICS , "1" 
152+       IFernflowerPreferences .MARK_CORRESPONDING_SYNTHETICS , "1" ,
153+       IFernflowerPreferences .VERIFY_PRE_POST_VARIABLE_MERGES , "1" 
142154      );
143155    registerSet ("Lambda to Anonymous Class" , this ::registerLambdaToAnonymousClass ,
144156      IFernflowerPreferences .BYTECODE_SOURCE_MAPPING , "1" ,
@@ -149,7 +161,8 @@ public String getMethodDoc(StructClass structClass, StructMethod structMethod) {
149161      IFernflowerPreferences .INCLUDE_ENTIRE_CLASSPATH , "0" ,
150162      IFernflowerPreferences .TERNARY_CONDITIONS , "1" ,
151163      IFernflowerPreferences .FORCE_JSR_INLINE , "1" ,
152-       IFernflowerPreferences .LAMBDA_TO_ANONYMOUS_CLASS , "1" 
164+       IFernflowerPreferences .LAMBDA_TO_ANONYMOUS_CLASS , "1" ,
165+       IFernflowerPreferences .VERIFY_PRE_POST_VARIABLE_MERGES , "1" 
153166    );
154167    // TODO: user renamer class test 
155168  }
0 commit comments