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
Attempt to fix generation of CALL expressions on lhs of assignments and solved equations. (#592)
- Do not expand records when differentiating functions.
- Try simplifying a RSUB expression before differentiating.
- Print error when finding a CALL expression on the lhs.
// <%error(sourceInfo(), 'Left hand side of an assignment is a call expression. <%ExpressionDumpTpl.dumpExp(exp1,"\"")%> = <%ExpressionDumpTpl.dumpExp(exp,"\"")%>')%>
2850
+
// let tmp_rec = tempDecl(rec_typename,&varDecls)
2851
+
// let rhs = daeExp(rhs_exp, context, &preExp, &varDecls, &auxFunction)
2852
+
// let vars = args |> arg => ( ", &(" + daeExp(arg, context, &preExp, &varDecls, &auxFunction) + ")" )
error(sourceInfo(), 'Left hand side of an assignment is a call expression. <%ExpressionDumpTpl.dumpExp(exp1,"\"")%> = <%ExpressionDumpTpl.dumpExp(exp,"\"")%>')
2858
2866
case STMT_ASSIGN(exp1=RECORD(), type_ = ty as T_COMPLEX(complexClassType=RECORD(__))) then
2859
2867
error(sourceInfo(), 'Left hand side of an assignment is a record expression. <%ExpressionDumpTpl.dumpExp(exp1,"\"")%>')
0 commit comments