Diff
checker
Text
Text
Images
Documents
Excel
Folders
Legal
Enterprise
Desktop
Pricing
Sign in
Download Diffchecker Desktop
Compare text
Find the difference between two text files
Tools
History
Real-time editor
Hide unchanged lines
Disable line wrap
Layout
Split
Unified
Diff precision
Smart
Word
Char
Syntax highlighting
Choose syntax
Ignore
Transform text
Go to first change
Edit input
Diffchecker Desktop
The most secure way to run Diffchecker. Get the Diffchecker Desktop app: your diffs never leave your computer!
Get Desktop
Untitled diff
Created
8 years ago
Diff never expires
Clear
Export
Share
Explain
20 removals
Lines
Total
Removed
Characters
Total
Removed
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
45 lines
Copy
20 additions
Lines
Total
Added
Characters
Total
Added
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
45 lines
Copy
Copy
Copied
Copy
Copied
for (...) n +=
(i*i); return
2 *
n
for (...) n +=
2*
(i*i); return
n
public int
square_i
_two
();
public int
two_
square_i
();
descriptor: ()I
descriptor: ()I
flags: ACC_PUBLIC
flags: ACC_PUBLIC
Code:
Code:
Copy
Copied
Copy
Copied
stack=
3
, locals=3, args_size=1
stack=
4
, locals=3, args_size=1
0: iconst_0
0: iconst_0
1: istore_1
1: istore_1
2: iconst_0
2: iconst_0
3: istore_2
3: istore_2
4: iload_2
4: iload_2
5: aload_0
5: aload_0
6: getfield #2 // Field size:I
6: getfield #2 // Field size:I
Copy
Copied
Copy
Copied
9: if_icmpge
24
9: if_icmpge
26
12: iload_1
12: iload_1
Copy
Copied
Copy
Copied
13:
iload
_2
13:
iconst
_2
14: iload_2
14: iload_2
Copy
Copied
Copy
Copied
15:
imul
15:
iload_2
16:
iadd
16:
imul
17:
istore_1
17:
imul
18
: iinc 2, 1
18: iadd
21
: goto 4
19:
istore_1
24: iconst_2
20
: iinc 2, 1
25
: iload_1
23
: goto 4
26: imul
26
: iload_1
27: ireturn
27: ireturn
LineNumberTable:
LineNumberTable:
Copy
Copied
Copy
Copied
line
63
: 0
line
54
: 0
line
64
: 2
line
55
: 2
line
65
: 12
line
56
: 12
line
64: 18
line
55: 20
line
67: 24
line
58: 26
LocalVariableTable:
LocalVariableTable:
Start Length Slot Name Signature
Start Length Slot Name Signature
Copy
Copied
Copy
Copied
4
20
2 i I
4
22
2 i I
0 28 0 this Lorg/sample/MyBenchmark;
0 28 0 this Lorg/sample/MyBenchmark;
2 26 1 n I
2 26 1 n I
StackMapTable: number_of_entries = 2
StackMapTable: number_of_entries = 2
frame_type = 253 /* append */
frame_type = 253 /* append */
offset_delta = 4
offset_delta = 4
locals = [ int, int ]
locals = [ int, int ]
frame_type = 250 /* chop */
frame_type = 250 /* chop */
Copy
Copied
Copy
Copied
offset_delta =
19
offset_delta =
21
RuntimeVisibleAnnotations:
RuntimeVisibleAnnotations:
0: #25()
0: #25()
Saved diffs
Original text
Open file
for (...) n += (i*i); return 2 *n public int square_i_two(); descriptor: ()I flags: ACC_PUBLIC Code: stack=3, locals=3, args_size=1 0: iconst_0 1: istore_1 2: iconst_0 3: istore_2 4: iload_2 5: aload_0 6: getfield #2 // Field size:I 9: if_icmpge 24 12: iload_1 13: iload_2 14: iload_2 15: imul 16: iadd 17: istore_1 18: iinc 2, 1 21: goto 4 24: iconst_2 25: iload_1 26: imul 27: ireturn LineNumberTable: line 63: 0 line 64: 2 line 65: 12 line 64: 18 line 67: 24 LocalVariableTable: Start Length Slot Name Signature 4 20 2 i I 0 28 0 this Lorg/sample/MyBenchmark; 2 26 1 n I StackMapTable: number_of_entries = 2 frame_type = 253 /* append */ offset_delta = 4 locals = [ int, int ] frame_type = 250 /* chop */ offset_delta = 19 RuntimeVisibleAnnotations: 0: #25()
Changed text
Open file
for (...) n += 2*(i*i); return n public int two_square_i(); descriptor: ()I flags: ACC_PUBLIC Code: stack=4, locals=3, args_size=1 0: iconst_0 1: istore_1 2: iconst_0 3: istore_2 4: iload_2 5: aload_0 6: getfield #2 // Field size:I 9: if_icmpge 26 12: iload_1 13: iconst_2 14: iload_2 15: iload_2 16: imul 17: imul 18: iadd 19: istore_1 20: iinc 2, 1 23: goto 4 26: iload_1 27: ireturn LineNumberTable: line 54: 0 line 55: 2 line 56: 12 line 55: 20 line 58: 26 LocalVariableTable: Start Length Slot Name Signature 4 22 2 i I 0 28 0 this Lorg/sample/MyBenchmark; 2 26 1 n I StackMapTable: number_of_entries = 2 frame_type = 253 /* append */ offset_delta = 4 locals = [ int, int ] frame_type = 250 /* chop */ offset_delta = 21 RuntimeVisibleAnnotations: 0: #25()
Find difference