-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathTestBytecode.java
More file actions
110 lines (94 loc) · 1.79 KB
/
TestBytecode.java
File metadata and controls
110 lines (94 loc) · 1.79 KB
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
99
100
101
102
103
104
105
106
107
108
109
110
package symjava.bytecode;
import java.math.BigInteger;
public class TestBytecode {
public static double fun(double[] args) {
// return args[0] + args[1];
double s = Math.pow(2, 3);
return s;
}
public static void main(String[] args) {
// BigInteger b = 2;
// BigInteger c = BigInteger.valueOf(3);
// System.out.println(b<c);
// double a = 1.0;
// double b = 2.0;
// double c = 3.0;
// Boolean r = (a == b) | (a != c);
// int a = 1;
// int b = 0;
// boolean c = true, d = false;
// System.out.println(!c);
// boolean i =false;
// i=true;
// System.out.println(i);
// byte i =0;
// i=1;
// System.out.println(i);
// char i =0;
// i=1;
// System.out.println(i);
// short i =0;
// i=1;
// System.out.println(i);
// long l = 1;
// float f = 2.0f;
// System.out.println(l+f);
// String s = null;
// for(int i=0; i<10; i++) {
// s = args[i];
// if(i == 3) {
// s = "bbb";
// //break;
// }
// else
// s = "aaa";
// //s += "";
// StringBuilder ss = new StringBuilder();
// //ss.append(1);
// }
// System.out.println(s);
/*
double s = 1;
6: dcmpl
7: ifle 17
if(s > 0.5)
s++;
else
s--;
6: dcmpg
7: ifge 17
if(0.5 < s)
s++;
else
s--;
// 6: dcmpl
// 7: iflt 17
if(0.5 >= s)
s++;
else
s--;
// 6: dcmpg
// 7: ifgt 17
if(0.5 <= s)
s++;
else
s--;
*/
// double[] data = new double[] {1,2,3,4};
// double sum = 0;
// for(int i=0; i<data.length; i++) {
// sum = sum + i;
// //sum = sum + data[i];
// }
// System.out.println(sum);
int i=0;
int j=1;
double d=1;
double e=1;
int s = 0;
if(i>j && d>e) s = 0;
else s = 1;
if(d>e) s = 0;
else s = 1;
}
}