svoid test_tok_simplyCachedFunctions() { testTranspilationFunction tok_simplyCachedFunctions( "transient simplyCached S x() { null; }", [[ transient S x_cache; S x() { if (x_cache == null) x_cache = x_load(); ret x_cache; } S x_load() { null; } ]], "simplyCached final S x() { null; }", [[ S x_cache; final S x() { if (x_cache == null) x_cache = x_load(); ret x_cache; } final S x_load() { null; } ]], "simplyCached void bla() { x(); }", [[ transient bool ran_x; void x() { if (ran_x) ret; set ran_x; x_impl(); } void x_impl() { x(); } ]], ); }