2 public class Parameter {
8 public Parameter() { a = 0; b = 0; f = null; g = null; }
10 public void bar() { foo(); }
11 public void foo() { bar(); }
14 public class Penguin {
17 public Penguin() { x = 0; y = 0; }
19 public void bar() { x = 1; }
23 flag f; int x; Baw b; Baw bb;
34 public void doTheBaw( Voo v ) { v = new Voo(); }
43 public void ruinSomeFoos( Foo a, Foo b ) {
48 // this empty task should still create a non-empty
49 // ownership graph showing parameter allocation
50 // look for the parameter s as a label referencing
51 // a heap region that is multi-object, flagged, not summary
52 task Startup( StartupObject s{ initialstate } ) {
58 c.ruinSomeFoos( a, b );
60 taskexit( s{ !initialstate } );
63 // this task allocates a new object, so there should
64 // be a heap region for the parameter, and several
65 // heap regions for the allocation site, but the label
66 // merely points to the newest region
68 task NewObject( Voo v{ f } ) {
77 task Branch( Voo v{ f } ) {
92 task NoAliasNewInLoop( Voo v{ f } ) {
95 for( int i = 0; i < 10; ++i ) {
104 task ClobberInitParamReflex( Voo v{ f }, Voo w{ f } ) {
107 taskexit( v{ !f }, w{ !f } );