Skip to content

Instantly share code, notes, and snippets.

@hugo-dc
Last active Sep 13, 2021
Embed
What would you like to do?

PUSH* Analysis

The following table shows PUSH* opcodes occurences for different values: 1, 2, 8, 31, and 32:

Opcode Value Count
PUSH1 0 340557331
PUSH1 1 159064641
PUSH1 2 123747316
PUSH1 8 3351271
PUSH1 31 15657909
PUSH1 32 183287388
PUSH2 0 635783
PUSH2 1 6
PUSH2 2 2109564
PUSH2 8 52
PUSH2 31 4770
PUSH2 32 19196
PUSH3 0 12158
PUSH3 31 30
PUSH3 32 32
PUSH4 0 19
PUSH4 1 48
PUSH4 2 23
PUSH4 8 2
PUSH5 0 119
PUSH6 0 113
PUSH7 0 6
PUSH8 0 4
PUSH9 0 17
PUSH10 0 1
PUSH11 0 2
PUSH12 0 220
PUSH13 0 6
PUSH15 0 24
PUSH16 0 3
PUSH17 0 1
PUSH18 0 10
PUSH19 0 24
PUSH20 0 52
PUSH21 0 6
PUSH22 0 5
PUSH24 0 2
PUSH25 0 1
PUSH26 0 2
PUSH31 1 1
PUSH32 0 19391
PUSH32 1 2062
PUSH32 2 730
PUSH32 8 464
PUSH32 31 7
PUSH32 32 14

Analysis on using PUSHn for specific values

Analysis on pushing specific values 1, 2, 8, 31, 32 by PUSHn opcodes:

0 341225300
1 159066758
2 125857633
8 3351789
31 15662716
32 183306630

Comparing PUSH1 for specific values vs other values

0 340557331
1 159064641
2 123747316
8 3351271
31 15657909
32 183287388
other 581491971

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment