Changeset 13958


Ignore:
Timestamp:
2012-11-19T11:55:36+01:00 (11 years ago)
Author:
perost
Message:
  • Fix SusanTest.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/testsuite/openmodelica/bootstrapping/SusanTest.mos

    r13424 r13958  
    104104// 0
    105105// 0
    106 // 0
    107 // ""
     106// 1
     107// "--- theirs  2012-11-19 11:53:22.763339159 +0100
     108// +++ mine 2012-11-19 11:53:22.793339563 +0100
     109// @@ -42457,6 +42457,7 @@
     110//        DAE.Exp i_minlen;
     111//        DAE.Exp i_format;
     112//        DAE.Exp i_s;
     113// +      DAE.Exp i_B;
     114//        DAE.Exp i_v2;
     115//        DAE.Exp i_v1;
     116//        DAE.Exp i_n;
     117// @@ -43065,6 +43066,29 @@
     118//        then (txt, a_preExp, a_varDecls);
     119// 
     120//      case ( txt,
     121// +           DAE.CALL(path = Absyn.IDENT(name = \"outerProduct\"), expLst = {i_A, i_B}),
     122// +           a_context,
     123// +           a_preExp,
     124// +           a_varDecls )
     125// +      equation
     126// +        (l_var1, a_preExp, a_varDecls) = daeExp(Tpl.emptyTxt, i_A, a_context, a_preExp, a_varDecls);
     127// +        (l_var2, a_preExp, a_varDecls) = daeExp(Tpl.emptyTxt, i_B, a_context, a_preExp, a_varDecls);
     128// +        l_arr__tp__str = expTypeFromExpArray(Tpl.emptyTxt, i_A);
     129// +        (l_tvar, a_varDecls) = tempDecl(Tpl.emptyTxt, Tpl.textString(l_arr__tp__str), a_varDecls);
     130// +        a_preExp = Tpl.writeTok(a_preExp, Tpl.ST_STRING(\"outer_product_alloc_\"));
     131// +        a_preExp = Tpl.writeText(a_preExp, l_arr__tp__str);
     132// +        a_preExp = Tpl.writeTok(a_preExp, Tpl.ST_STRING(\"(&\"));
     133// +        a_preExp = Tpl.writeText(a_preExp, l_var1);
     134// +        a_preExp = Tpl.writeTok(a_preExp, Tpl.ST_STRING(\", &\"));
     135// +        a_preExp = Tpl.writeText(a_preExp, l_var2);
     136// +        a_preExp = Tpl.writeTok(a_preExp, Tpl.ST_STRING(\", &\"));
     137// +        a_preExp = Tpl.writeText(a_preExp, l_tvar);
     138// +        a_preExp = Tpl.writeTok(a_preExp, Tpl.ST_STRING(\");\"));
     139// +        a_preExp = Tpl.writeTok(a_preExp, Tpl.ST_NEW_LINE());
     140// +        txt = Tpl.writeText(txt, l_tvar);
     141// +      then (txt, a_preExp, a_varDecls);
     142// +
     143// +    case ( txt,
     144//             DAE.CALL(path = Absyn.IDENT(name = \"rem\"), expLst = {i_e1, i_e2}),
     145//             a_context,
     146//             a_preExp,
     147// @@ -44821,7 +44845,7 @@
     148//          txt_0 = Tpl.writeTok(Tpl.emptyTxt, Tpl.ST_STRING(\"Nested array subscripting *should* have been handled by the routine creating the asub, but for some reason it was not: \"));
     149//          ret_0 = ExpressionDump.printExpStr(i_exp);
     150//          txt_0 = Tpl.writeStr(txt_0, ret_0);
     151// -        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 7156, 11), Tpl.textString(txt_0));
     152// +        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 7164, 11), Tpl.textString(txt_0));
     153//        then (txt, a_preExp, a_varDecls);
     154// 
     155//      case ( txt,
     156// @@ -44859,7 +44883,7 @@
     157//          txt_6 = Tpl.writeTok(Tpl.emptyTxt, Tpl.ST_STRING(\"ASUB_EASY_CASE \"));
     158//          ret_6 = ExpressionDump.printExpStr(i_exp);
     159//          txt_6 = Tpl.writeStr(txt_6, ret_6);
     160// -        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 7186, 11), Tpl.textString(txt_6));
     161// +        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 7194, 11), Tpl.textString(txt_6));
     162//        then (txt, a_preExp, a_varDecls);
     163// 
     164//      case ( txt,
     165// @@ -44904,7 +44928,7 @@
     166//          txt_14 = Tpl.writeTok(Tpl.emptyTxt, Tpl.ST_STRING(\"OTHER_ASUB \"));
     167//          ret_14 = ExpressionDump.printExpStr(i_exp);
     168//          txt_14 = Tpl.writeStr(txt_14, ret_14);
     169// -        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 7206, 11), Tpl.textString(txt_14));
     170// +        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 7214, 11), Tpl.textString(txt_14));
     171//        then (txt, a_preExp, a_varDecls);
     172//    end matchcontinue;
     173//  end fun_975;
     174// @@ -45100,7 +45124,7 @@
     175//          ret_2 = ExpressionDump.printExpStr(i_exp);
     176//          txt_2 = Tpl.writeStr(txt_2, ret_2);
     177//          txt_2 = Tpl.writeTok(txt_2, Tpl.ST_STRING(\")\"));
     178// -        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 7229, 11), Tpl.textString(txt_2));
     179// +        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 7237, 11), Tpl.textString(txt_2));
     180//        then (txt, a_preExp, a_varDecls);
     181//    end matchcontinue;
     182//  end daeExpCallPre;
     183// @@ -45321,7 +45345,7 @@
     184//          ret_2 = ExpressionDump.printExpStr(i_exp);
     185//          txt_2 = Tpl.writeStr(txt_2, ret_2);
     186//          txt_2 = Tpl.writeTok(txt_2, Tpl.ST_STRING(\")\"));
     187// -        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 7256, 11), Tpl.textString(txt_2));
     188// +        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 7264, 11), Tpl.textString(txt_2));
     189//        then (txt, a_preExp, a_varDecls);
     190//    end matchcontinue;
     191//  end daeExpCallStart;
     192// @@ -45402,7 +45426,7 @@
     193//          ret_4 = ExpressionDump.printExpStr(i_exp);
     194//          txt_4 = Tpl.writeStr(Tpl.emptyTxt, ret_4);
     195//          txt_4 = Tpl.writeTok(txt_4, Tpl.ST_STRING(\" not implemented\"));
     196// -        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 7276, 14), Tpl.textString(txt_4));
     197// +        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 7284, 14), Tpl.textString(txt_4));
     198//        then (txt, a_preExp, a_varDecls);
     199//    end matchcontinue;
     200//  end daeExpSize;
     201// @@ -46626,7 +46650,7 @@
     202//          txt_42 = Tpl.writeTok(Tpl.emptyTxt, Tpl.ST_STRING(\"Code generation does not support multiple iterators: \"));
     203//          ret_42 = ExpressionDump.printExpStr(i_exp);
     204//          txt_42 = Tpl.writeStr(txt_42, ret_42);
     205// -        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 7398, 14), Tpl.textString(txt_42));
     206// +        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 7406, 14), Tpl.textString(txt_42));
     207//        then (txt, a_preExp, a_varDecls);
     208//    end matchcontinue;
     209//  end daeExpReduction;
     210// @@ -46920,7 +46944,7 @@
     211//          txt_1 = Tpl.writeTok(Tpl.emptyTxt, Tpl.ST_STRING(\"Unknown switch: \"));
     212//          ret_1 = ExpressionDump.printExpStr(a_exp);
     213//          txt_1 = Tpl.writeStr(txt_1, ret_1);
     214// -        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 7449, 13), Tpl.textString(txt_1));
     215// +        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 7457, 13), Tpl.textString(txt_1));
     216//        then (txt, a_varDeclsInner);
     217// 
     218//      case ( txt,
     219// @@ -50128,7 +50152,7 @@
     220//          txt_3 = Tpl.writeTok(Tpl.emptyTxt, Tpl.ST_STRING(\"expTypeShort:\"));
     221//          ret_3 = Types.unparseType(i_type);
     222//          txt_3 = Tpl.writeStr(txt_3, ret_3);
     223// -        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 7905, 14), Tpl.textString(txt_3));
     224// +        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 7913, 14), Tpl.textString(txt_3));
     225//        then txt;
     226//    end matchcontinue;
     227//  end expTypeShort;
     228// @@ -50244,7 +50268,7 @@
     229//          txt_0 = Tpl.writeTok(Tpl.emptyTxt, Tpl.ST_STRING(\"mmcTypeShort:ERROR \"));
     230//          ret_0 = Types.unparseType(i_type);
     231//          txt_0 = Tpl.writeStr(txt_0, ret_0);
     232// -        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 7929, 14), Tpl.textString(txt_0));
     233// +        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 7937, 14), Tpl.textString(txt_0));
     234//        then txt;
     235//    end matchcontinue;
     236//  end mmcTypeShort;
     237// @@ -51118,7 +51142,7 @@
     238//          txt_7 = Tpl.writeTok(Tpl.emptyTxt, Tpl.ST_STRING(\"expTypeFromExpFlag:\"));
     239//          ret_7 = ExpressionDump.printExpStr(i_exp);
     240//          txt_7 = Tpl.writeStr(txt_7, ret_7);
     241// -        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 8051, 14), Tpl.textString(txt_7));
     242// +        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 8059, 14), Tpl.textString(txt_7));
     243//        then txt;
     244//    end matchcontinue;
     245//  end expTypeFromExpFlag;
     246// @@ -51433,7 +51457,7 @@
     247//             _,
     248//             _ )
     249//        equation
     250// -        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 8093, 14), \"expTypeFromOpFlag:ERROR\");
     251// +        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 8101, 14), \"expTypeFromOpFlag:ERROR\");
     252//        then txt;
     253//    end matchcontinue;
     254//  end expTypeFromOpFlag;
     255// @@ -51466,13 +51490,13 @@
     256//      case ( txt,
     257//             DAE.DIM_UNKNOWN() )
     258//        equation
     259// -        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 8101, 39), \"Unknown dimensions may not be part of generated code. This is most likely an error on the part of OpenModelica. Please submit a detailed bug-report.\");
     260// +        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 8109, 39), \"Unknown dimensions may not be part of generated code. This is most likely an error on the part of OpenModelica. Please submit a detailed bug-report.\");
     261//        then txt;
     262// 
     263//      case ( txt,
     264//             _ )
     265//        equation
     266// -        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 8102, 14), \"dimension: INVALID_DIMENSION\");
     267// +        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 8110, 14), \"dimension: INVALID_DIMENSION\");
     268//        then txt;
     269//    end matchcontinue;
     270//  end dimension;
     271// @@ -51706,7 +51730,7 @@
     272//             _,
     273//             _ )
     274//        equation
     275// -        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 8140, 20), \"UNKNOWN_CONSTANT_PATTERN\");
     276// +        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 8148, 20), \"UNKNOWN_CONSTANT_PATTERN\");
     277//        then txt;
     278//    end matchcontinue;
     279//  end fun_1119;
     280// @@ -52238,7 +52262,7 @@
     281//          txt_5 = Tpl.writeText(txt_5, a_rhs);
     282//          txt_5 = Tpl.writeTok(txt_5, Tpl.ST_STRING(\" */\"));
     283//          txt_5 = Tpl.writeTok(txt_5, Tpl.ST_NEW_LINE());
     284// -        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 8200, 14), Tpl.textString(txt_5));
     285// +        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 8208, 14), Tpl.textString(txt_5));
     286//        then (txt, a_rhs, a_onPatternFail, a_varDecls, a_assignments);
     287//    end matchcontinue;
     288//  end patternMatch;
     289// @@ -53384,7 +53408,7 @@
     290//          txt_22 = Tpl.writeTok(Tpl.emptyTxt, Tpl.ST_STRING(\"literalExpConst failed: \"));
     291//          ret_22 = ExpressionDump.printExpStr(i_lit);
     292//          txt_22 = Tpl.writeStr(txt_22, ret_22);
     293// -        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 8360, 14), Tpl.textString(txt_22));
     294// +        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 8368, 14), Tpl.textString(txt_22));
     295//        then txt;
     296//    end matchcontinue;
     297//  end fun_1145;
     298// @@ -53499,7 +53523,7 @@
     299//          txt_0 = Tpl.writeTok(Tpl.emptyTxt, Tpl.ST_STRING(\"literalExpConstBoxedVal failed: \"));
     300//          ret_0 = ExpressionDump.printExpStr(i_lit);
     301//          txt_0 = Tpl.writeStr(txt_0, ret_0);
     302// -        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 8378, 14), Tpl.textString(txt_0));
     303// +        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 8386, 14), Tpl.textString(txt_0));
     304//        then txt;
     305//    end matchcontinue;
     306//  end literalExpConstBoxedVal;
     307// @@ -53585,7 +53609,7 @@
     308//          txt_0 = Tpl.writeTok(Tpl.emptyTxt, Tpl.ST_STRING(\"literalExpConstArrayVal failed: \"));
     309//          ret_0 = ExpressionDump.printExpStr(i_lit);
     310//          txt_0 = Tpl.writeStr(txt_0, ret_0);
     311// -        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 8389, 14), Tpl.textString(txt_0));
     312// +        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 8397, 14), Tpl.textString(txt_0));
     313//        then txt;
     314//    end matchcontinue;
     315//  end literalExpConstArrayVal;
     316// @@ -53964,7 +53988,7 @@
     317//             a_preBuf,
     318//             a_eqnsDefines )
     319//        equation
     320// -        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 8431, 17), \"Unkown Equation Type in equationInfo1\");
     321// +        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 8439, 17), \"Unkown Equation Type in equationInfo1\");
     322//        then (txt, a_preBuf, a_eqnsDefines);
     323//    end matchcontinue;
     324//  end equationInfo1;
     325// @@ -55154,7 +55178,7 @@
     326//          txt_0 = Tpl.writeTok(Tpl.emptyTxt, Tpl.ST_STRING(\"ScalarVariableType: \"));
     327//          ret_0 = Types.unparseType(i_type__);
     328//          txt_0 = Tpl.writeStr(txt_0, ret_0);
     329// -        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 8565, 16), Tpl.textString(txt_0));
     330// +        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 8573, 16), Tpl.textString(txt_0));
     331//        then txt;
     332//    end matchcontinue;
     333//  end fun_1180;
     334// @@ -55225,7 +55249,7 @@
     335//          txt_0 = Tpl.writeTok(Tpl.emptyTxt, Tpl.ST_STRING(\"ScalarVariableTypeStartAttribute: \"));
     336//          ret_0 = Types.unparseType(i_type__);
     337//          txt_0 = Tpl.writeStr(txt_0, ret_0);
     338// -        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 8580, 18), Tpl.textString(txt_0));
     339// +        txt = CodegenUtil.error(txt, Tpl.sourceInfo(\"CodegenC.tpl\", 8588, 18), Tpl.textString(txt_0));
     340//        then txt;
     341//    end matchcontinue;
     342//  end fun_1182;
     343// "
    108344// 0
    109345//
Note: See TracChangeset for help on using the changeset viewer.