You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I feed the TamerPlus with mainIR.m and myIfElseIR.m that it is expected to produce the 'same' code as the original code. But the user defined function myIfElseIR disappears in the main function mainIR. Maybe I should not use the program which contains temporary variables (e.g. mc_10).
% After Tamer plusfunction [z] = mainIR(x)
[n] = plus(x, mc_t9);
[z] = zeros(mc_t10, n);
for i = (mc_t12:n);
z(i) =mc_t8; %one line is missingendendfunction [z] = myIfElse(a, b)
[z] = minus(a, 1);
if gt(a, b)
[z] = plus(b, 1);
elseendend
The Java code I used to invoke TamerPlus is listed below.
Originally, I have two MATLAB files:
main.m
andmyIfElse.m
.After I get the TameIR of the two files and save it for each file as follows (
mainIR.m
andmyIfElseIR.m
).I feed the TamerPlus with
mainIR.m
andmyIfElseIR.m
that it is expected to produce the 'same' code as the original code. But the user defined functionmyIfElseIR
disappears in the main functionmainIR
. Maybe I should not use the program which contains temporary variables (e.g.mc_10
).The Java code I used to invoke TamerPlus is listed below.
The text was updated successfully, but these errors were encountered: