diff options
| author | bd-912 <bdunahu@colostate.edu> | 2024-05-03 17:50:02 -0600 |
|---|---|---|
| committer | bd-912 <bdunahu@colostate.edu> | 2024-05-03 17:50:02 -0600 |
| commit | 8b481ec08efa60d462897a98bec3f6761c2933d1 (patch) | |
| tree | 04e43861a364b8a9fe052057412f0c852c3ce334 /output/ex52.java | |
| parent | e8be6dd157bed1b09312aa360ec8ee2f41813d0f (diff) | |
Move creating temporaries to Expression statements in BoilVisitor
Diffstat (limited to 'output/ex52.java')
| -rw-r--r-- | output/ex52.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/output/ex52.java b/output/ex52.java new file mode 100644 index 0000000..6febcd5 --- /dev/null +++ b/output/ex52.java @@ -0,0 +1,28 @@ +class ex52{ + public static void main(String[] a){ + System.out.println(new Test().start()); + } +} + +class Test { + + Test test; + boolean b; + + public int start(){ + int val; + test = new Test(); + b = true; + b = test.next(); + if (!b) + val = 1; + else + val = 3; + return val; + } + + public boolean next(){ + return ((true && (7<8)) && b); + } + +} |
