Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transformations #39

Closed
peterwvj opened this issue Oct 11, 2016 · 1 comment
Closed

Transformations #39

peterwvj opened this issue Oct 11, 2016 · 1 comment
Milestone

Comments

@peterwvj
Copy link
Member

peterwvj commented Oct 11, 2016

Id Input......................... Output Comment
1 values a: A a_const_init; a_const_deinit Handled by CreateGlobalConstInitFunctionTrans
2 static a: A a_static_init; a_static_deinit Handled by CreateGlobalStaticInitFunctionTrans
3 a: A a-constructor, destructor Handled by the class template
4 op(a,b,c()) apply_6(dcl a':? :=a);
apply_6(dcl b':? :=b);
apply_6(dcl c':? :=c());
op(a',b',c');
free(a',b',c')
5 x:= <exp> apply( dcl x': ? :=nil;)
{ x' = apply(<exp>) }
free(x)
x = clone(x')
6 dcl x : T := <exp> TVP x=NULL; + apply_5(x:=<exp>) separate declarations from assignments
7 dcl x : T; stmts TVP x; stmts; at exit point free(x)
iff last statement is different from return x
exit point is at return or at block end
8 <literal-bool> newBool(<literal-bool>)
8 <literal-int> newInt(<literal-int>)
8 <literal-real> newReal(<literal-real>)
8 <literal-char> newChar(<literal-char>)
9 if <exp> then <stm1> else <stm2> apply_7(dcl check:bool := <exp>)
if( boolValue(check ))
apply(<stm1>)
else
apply(<stm2>)

Open questions:

What about expressions on the form a.op1().op2().op3().

@peterwvj peterwvj modified the milestones: v0.0.12, v0.0.14 Nov 15, 2016
@peterwvj peterwvj modified the milestones: v0.0.14, v0.0.16, v0.0.18 Nov 30, 2016
@peterwvj peterwvj modified the milestones: v0.0.18, v0.0.20 Jan 31, 2017
@peterwvj peterwvj modified the milestones: v0.0.20, v0.0.22 Feb 9, 2017
@peterwvj peterwvj modified the milestones: v0.1.0, v0.1.2, v0.1.4 Mar 3, 2017
@peterwvj peterwvj modified the milestones: v0.1.4, v0.1.6 Mar 15, 2017
@peterwvj peterwvj modified the milestones: v0.1.6, v0.1.8 May 1, 2017
@peterwvj peterwvj modified the milestones: v0.1.8, v0.1.10 Jul 1, 2017
@peterwvj peterwvj modified the milestones: v0.1.10, v0.1.12 Aug 10, 2017
@peterwvj peterwvj modified the milestones: v0.1.12, v0.1.14 Sep 11, 2017
@peterwvj peterwvj modified the milestones: v0.1.14, v0.1.16 Sep 18, 2017
@peterwvj peterwvj modified the milestones: v0.1.16, v0.1.18 Oct 4, 2017
@bandurvp
Copy link
Contributor

No further plans to support the explicit approach to managing memroy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants