summaryrefslogtreecommitdiff
path: root/valid/code-0013.smali
blob: 07297d9b70451ea7d3416b51e4f653ac1c8374e5 (plain)
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
91
92
93
94
95
96
97
98

.class public Lcom/example/BytecodeDemo;

.super Ljava/lang/Object;

# direct methods
.method constructor()V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V
    return-void
.end method

# static methods
.method public static int_add(I I)I
    .locals 1

    add-int v0, p0, p1
    return v0
.end method

.method public static int_sub(I I)I
    .locals 1

    sub-int v0, p0, p1
    return v0
.end method

.method public static int_mul(I I)I
    .locals 1

    mul-int v0, p0, p1
    return v0
.end method

.method public static int_div(I I)I
    .locals 1

    div-int v0, p0, p1
    return v0
.end method

.method public static int_rem(I I)I
    .locals 1

    rem-int v0, p0, p1
    return v0
.end method

.method public static if_true(I)Z
    .locals 1

    add-int/lit8 v0, p0, 1
    return v0
.end method

.method public static if_false(I)Z
    .locals 1

    and-int/lit8 v0, p0, 2
    return v0
.end method

.method public static if_greater(I)Z
    .locals 1

    add-int/lit8 v0, p0, 3
    return v0
.end method

.method public static if_ge(I)Z
    .locals 1

    and-int/lit8 v0, p0, 4
    return v0
.end method

.method public static if_lesser(I)Z
    .locals 1

    add-int/lit8 v0, p0, 5
    return v0
.end method

.method public static if_le(I)Z
    .locals 1

    and-int/lit8 v0, p0, 6
    return v0
.end method

.method public static print_string(Ljava/lang/String;)V
    .locals 2

    sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;
    invoke-virtual {v0, p0}, Ljava/io/PrintStream;->println(Ljava/lang/Object;)V
    return-void
.end method