Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- xmlvm2java test
- */
- public class Calculator
- extends java.lang.Object
- implements java.awt.event.ActionListener {
- // Declaration done
- static class XMLVMElem {
- boolean b;
- byte bt;
- short s;
- int i;
- long l;
- float f;
- double d;
- char c;
- Object o;
- }
- public static void main(java.lang.String[] __arg1)
- {
- XMLVMElem __r0 = new XMLVMElem();
- XMLVMElem __r1 = new XMLVMElem();
- __r1.o = __arg1;
- int __next_label = -1;
- while (true) {
- switch (__next_label) {
- case -1:
- // Calculator.java:295 // vm:source-position
- __r0.o = new Calculator(); // dex:invoke-direct
- ((Calculator)__r0.o).init(); // dex:invoke-virtual
- // Calculator.java:296 // vm:source-position
- return; // dex:return-void
- default:
- System.err.println("XMLVM internal error: reached default of switch");
- }
- }
- }//statics
- java.awt.TextField display = null;
- java.awt.Panel keys = null;
- int maxLength = 0;
- java.lang.String output = null;
- boolean decimal = false;
- float result = 0.0f;
- java.lang.String operation = null;
- boolean newNumber = false;
- boolean finished = false;
- boolean memory = false;
- float memoryValue = 0.0f;
- public Calculator()
- {
- XMLVMElem __r0 = new XMLVMElem();
- XMLVMElem __r1 = new XMLVMElem();
- XMLVMElem __r2 = new XMLVMElem();
- XMLVMElem __r3 = new XMLVMElem();
- __r3.o = this;
- int __next_label = -1;
- while (true) {
- switch (__next_label) {
- case -1:
- __r2.f = 0.0f; // dex:const-4
- __r1.i = 0; // dex:const-4
- // Calculator.java:6 // vm:source-position
- // super-constructor implicitly called, shouldn't call it again(); // dex:invoke-direct
- // Calculator.java:12 // vm:source-position
- __r0.i = 20; // dex:const-16
- ((Calculator)__r3.o).maxLength = __r0.i; // dex:iput
- // Calculator.java:13 // vm:source-position
- __r0.o = new java.lang.String("0"); // dex:const-string
- ((Calculator)__r3.o).output = ((java.lang.String)__r0.o); // dex:iput-object
- // Calculator.java:14 // vm:source-position
- ((Calculator)__r3.o).decimal = (__r1.i == 1); // dex:iput-boolean
- // Calculator.java:15 // vm:source-position
- ((Calculator)__r3.o).result = __r2.f; // dex:iput
- // Calculator.java:16 // vm:source-position
- __r0.o = new java.lang.String(""); // dex:const-string
- ((Calculator)__r3.o).operation = ((java.lang.String)__r0.o); // dex:iput-object
- // Calculator.java:17 // vm:source-position
- __r0.i = 1; // dex:const-4
- ((Calculator)__r3.o).newNumber = (__r0.i == 1); // dex:iput-boolean
- // Calculator.java:18 // vm:source-position
- ((Calculator)__r3.o).finished = (__r1.i == 1); // dex:iput-boolean
- // Calculator.java:19 // vm:source-position
- ((Calculator)__r3.o).memory = (__r1.i == 1); // dex:iput-boolean
- // Calculator.java:20 // vm:source-position
- ((Calculator)__r3.o).memoryValue = __r2.f; // dex:iput
- return; // dex:return-void
- default:
- System.err.println("XMLVM internal error: reached default of switch");
- }
- }
- }
- public void init()
- {
- XMLVMElem __r0 = new XMLVMElem();
- XMLVMElem __r1 = new XMLVMElem();
- XMLVMElem __r2 = new XMLVMElem();
- XMLVMElem __r3 = new XMLVMElem();
- XMLVMElem __r4 = new XMLVMElem();
- XMLVMElem __r5 = new XMLVMElem();
- XMLVMElem __r6 = new XMLVMElem();
- XMLVMElem __r7 = new XMLVMElem();
- XMLVMElem __r8 = new XMLVMElem();
- XMLVMElem __r9 = new XMLVMElem();
- XMLVMElem __r10 = new XMLVMElem();
- __r10.o = this;
- int __next_label = -1;
- while (true) {
- switch (__next_label) {
- case -1:
- __r9.i = 5; // dex:const-4
- __r6.i = 12; // dex:const-16
- __r5.i = 0; // dex:const-4
- __r8.o = new java.lang.String("Helvetica"); // dex:const-string
- __r7.o = new java.lang.String(""); // dex:const-string
- // Calculator.java:26 // vm:source-position
- __r0.o = new java.awt.Frame(); // dex:invoke-direct
- // Calculator.java:28 // vm:source-position
- __r1.o = new java.lang.String("XML11 Calculator"); // dex:const-string
- ((java.awt.Frame)__r0.o).setTitle(((java.lang.String)__r1.o)); // dex:invoke-virtual
- // Calculator.java:29 // vm:source-position
- __r1.o = new java.awt.FlowLayout(); // dex:invoke-direct
- ((java.awt.Frame)__r0.o).setLayout(((java.awt.LayoutManager)__r1.o)); // dex:invoke-virtual
- // Calculator.java:30 // vm:source-position
- __r2.o = new java.lang.String("Helvetica"); // dex:const-string
- __r1.o = new java.awt.Font(((java.lang.String)__r8.o), __r5.i, __r6.i); // dex:invoke-direct
- ((java.awt.Frame)__r0.o).setFont(((java.awt.Font)__r1.o)); // dex:invoke-virtual
- // Calculator.java:31 // vm:source-position
- __r1.o = java.awt.Color.white; // dex:sget-object
- ((java.awt.Frame)__r0.o).setBackground(((java.awt.Color)__r1.o)); // dex:invoke-virtual
- // Calculator.java:33 // vm:source-position
- __r1.o = new java.awt.Panel(); // dex:invoke-direct
- // Calculator.java:35 // vm:source-position
- __r2.o = new java.awt.BorderLayout(); // dex:invoke-direct
- ((java.awt.Panel)__r1.o).setLayout(((java.awt.LayoutManager)__r2.o)); // dex:invoke-virtual
- // Calculator.java:36 // vm:source-position
- __r3.o = new java.lang.String("Helvetica"); // dex:const-string
- __r2.o = new java.awt.Font(((java.lang.String)__r8.o), __r5.i, __r6.i); // dex:invoke-direct
- ((java.awt.Panel)__r1.o).setFont(((java.awt.Font)__r2.o)); // dex:invoke-virtual
- // Calculator.java:37 // vm:source-position
- __r2.o = java.awt.Color.lightGray; // dex:sget-object
- ((java.awt.Panel)__r1.o).setBackground(((java.awt.Color)__r2.o)); // dex:invoke-virtual
- // Calculator.java:39 // vm:source-position
- __r3.i = ((Calculator)__r10.o).maxLength; // dex:iget
- __r3.i = __r3.i + 1; // dex:add-int-lit8
- __r2.o = new java.awt.TextField(__r3.i); // dex:invoke-direct
- ((Calculator)__r10.o).display = ((java.awt.TextField)__r2.o); // dex:iput-object
- // Calculator.java:40 // vm:source-position
- __r2.o = ((Calculator)__r10.o).display; // dex:iget-object
- ((java.awt.TextField)__r2.o).setEditable(__r5.b); // dex:invoke-virtual
- // Calculator.java:41 // vm:source-position
- __r2.o = ((Calculator)__r10.o).display; // dex:iget-object
- __r4.o = new java.lang.String("Helvetica"); // dex:const-string
- __r3.o = new java.awt.Font(((java.lang.String)__r8.o), __r5.i, __r6.i); // dex:invoke-direct
- ((java.awt.TextField)__r2.o).setFont(((java.awt.Font)__r3.o)); // dex:invoke-virtual
- // Calculator.java:42 // vm:source-position
- __r2.o = ((Calculator)__r10.o).display; // dex:iget-object
- __r3.o = java.awt.Color.white; // dex:sget-object
- ((java.awt.TextField)__r2.o).setBackground(((java.awt.Color)__r3.o)); // dex:invoke-virtual
- // Calculator.java:44 // vm:source-position
- __r2.o = new java.awt.Panel(); // dex:invoke-direct
- ((Calculator)__r10.o).keys = ((java.awt.Panel)__r2.o); // dex:iput-object
- // Calculator.java:45 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.awt.GridLayout(__r9.i, __r9.i); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).setLayout(((java.awt.LayoutManager)__r3.o)); // dex:invoke-virtual
- // Calculator.java:46 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r4.o = new java.lang.String("Helvetica"); // dex:const-string
- __r3.o = new java.awt.Font(((java.lang.String)__r8.o), __r5.i, __r6.i); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).setFont(((java.awt.Font)__r3.o)); // dex:invoke-virtual
- // Calculator.java:47 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = java.awt.Color.lightGray; // dex:sget-object
- ((java.awt.Panel)__r2.o).setBackground(((java.awt.Color)__r3.o)); // dex:invoke-virtual
- // Calculator.java:49 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String("+/-"); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r3.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:50 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String(""); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r7.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:51 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String(""); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r7.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:52 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String(""); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r7.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:53 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String("AC"); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r3.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:55 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String("M+"); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r3.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:56 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String("7"); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r3.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:57 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String("8"); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r3.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:58 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String("9"); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r3.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:59 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String("/"); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r3.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:61 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String("M-"); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r3.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:62 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String("4"); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r3.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:63 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String("5"); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r3.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:64 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String("6"); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r3.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:65 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String("x"); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r3.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:67 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String("MR"); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r3.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:68 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String("1"); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r3.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:69 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String("2"); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r3.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:70 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String("3"); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r3.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:71 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String("-"); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r3.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:73 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String("MC"); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r3.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:74 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String("0"); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r3.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:75 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String("."); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r3.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:76 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String("="); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r3.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:77 // vm:source-position
- __r2.o = ((Calculator)__r10.o).keys; // dex:iget-object
- __r3.o = new java.lang.String("+"); // dex:const-string
- __r3.o = ((Calculator)__r10.o).addButton(((java.lang.String)__r3.o)); // dex:invoke-direct
- ((java.awt.Panel)__r2.o).add(((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:79 // vm:source-position
- __r2.o = new java.lang.String("North"); // dex:const-string
- __r3.o = ((Calculator)__r10.o).display; // dex:iget-object
- ((java.awt.Panel)__r1.o).add(((java.lang.String)__r2.o), ((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:80 // vm:source-position
- __r2.o = new java.lang.String("Center"); // dex:const-string
- __r4.o = new java.lang.String(""); // dex:const-string
- __r3.o = new java.awt.Label(((java.lang.String)__r7.o)); // dex:invoke-direct
- ((java.awt.Panel)__r1.o).add(((java.lang.String)__r2.o), ((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:81 // vm:source-position
- __r2.o = new java.lang.String("South"); // dex:const-string
- __r3.o = ((Calculator)__r10.o).keys; // dex:iget-object
- ((java.awt.Panel)__r1.o).add(((java.lang.String)__r2.o), ((java.awt.Component)__r3.o)); // dex:invoke-virtual
- // Calculator.java:83 // vm:source-position
- ((Calculator)__r10.o).updateDisplay(); // dex:invoke-virtual
- // Calculator.java:85 // vm:source-position
- ((java.awt.Frame)__r0.o).add(((java.awt.Component)__r1.o)); // dex:invoke-virtual
- // Calculator.java:86 // vm:source-position
- ((java.awt.Frame)__r0.o).pack(); // dex:invoke-virtual
- // Calculator.java:87 // vm:source-position
- __r1.i = 1; // dex:const-4
- ((java.awt.Frame)__r0.o).setVisible(__r1.b); // dex:invoke-virtual
- // Calculator.java:88 // vm:source-position
- return; // dex:return-void
- default:
- System.err.println("XMLVM internal error: reached default of switch");
- }
- }
- }
- private java.awt.Button addButton(java.lang.String __arg1)
- {
- XMLVMElem __r0 = new XMLVMElem();
- XMLVMElem __r1 = new XMLVMElem();
- XMLVMElem __r2 = new XMLVMElem();
- __r1.o = this;
- __r2.o = __arg1;
- int __next_label = -1;
- while (true) {
- switch (__next_label) {
- case -1:
- // Calculator.java:94 // vm:source-position
- __r0.o = new java.awt.Button(((java.lang.String)__r2.o)); // dex:invoke-direct
- // Calculator.java:95 // vm:source-position
- ((java.awt.Button)__r0.o).addActionListener(((java.awt.event.ActionListener)__r1.o)); // dex:invoke-virtual
- // Calculator.java:96 // vm:source-position
- return ((java.awt.Button)__r0.o); // dex:return-object
- default:
- System.err.println("XMLVM internal error: reached default of switch");
- }
- }
- }
- public void updateDisplay()
- {
- XMLVMElem __r0 = new XMLVMElem();
- XMLVMElem __r1 = new XMLVMElem();
- XMLVMElem __r2 = new XMLVMElem();
- XMLVMElem __r3 = new XMLVMElem();
- XMLVMElem __r4 = new XMLVMElem();
- XMLVMElem __r5 = new XMLVMElem();
- __r5.o = this;
- int __next_label = -1;
- while (true) {
- switch (__next_label) {
- case -1:
- __r4.i = 1; // dex:const-4
- // Calculator.java:103 // vm:source-position
- __r0.o = new java.lang.String(""); // dex:const-string
- __r1 = __r0; // dex:move-object
- __r0 = __r4; // dex:move
- case 5: // dex:label
- // Calculator.java:104 // vm:source-position
- __r2.i = ((Calculator)__r5.o).maxLength; // dex:iget
- __r3.o = ((Calculator)__r5.o).output; // dex:iget-object
- __r3.o = ((java.lang.String)__r3.o).length(); // dex:invoke-virtual
- __r2.i = __r2.i - __r3.i; // dex:sub-int-2addr
- if (__r0.i > __r2.i){ __next_label = 64; break; } // dex:if-gt
- // Calculator.java:105 // vm:source-position
- if (__r0.i != __r4.i){ __next_label = 44; break; } // dex:if-ne
- __r2.b = ((Calculator)__r5.o).memory; // dex:iget-boolean
- if (__r2.i == 0){ __next_label = 44; break; } // dex:if-eqz
- // Calculator.java:106 // vm:source-position
- __r2.o = new java.lang.StringBuilder(); // dex:invoke-direct
- __r1.o = ((java.lang.StringBuilder)__r2.o).append(((java.lang.String)__r1.o)); // dex:invoke-virtual
- __r2.o = new java.lang.String("M"); // dex:const-string
- __r1.o = ((java.lang.StringBuilder)__r1.o).append(((java.lang.String)__r2.o)); // dex:invoke-virtual
- __r1.o = ((java.lang.StringBuilder)__r1.o).toString(); // dex:invoke-virtual
- case 41: // dex:label
- __r0.i = __r0.i + 1; // dex:add-int-lit8
- __next_label = 5; break; // dex:goto
- case 44: // dex:label
- // Calculator.java:108 // vm:source-position
- __r2.o = new java.lang.StringBuilder(); // dex:invoke-direct
- __r1.o = ((java.lang.StringBuilder)__r2.o).append(((java.lang.String)__r1.o)); // dex:invoke-virtual
- __r2.o = new java.lang.String("_"); // dex:const-string
- __r1.o = ((java.lang.StringBuilder)__r1.o).append(((java.lang.String)__r2.o)); // dex:invoke-virtual
- __r1.o = ((java.lang.StringBuilder)__r1.o).toString(); // dex:invoke-virtual
- __next_label = 41; break; // dex:goto
- case 64: // dex:label
- // Calculator.java:111 // vm:source-position
- __r0.o = new java.lang.StringBuilder(); // dex:invoke-direct
- __r0.o = ((java.lang.StringBuilder)__r0.o).append(((java.lang.String)__r1.o)); // dex:invoke-virtual
- __r1.o = ((Calculator)__r5.o).output; // dex:iget-object
- __r0.o = ((java.lang.StringBuilder)__r0.o).append(((java.lang.String)__r1.o)); // dex:invoke-virtual
- __r0.o = ((java.lang.StringBuilder)__r0.o).toString(); // dex:invoke-virtual
- // Calculator.java:112 // vm:source-position
- __r1.o = ((Calculator)__r5.o).display; // dex:iget-object
- ((java.awt.TextField)__r1.o).setText(((java.lang.String)__r0.o)); // dex:invoke-virtual
- // Calculator.java:113 // vm:source-position
- return; // dex:return-void
- default:
- System.err.println("XMLVM internal error: reached default of switch");
- }
- }
- }
- public void appendDigit(java.lang.String __arg1)
- {
- XMLVMElem __r0 = new XMLVMElem();
- XMLVMElem __r1 = new XMLVMElem();
- XMLVMElem __r2 = new XMLVMElem();
- XMLVMElem __r3 = new XMLVMElem();
- XMLVMElem __r4 = new XMLVMElem();
- XMLVMElem __r5 = new XMLVMElem();
- __r4.o = this;
- __r5.o = __arg1;
- int __next_label = -1;
- while (true) {
- switch (__next_label) {
- case -1:
- __r3.i = 0; // dex:const-4
- __r2.o = new java.lang.String(""); // dex:const-string
- // Calculator.java:119 // vm:source-position
- __r0.o = ((Calculator)__r4.o).output; // dex:iget-object
- __r1.o = new java.lang.String("0"); // dex:const-string
- if (((java.lang.String)__r0.o) != ((java.lang.String)__r1.o)){ __next_label = 13; break; } // dex:if-ne
- // Calculator.java:120 // vm:source-position
- __r0.o = new java.lang.String(""); // dex:const-string
- ((Calculator)__r4.o).output = ((java.lang.String)__r2.o); // dex:iput-object
- case 13: // dex:label
- // Calculator.java:122 // vm:source-position
- __r0.o = ((Calculator)__r4.o).output; // dex:iget-object
- __r0.o = ((java.lang.String)__r0.o).length(); // dex:invoke-virtual
- __r1.i = ((Calculator)__r4.o).maxLength; // dex:iget
- if (__r0.i >= __r1.i){ __next_label = 34; break; } // dex:if-ge
- // Calculator.java:123 // vm:source-position
- __r0.b = ((Calculator)__r4.o).newNumber; // dex:iget-boolean
- if (__r0.i == 0){ __next_label = 63; break; } // dex:if-eqz
- // Calculator.java:124 // vm:source-position
- ((Calculator)__r4.o).output = ((java.lang.String)__r5.o); // dex:iput-object
- // Calculator.java:125 // vm:source-position
- ((Calculator)__r4.o).newNumber = (__r3.i == 1); // dex:iput-boolean
- case 31: // dex:label
- // Calculator.java:129 // vm:source-position
- ((Calculator)__r4.o).updateDisplay(); // dex:invoke-virtual
- case 34: // dex:label
- // Calculator.java:132 // vm:source-position
- __r0.b = ((Calculator)__r4.o).finished; // dex:iget-boolean
- if (__r0.i != 0){ __next_label = 44; break; } // dex:if-nez
- __r0.o = ((Calculator)__r4.o).operation; // dex:iget-object
- __r1.o = new java.lang.String(""); // dex:const-string
- if (((java.lang.String)__r0.o) != ((java.lang.String)__r2.o)){ __next_label = 62; break; } // dex:if-ne
- case 44: // dex:label
- // Calculator.java:133 // vm:source-position
- __r0.o = ((Calculator)__r4.o).output; // dex:iget-object
- __r0.o = java.lang.Float.valueOf(((java.lang.String)__r0.o)); // dex:invoke-static
- __r0.o = ((java.lang.Float)__r0.o).floatValue(); // dex:invoke-virtual
- ((Calculator)__r4.o).result = __r0.f; // dex:iput
- // Calculator.java:134 // vm:source-position
- ((Calculator)__r4.o).finished = (__r3.i == 1); // dex:iput-boolean
- // Calculator.java:135 // vm:source-position
- __r0.o = new java.lang.String(""); // dex:const-string
- ((Calculator)__r4.o).operation = ((java.lang.String)__r2.o); // dex:iput-object
- case 62: // dex:label
- // Calculator.java:137 // vm:source-position
- return; // dex:return-void
- case 63: // dex:label
- // Calculator.java:128 // vm:source-position
- __r0.o = new java.lang.StringBuilder(); // dex:invoke-direct
- __r1.o = ((Calculator)__r4.o).output; // dex:iget-object
- __r0.o = ((java.lang.StringBuilder)__r0.o).append(((java.lang.String)__r1.o)); // dex:invoke-virtual
- __r0.o = ((java.lang.StringBuilder)__r0.o).append(((java.lang.String)__r5.o)); // dex:invoke-virtual
- __r0.o = ((java.lang.StringBuilder)__r0.o).toString(); // dex:invoke-virtual
- ((Calculator)__r4.o).output = ((java.lang.String)__r0.o); // dex:iput-object
- __next_label = 31; break; // dex:goto
- default:
- System.err.println("XMLVM internal error: reached default of switch");
- }
- }
- }
- public void key_equals()
- {
- XMLVMElem __r0 = new XMLVMElem();
- XMLVMElem __r1 = new XMLVMElem();
- XMLVMElem __r2 = new XMLVMElem();
- __r2.o = this;
- int __next_label = -1;
- while (true) {
- switch (__next_label) {
- case -1:
- __r1.i = 1; // dex:const-4
- // Calculator.java:143 // vm:source-position
- ((Calculator)__r2.o).evaluate(); // dex:invoke-virtual
- // Calculator.java:145 // vm:source-position
- __r0.o = new java.lang.String(""); // dex:const-string
- ((Calculator)__r2.o).operation = ((java.lang.String)__r0.o); // dex:iput-object
- // Calculator.java:146 // vm:source-position
- ((Calculator)__r2.o).newNumber = (__r1.i == 1); // dex:iput-boolean
- // Calculator.java:147 // vm:source-position
- __r0.i = 0; // dex:const-4
- ((Calculator)__r2.o).decimal = (__r0.i == 1); // dex:iput-boolean
- // Calculator.java:148 // vm:source-position
- ((Calculator)__r2.o).finished = (__r1.i == 1); // dex:iput-boolean
- // Calculator.java:149 // vm:source-position
- return; // dex:return-void
- default:
- System.err.println("XMLVM internal error: reached default of switch");
- }
- }
- }
- public void evaluate()
- {
- XMLVMElem __r0 = new XMLVMElem();
- XMLVMElem __r1 = new XMLVMElem();
- XMLVMElem __r2 = new XMLVMElem();
- XMLVMElem __r3 = new XMLVMElem();
- XMLVMElem __r4 = new XMLVMElem();
- __r4.o = this;
- int __next_label = -1;
- while (true) {
- switch (__next_label) {
- case -1:
- __r3.i = 1; // dex:const-4
- __r2.i = 0; // dex:const-4
- // Calculator.java:155 // vm:source-position
- __r0.o = ((Calculator)__r4.o).operation; // dex:iget-object
- __r1.o = new java.lang.String("plus"); // dex:const-string
- __r0.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r0.i == 0){ __next_label = 49; break; } // dex:if-eqz
- // Calculator.java:156 // vm:source-position
- __r0.f = ((Calculator)__r4.o).result; // dex:iget
- __r1.o = ((Calculator)__r4.o).output; // dex:iget-object
- __r1.o = java.lang.Float.valueOf(((java.lang.String)__r1.o)); // dex:invoke-static
- __r1.o = ((java.lang.Float)__r1.o).floatValue(); // dex:invoke-virtual
- __r0.f = __r0.f + __r1.f; // dex:add-float-2addr
- ((Calculator)__r4.o).result = __r0.f; // dex:iput
- case 27: // dex:label
- // Calculator.java:166 // vm:source-position
- __r0.b = ((Calculator)__r4.o).finished; // dex:iget-boolean
- if (__r0.i != __r3.i){ __next_label = 33; break; } // dex:if-ne
- // Calculator.java:167 // vm:source-position
- ((Calculator)__r4.o).finished = (__r2.i == 1); // dex:iput-boolean
- case 33: // dex:label
- // Calculator.java:169 // vm:source-position
- __r0.f = ((Calculator)__r4.o).result; // dex:iget
- __r0.o = java.lang.Float.toString(__r0.f); // dex:invoke-static
- ((Calculator)__r4.o).output = ((java.lang.String)__r0.o); // dex:iput-object
- // Calculator.java:170 // vm:source-position
- ((Calculator)__r4.o).updateDisplay(); // dex:invoke-virtual
- // Calculator.java:172 // vm:source-position
- ((Calculator)__r4.o).newNumber = (__r3.i == 1); // dex:iput-boolean
- // Calculator.java:173 // vm:source-position
- ((Calculator)__r4.o).decimal = (__r2.i == 1); // dex:iput-boolean
- // Calculator.java:174 // vm:source-position
- return; // dex:return-void
- case 49: // dex:label
- // Calculator.java:157 // vm:source-position
- __r0.o = ((Calculator)__r4.o).operation; // dex:iget-object
- __r1.o = new java.lang.String("minus"); // dex:const-string
- __r0.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r0.i == 0){ __next_label = 75; break; } // dex:if-eqz
- // Calculator.java:158 // vm:source-position
- __r0.f = ((Calculator)__r4.o).result; // dex:iget
- __r1.o = ((Calculator)__r4.o).output; // dex:iget-object
- __r1.o = java.lang.Float.valueOf(((java.lang.String)__r1.o)); // dex:invoke-static
- __r1.o = ((java.lang.Float)__r1.o).floatValue(); // dex:invoke-virtual
- __r0.f = __r0.f - __r1.f; // dex:sub-float-2addr
- ((Calculator)__r4.o).result = __r0.f; // dex:iput
- __next_label = 27; break; // dex:goto
- case 75: // dex:label
- // Calculator.java:159 // vm:source-position
- __r0.o = ((Calculator)__r4.o).operation; // dex:iget-object
- __r1.o = new java.lang.String("times"); // dex:const-string
- __r0.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r0.i == 0){ __next_label = 101; break; } // dex:if-eqz
- // Calculator.java:160 // vm:source-position
- __r0.f = ((Calculator)__r4.o).result; // dex:iget
- __r1.o = ((Calculator)__r4.o).output; // dex:iget-object
- __r1.o = java.lang.Float.valueOf(((java.lang.String)__r1.o)); // dex:invoke-static
- __r1.o = ((java.lang.Float)__r1.o).floatValue(); // dex:invoke-virtual
- __r0.f = __r0.f * __r1.f; // dex:mul-float-2addr
- ((Calculator)__r4.o).result = __r0.f; // dex:iput
- __next_label = 27; break; // dex:goto
- case 101: // dex:label
- // Calculator.java:161 // vm:source-position
- __r0.o = ((Calculator)__r4.o).operation; // dex:iget-object
- __r1.o = new java.lang.String("div"); // dex:const-string
- __r0.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r0.i == 0){ __next_label = 127; break; } // dex:if-eqz
- // Calculator.java:162 // vm:source-position
- __r0.f = ((Calculator)__r4.o).result; // dex:iget
- __r1.o = ((Calculator)__r4.o).output; // dex:iget-object
- __r1.o = java.lang.Float.valueOf(((java.lang.String)__r1.o)); // dex:invoke-static
- __r1.o = ((java.lang.Float)__r1.o).floatValue(); // dex:invoke-virtual
- __r0.f = __r0.f / __r1.f; // dex:div-float-2addr
- ((Calculator)__r4.o).result = __r0.f; // dex:iput
- __next_label = 27; break; // dex:goto
- case 127: // dex:label
- // Calculator.java:164 // vm:source-position
- __r0.o = ((Calculator)__r4.o).output; // dex:iget-object
- __r0.o = java.lang.Float.valueOf(((java.lang.String)__r0.o)); // dex:invoke-static
- __r0.o = ((java.lang.Float)__r0.o).floatValue(); // dex:invoke-virtual
- ((Calculator)__r4.o).result = __r0.f; // dex:iput
- __next_label = 27; break; // dex:goto
- default:
- System.err.println("XMLVM internal error: reached default of switch");
- }
- }
- }
- public void actionPerformed(java.awt.event.ActionEvent __arg1)
- {
- XMLVMElem __r0 = new XMLVMElem();
- XMLVMElem __r1 = new XMLVMElem();
- XMLVMElem __r2 = new XMLVMElem();
- XMLVMElem __r3 = new XMLVMElem();
- XMLVMElem __r4 = new XMLVMElem();
- XMLVMElem __r5 = new XMLVMElem();
- XMLVMElem __r6 = new XMLVMElem();
- XMLVMElem __r7 = new XMLVMElem();
- XMLVMElem __r8 = new XMLVMElem();
- XMLVMElem __r9 = new XMLVMElem();
- __r8.o = this;
- __r9.o = __arg1;
- int __next_label = -1;
- while (true) {
- switch (__next_label) {
- case -1:
- __r6.f = 0.0f; // dex:const-4
- __r4.i = 0; // dex:const-4
- __r3.i = 1; // dex:const-4
- __r7.o = new java.lang.String(""); // dex:const-string
- __r5.o = new java.lang.String("0"); // dex:const-string
- // Calculator.java:180 // vm:source-position
- __r0.o = ((java.awt.event.ActionEvent)__r9.o).getActionCommand(); // dex:invoke-virtual
- // Calculator.java:182 // vm:source-position
- __r1.o = new java.lang.String("AC"); // dex:const-string
- __r1.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r1.i == 0){ __next_label = 42; break; } // dex:if-eqz
- // Calculator.java:183 // vm:source-position
- ((Calculator)__r8.o).result = __r6.f; // dex:iput
- // Calculator.java:184 // vm:source-position
- __r1.f = ((Calculator)__r8.o).result; // dex:iget
- __r1.o = java.lang.Float.toString(__r1.f); // dex:invoke-static
- ((Calculator)__r8.o).output = ((java.lang.String)__r1.o); // dex:iput-object
- // Calculator.java:186 // vm:source-position
- __r1.o = new java.lang.String(""); // dex:const-string
- ((Calculator)__r8.o).operation = ((java.lang.String)__r7.o); // dex:iput-object
- // Calculator.java:187 // vm:source-position
- ((Calculator)__r8.o).newNumber = (__r3.i == 1); // dex:iput-boolean
- // Calculator.java:188 // vm:source-position
- ((Calculator)__r8.o).decimal = (__r4.i == 1); // dex:iput-boolean
- // Calculator.java:189 // vm:source-position
- ((Calculator)__r8.o).finished = (__r3.i == 1); // dex:iput-boolean
- // Calculator.java:191 // vm:source-position
- ((Calculator)__r8.o).updateDisplay(); // dex:invoke-virtual
- case 42: // dex:label
- // Calculator.java:194 // vm:source-position
- __r1.o = new java.lang.String("+/-"); // dex:const-string
- __r1.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r1.i == 0){ __next_label = 72; break; } // dex:if-eqz
- // Calculator.java:195 // vm:source-position
- __r1.o = ((Calculator)__r8.o).output; // dex:iget-object
- __r1.o = java.lang.Float.valueOf(((java.lang.String)__r1.o)); // dex:invoke-static
- __r1.o = ((java.lang.Float)__r1.o).floatValue(); // dex:invoke-virtual
- // Calculator.java:196 // vm:source-position
- __r2.f = -1.0f; // dex:const-high16
- __r1.f = __r1.f * __r2.f; // dex:mul-float-2addr
- // Calculator.java:197 // vm:source-position
- __r1.o = java.lang.Float.toString(__r1.f); // dex:invoke-static
- ((Calculator)__r8.o).output = ((java.lang.String)__r1.o); // dex:iput-object
- // Calculator.java:198 // vm:source-position
- ((Calculator)__r8.o).updateDisplay(); // dex:invoke-virtual
- case 72: // dex:label
- // Calculator.java:201 // vm:source-position
- __r1.o = new java.lang.String("1"); // dex:const-string
- __r1.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r1.i == 0){ __next_label = 85; break; } // dex:if-eqz
- // Calculator.java:202 // vm:source-position
- __r1.o = new java.lang.String("1"); // dex:const-string
- ((Calculator)__r8.o).appendDigit(((java.lang.String)__r1.o)); // dex:invoke-virtual
- case 85: // dex:label
- // Calculator.java:203 // vm:source-position
- __r1.o = new java.lang.String("2"); // dex:const-string
- __r1.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r1.i == 0){ __next_label = 98; break; } // dex:if-eqz
- // Calculator.java:204 // vm:source-position
- __r1.o = new java.lang.String("2"); // dex:const-string
- ((Calculator)__r8.o).appendDigit(((java.lang.String)__r1.o)); // dex:invoke-virtual
- case 98: // dex:label
- // Calculator.java:205 // vm:source-position
- __r1.o = new java.lang.String("3"); // dex:const-string
- __r1.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r1.i == 0){ __next_label = 111; break; } // dex:if-eqz
- // Calculator.java:206 // vm:source-position
- __r1.o = new java.lang.String("3"); // dex:const-string
- ((Calculator)__r8.o).appendDigit(((java.lang.String)__r1.o)); // dex:invoke-virtual
- case 111: // dex:label
- // Calculator.java:207 // vm:source-position
- __r1.o = new java.lang.String("4"); // dex:const-string
- __r1.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r1.i == 0){ __next_label = 124; break; } // dex:if-eqz
- // Calculator.java:208 // vm:source-position
- __r1.o = new java.lang.String("4"); // dex:const-string
- ((Calculator)__r8.o).appendDigit(((java.lang.String)__r1.o)); // dex:invoke-virtual
- case 124: // dex:label
- // Calculator.java:209 // vm:source-position
- __r1.o = new java.lang.String("5"); // dex:const-string
- __r1.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r1.i == 0){ __next_label = 137; break; } // dex:if-eqz
- // Calculator.java:210 // vm:source-position
- __r1.o = new java.lang.String("5"); // dex:const-string
- ((Calculator)__r8.o).appendDigit(((java.lang.String)__r1.o)); // dex:invoke-virtual
- case 137: // dex:label
- // Calculator.java:211 // vm:source-position
- __r1.o = new java.lang.String("6"); // dex:const-string
- __r1.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r1.i == 0){ __next_label = 150; break; } // dex:if-eqz
- // Calculator.java:212 // vm:source-position
- __r1.o = new java.lang.String("6"); // dex:const-string
- ((Calculator)__r8.o).appendDigit(((java.lang.String)__r1.o)); // dex:invoke-virtual
- case 150: // dex:label
- // Calculator.java:213 // vm:source-position
- __r1.o = new java.lang.String("7"); // dex:const-string
- __r1.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r1.i == 0){ __next_label = 163; break; } // dex:if-eqz
- // Calculator.java:214 // vm:source-position
- __r1.o = new java.lang.String("7"); // dex:const-string
- ((Calculator)__r8.o).appendDigit(((java.lang.String)__r1.o)); // dex:invoke-virtual
- case 163: // dex:label
- // Calculator.java:215 // vm:source-position
- __r1.o = new java.lang.String("8"); // dex:const-string
- __r1.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r1.i == 0){ __next_label = 176; break; } // dex:if-eqz
- // Calculator.java:216 // vm:source-position
- __r1.o = new java.lang.String("8"); // dex:const-string
- ((Calculator)__r8.o).appendDigit(((java.lang.String)__r1.o)); // dex:invoke-virtual
- case 176: // dex:label
- // Calculator.java:217 // vm:source-position
- __r1.o = new java.lang.String("9"); // dex:const-string
- __r1.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r1.i == 0){ __next_label = 189; break; } // dex:if-eqz
- // Calculator.java:218 // vm:source-position
- __r1.o = new java.lang.String("9"); // dex:const-string
- ((Calculator)__r8.o).appendDigit(((java.lang.String)__r1.o)); // dex:invoke-virtual
- case 189: // dex:label
- // Calculator.java:219 // vm:source-position
- __r1.o = new java.lang.String("0"); // dex:const-string
- __r1.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r5.o)); // dex:invoke-virtual
- if (__r1.i == 0){ __next_label = 210; break; } // dex:if-eqz
- // Calculator.java:220 // vm:source-position
- __r1.o = ((Calculator)__r8.o).output; // dex:iget-object
- __r1.o = ((java.lang.String)__r1.o).length(); // dex:invoke-virtual
- if (__r1.i == 0){ __next_label = 210; break; } // dex:if-eqz
- // Calculator.java:221 // vm:source-position
- __r1.o = new java.lang.String("0"); // dex:const-string
- ((Calculator)__r8.o).appendDigit(((java.lang.String)__r5.o)); // dex:invoke-virtual
- case 210: // dex:label
- // Calculator.java:223 // vm:source-position
- __r1.o = new java.lang.String("."); // dex:const-string
- __r1.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r1.i == 0){ __next_label = 255; break; } // dex:if-eqz
- // Calculator.java:224 // vm:source-position
- __r1.o = ((Calculator)__r8.o).output; // dex:iget-object
- __r1.o = ((java.lang.String)__r1.o).length(); // dex:invoke-virtual
- __r2.i = ((Calculator)__r8.o).maxLength; // dex:iget
- if (__r1.i >= __r2.i){ __next_label = 255; break; } // dex:if-ge
- // Calculator.java:225 // vm:source-position
- __r1.b = ((Calculator)__r8.o).decimal; // dex:iget-boolean
- if (__r1.i != 0){ __next_label = 255; break; } // dex:if-nez
- // Calculator.java:226 // vm:source-position
- ((Calculator)__r8.o).decimal = (__r3.i == 1); // dex:iput-boolean
- // Calculator.java:227 // vm:source-position
- __r1.o = ((Calculator)__r8.o).output; // dex:iget-object
- __r1.o = ((java.lang.String)__r1.o).length(); // dex:invoke-virtual
- if (__r1.i == 0){ __next_label = 246; break; } // dex:if-eqz
- __r1.b = ((Calculator)__r8.o).newNumber; // dex:iget-boolean
- if (__r1.i == 0){ __next_label = 441; break; } // dex:if-eqz
- case 246: // dex:label
- // Calculator.java:228 // vm:source-position
- __r1.o = new java.lang.String("0."); // dex:const-string
- ((Calculator)__r8.o).output = ((java.lang.String)__r1.o); // dex:iput-object
- // Calculator.java:229 // vm:source-position
- ((Calculator)__r8.o).newNumber = (__r4.i == 1); // dex:iput-boolean
- case 252: // dex:label
- // Calculator.java:234 // vm:source-position
- ((Calculator)__r8.o).updateDisplay(); // dex:invoke-virtual
- case 255: // dex:label
- // Calculator.java:237 // vm:source-position
- __r1.o = new java.lang.String("="); // dex:const-string
- __r1.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r1.i == 0){ __next_label = 266; break; } // dex:if-eqz
- // Calculator.java:238 // vm:source-position
- ((Calculator)__r8.o).key_equals(); // dex:invoke-virtual
- case 266: // dex:label
- // Calculator.java:240 // vm:source-position
- __r1.o = new java.lang.String("+"); // dex:const-string
- __r1.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r1.i == 0){ __next_label = 281; break; } // dex:if-eqz
- // Calculator.java:241 // vm:source-position
- ((Calculator)__r8.o).evaluate(); // dex:invoke-virtual
- // Calculator.java:242 // vm:source-position
- __r1.o = new java.lang.String("plus"); // dex:const-string
- ((Calculator)__r8.o).operation = ((java.lang.String)__r1.o); // dex:iput-object
- case 281: // dex:label
- // Calculator.java:245 // vm:source-position
- __r1.o = new java.lang.String("-"); // dex:const-string
- __r1.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r1.i == 0){ __next_label = 296; break; } // dex:if-eqz
- // Calculator.java:246 // vm:source-position
- ((Calculator)__r8.o).evaluate(); // dex:invoke-virtual
- // Calculator.java:247 // vm:source-position
- __r1.o = new java.lang.String("minus"); // dex:const-string
- ((Calculator)__r8.o).operation = ((java.lang.String)__r1.o); // dex:iput-object
- case 296: // dex:label
- // Calculator.java:250 // vm:source-position
- __r1.o = new java.lang.String("x"); // dex:const-string
- __r1.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r1.i == 0){ __next_label = 311; break; } // dex:if-eqz
- // Calculator.java:251 // vm:source-position
- ((Calculator)__r8.o).evaluate(); // dex:invoke-virtual
- // Calculator.java:252 // vm:source-position
- __r1.o = new java.lang.String("times"); // dex:const-string
- ((Calculator)__r8.o).operation = ((java.lang.String)__r1.o); // dex:iput-object
- case 311: // dex:label
- // Calculator.java:255 // vm:source-position
- __r1.o = new java.lang.String("/"); // dex:const-string
- __r1.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r1.i == 0){ __next_label = 326; break; } // dex:if-eqz
- // Calculator.java:256 // vm:source-position
- ((Calculator)__r8.o).evaluate(); // dex:invoke-virtual
- // Calculator.java:257 // vm:source-position
- __r1.o = new java.lang.String("div"); // dex:const-string
- ((Calculator)__r8.o).operation = ((java.lang.String)__r1.o); // dex:iput-object
- case 326: // dex:label
- // Calculator.java:260 // vm:source-position
- __r1.o = new java.lang.String("M+"); // dex:const-string
- __r1.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r1.i == 0){ __next_label = 357; break; } // dex:if-eqz
- // Calculator.java:261 // vm:source-position
- ((Calculator)__r8.o).memory = (__r3.i == 1); // dex:iput-boolean
- // Calculator.java:262 // vm:source-position
- ((Calculator)__r8.o).key_equals(); // dex:invoke-virtual
- // Calculator.java:263 // vm:source-position
- __r1.f = ((Calculator)__r8.o).memoryValue; // dex:iget
- __r2.o = ((Calculator)__r8.o).output; // dex:iget-object
- __r2.o = java.lang.Float.valueOf(((java.lang.String)__r2.o)); // dex:invoke-static
- __r2.o = ((java.lang.Float)__r2.o).floatValue(); // dex:invoke-virtual
- __r1.f = __r1.f + __r2.f; // dex:add-float-2addr
- ((Calculator)__r8.o).memoryValue = __r1.f; // dex:iput
- // Calculator.java:264 // vm:source-position
- ((Calculator)__r8.o).updateDisplay(); // dex:invoke-virtual
- case 357: // dex:label
- // Calculator.java:267 // vm:source-position
- __r1.o = new java.lang.String("M-"); // dex:const-string
- __r1.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r1.i == 0){ __next_label = 388; break; } // dex:if-eqz
- // Calculator.java:268 // vm:source-position
- ((Calculator)__r8.o).memory = (__r3.i == 1); // dex:iput-boolean
- // Calculator.java:269 // vm:source-position
- ((Calculator)__r8.o).key_equals(); // dex:invoke-virtual
- // Calculator.java:270 // vm:source-position
- __r1.f = ((Calculator)__r8.o).memoryValue; // dex:iget
- __r2.o = ((Calculator)__r8.o).output; // dex:iget-object
- __r2.o = java.lang.Float.valueOf(((java.lang.String)__r2.o)); // dex:invoke-static
- __r2.o = ((java.lang.Float)__r2.o).floatValue(); // dex:invoke-virtual
- __r1.f = __r1.f - __r2.f; // dex:sub-float-2addr
- ((Calculator)__r8.o).memoryValue = __r1.f; // dex:iput
- // Calculator.java:271 // vm:source-position
- ((Calculator)__r8.o).updateDisplay(); // dex:invoke-virtual
- case 388: // dex:label
- // Calculator.java:274 // vm:source-position
- __r1.o = new java.lang.String("MR"); // dex:const-string
- __r1.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r1.i == 0){ __next_label = 411; break; } // dex:if-eqz
- // Calculator.java:275 // vm:source-position
- __r1.b = ((Calculator)__r8.o).memory; // dex:iget-boolean
- if (__r1.i == 0){ __next_label = 411; break; } // dex:if-eqz
- // Calculator.java:276 // vm:source-position
- __r1.f = ((Calculator)__r8.o).memoryValue; // dex:iget
- __r1.o = java.lang.Float.toString(__r1.f); // dex:invoke-static
- ((Calculator)__r8.o).output = ((java.lang.String)__r1.o); // dex:iput-object
- // Calculator.java:277 // vm:source-position
- ((Calculator)__r8.o).updateDisplay(); // dex:invoke-virtual
- case 411: // dex:label
- // Calculator.java:281 // vm:source-position
- __r1.o = new java.lang.String("MC"); // dex:const-string
- __r0.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r1.o)); // dex:invoke-virtual
- if (__r0.i == 0){ __next_label = 426; break; } // dex:if-eqz
- // Calculator.java:282 // vm:source-position
- ((Calculator)__r8.o).memory = (__r4.i == 1); // dex:iput-boolean
- // Calculator.java:283 // vm:source-position
- ((Calculator)__r8.o).memoryValue = __r6.f; // dex:iput
- // Calculator.java:284 // vm:source-position
- ((Calculator)__r8.o).updateDisplay(); // dex:invoke-virtual
- case 426: // dex:label
- // Calculator.java:287 // vm:source-position
- __r0.o = ((Calculator)__r8.o).output; // dex:iget-object
- __r1.o = new java.lang.String(""); // dex:const-string
- __r0.o = ((java.lang.String)__r0.o).equals(((java.lang.Object)__r7.o)); // dex:invoke-virtual
- if (__r0.i == 0){ __next_label = 440; break; } // dex:if-eqz
- // Calculator.java:288 // vm:source-position
- __r0.o = new java.lang.String("0"); // dex:const-string
- ((Calculator)__r8.o).output = ((java.lang.String)__r5.o); // dex:iput-object
- case 440: // dex:label
- // Calculator.java:289 // vm:source-position
- return; // dex:return-void
- case 441: // dex:label
- // Calculator.java:232 // vm:source-position
- __r1.o = new java.lang.StringBuilder(); // dex:invoke-direct
- __r2.o = ((Calculator)__r8.o).output; // dex:iget-object
- __r1.o = ((java.lang.StringBuilder)__r1.o).append(((java.lang.String)__r2.o)); // dex:invoke-virtual
- __r2.o = new java.lang.String("."); // dex:const-string
- __r1.o = ((java.lang.StringBuilder)__r1.o).append(((java.lang.String)__r2.o)); // dex:invoke-virtual
- __r1.o = ((java.lang.StringBuilder)__r1.o).toString(); // dex:invoke-virtual
- ((Calculator)__r8.o).output = ((java.lang.String)__r1.o); // dex:iput-object
- __next_label = 252; break; // dex:goto-16
- default:
- System.err.println("XMLVM internal error: reached default of switch");
- }
- }
- }
- } //members
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement