mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
Candidate release of source code.
This commit is contained in:
parent
db81e6b3b0
commit
79d8f164f8
12449 changed files with 2800756 additions and 16 deletions
88
Ghidra/Processors/JVM/resources/LVALong.java
Normal file
88
Ghidra/Processors/JVM/resources/LVALong.java
Normal file
|
@ -0,0 +1,88 @@
|
|||
/* ###
|
||||
* IP: GHIDRA
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
class LVALong{
|
||||
|
||||
|
||||
long test1(long a, long b, long c, long d){
|
||||
long w = a + b;
|
||||
long x = c + d;
|
||||
long y = test2(w);
|
||||
long z = test2(x);
|
||||
return y+z;
|
||||
}
|
||||
|
||||
|
||||
long test1_1(long a, long b, long c, long d){
|
||||
long w = a + b;
|
||||
long y = test2(w);
|
||||
long x = a + b;
|
||||
long z = test2(x);
|
||||
return y+z;
|
||||
}
|
||||
|
||||
long test1_2(long a, long b){
|
||||
long w = a + b;
|
||||
long z = test2(w);
|
||||
return z;
|
||||
}
|
||||
|
||||
int test1_2_int(int a, int b){
|
||||
int w = a + b;
|
||||
int z = test2int(w);
|
||||
return z;
|
||||
}
|
||||
|
||||
|
||||
long test1_2_long(int a, int b){
|
||||
long w = a + b;
|
||||
long z = test2(w);
|
||||
return z;
|
||||
}
|
||||
|
||||
|
||||
long test2( long a){
|
||||
return a+a;
|
||||
}
|
||||
|
||||
int test2int(int a){
|
||||
return a+a;
|
||||
}
|
||||
|
||||
long test3(long a, long b, long c, long d){
|
||||
long w = a + b;
|
||||
long x = c + d;
|
||||
long y = a + c;
|
||||
long z = b + d;
|
||||
return w+x+y+z;
|
||||
}
|
||||
|
||||
long mixed1(long a, int b){
|
||||
long x = a + (long) b;
|
||||
return x;
|
||||
}
|
||||
|
||||
long mixed2(int b, long a){
|
||||
long x = a + (long) b;
|
||||
return x;
|
||||
}
|
||||
|
||||
long mixed3(int a, long b, int c, long d){
|
||||
long x = (long) a;
|
||||
long y = (long) c;
|
||||
return x + y + b + d;
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue