Changeset 14239


Ignore:
Timestamp:
Nov 30, 2019 11:59:23 AM (6 days ago)
Author:
Christian Andersson
Message:

Merged ticket:5882 to the release branch.

Location:
branches/2.16.x
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • branches/2.16.x

  • branches/2.16.x/CHANGELOG.txt

    r14230 r14239  
    11================= Unreleased ==================
     2; Change ; Minor ; Compiler ; #5882
     3Improved handling of iteration variables in c-code generation for
     4multiple loops within a single function.
     5
    26; Fixed ; Minor ; Compiler ; #5881
    37Fixed bug where constant evaluation of external functions could result
  • branches/2.16.x/Compiler/ModelicaCBackEnd/src/jastadd/CCodeGen/CCodeGen.jrag

    r12811 r14239  
    278278
    279279    syn lazy String FAbstractVariable.name_C() = null;
     280
    280281    eq FVariable.name_C()           = isForIndex() ?
    281                                         name_C(null, variableIndex() + C_SUFFIX_INDEX) :
     282                                        C_LOOP_INDEX + "_r1[" + (myForLoopDepth()-1) + "]" :
    282283                                        name_C("");
    283284    eq FStringVariable.name_C()     = name_C("_s_" + variabilityCausality_C());
  • branches/2.16.x/Compiler/ModelicaCBackEnd/src/jastadd/CCodeGen/CCodeGenAlgorithms.jrag

    r14210 r14239  
    356356    @Override
    357357    public void FForStmt.prettyPrint_C(CodePrinter p, CodeStream str, String indent) {
    358         p.printPreSteps(getIndex(), str, indent);
    359         getIndex().printForIndexInit_C(p, str, indent);
     358        p.printPreSteps(getIndex(), str, indent);
     359        getIndex().printForIndexInit_C(p, str, indent, myForLoopDepth());
    360360        str.print(indent);
    361361        str.print("for (");
    362         p.print(getIndex(), str, indent);
     362        getIndex().printForIndex_C(p, str, indent, myForLoopDepth());
    363363        str.print(") {\n");
    364         getIndex().printForIndexNext_C(p, str, p.indent(indent));
     364        getIndex().printForIndexNext_C(p, str, p.indent(indent), myForLoopDepth());
    365365        p.print(getForStmts(), str, p.indent(indent));
    366366        str.print(indent);
     
    369369    }
    370370
    371     @Override
    372     public void FForIndex.genVarDecls_C(CodePrinter p, CodeStream str, String indent) {
    373         super.genVarDecls_C(p, str, indent);
    374         String name = getFVariable().name_C();
    375         str.format("%sjmi_real_t %s;\n", indent, name);
    376         getFExp().genForIndexExtraVarDecls_C(p, str, indent, name);
    377     }
    378 
    379     public void FExp.genForIndexExtraVarDecls_C(CodePrinter p, CodeStream str, String indent, String name) {
    380     }
    381 
    382     @Override
    383     public void FRangeExp.genForIndexExtraVarDecls_C(CodePrinter p, CodeStream str, String indent, String name) {
    384         str.print(indent, "jmi_int_t ", name, "e;\n");
    385         str.print(indent, "jmi_int_t ", name, "n;\n");
    386     }
    387 
    388     @Override
    389     public void FAccessExp.genForIndexExtraVarDecls_C(CodePrinter p, CodeStream str, String indent, String name) {
    390         str.format("%sint %si;\n", indent, name);
    391     }
    392 
    393     public void FForIndex.printForIndexInit_C(CodePrinter p, CodeStream str, String indent) {
    394         getFExp().printForIndexInit_C(p, str, indent, getFVariable().name_C());
    395     }
    396 
    397     public void FExp.printForIndexInit_C(CodePrinter p, CodeStream str, String indent, String name) {}
    398 
    399     @Override
    400     public void FRangeExp.printForIndexInit_C(CodePrinter p, CodeStream str, String indent, String name) {
    401         str.print(indent, name, "n = 0;\n");
    402        
     371    public void FForIndex.printForIndexInit_C(CodePrinter p, CodeStream str, String indent, int myForLoopDepth) {
     372        getFExp().printForIndexInit_C(p, str, indent, myForLoopDepth);
     373    }
     374
     375    public void FExp.printForIndexInit_C(CodePrinter p, CodeStream str, String indent, int myForLoopDepth) {}
     376   
     377    public String FExp.forIndexName_C(String suffix, int myForLoopDepth) {
     378        return C_LOOP_INDEX + suffix +"[" + myForLoopDepth + "]";
     379    }
     380
     381    @Override
     382    public void FRangeExp.printForIndexInit_C(CodePrinter p, CodeStream str, String indent, int myForLoopDepth) {
     383        String nameE = forIndexName_C("_i1", myForLoopDepth);
     384        String nameN = forIndexName_C("_i2", myForLoopDepth);
     385
    403386        boolean hasStep = hasStep();
    404387        FExp start = getFExp(0);
     
    406389        FExp step = hasStep ? getFExp(1) : null;
    407390       
    408         str.print(indent, name, "e = floor(");
     391        str.print(indent, nameN, " = 0;\n");
     392        str.print(indent, nameE, " = floor(");
    409393        if (hasStep) {
    410394            str.print("(");
     
    433417        }
    434418    }
    435 
    436     @Override
    437     public void FForIndex.prettyPrint_C(CodePrinter p, CodeStream str, String indent) {
    438         getFExp().printForIndex_C(p, str, indent, getFVariable().name_C());
    439     }
    440 
    441     public void FExp.printForIndex_C(CodePrinter p, CodeStream str, String indent, String name) {
     419   
     420    public void FForIndex.printForIndex_C(CodePrinter p, CodeStream str, String indent, int myForLoopDepth) {
     421        getFExp().printForIndex_C(p, str, indent, myForLoopDepth);
     422    }
     423
     424    public void FExp.printForIndex_C(CodePrinter p, CodeStream str, String indent, int myForLoopDepth) {
    442425        throw new UnsupportedOperationException("C code generation for loop index not implemented for class " +
    443426                getClass().getSimpleName());
     
    445428
    446429    @Override
    447     public void FAccessExp.printForIndex_C(CodePrinter p, CodeStream str, String indent, String name) {
    448         str.format("%1$si = 0; %1$si < jmi_array_size(%2$s, 0); %1$si++",
    449                 name, getFAccess().toString_C(p));
    450     }
    451 
    452     @Override
    453     public void FRangeExp.printForIndex_C(CodePrinter p, CodeStream str, String indent, String name) {
     430    public void FAccessExp.printForIndex_C(CodePrinter p, CodeStream str, String indent, int myForLoopDepth) {
     431        String nameE = forIndexName_C("_i1", myForLoopDepth);
     432       
     433        str.format("%1$s = 0; %1$s < jmi_array_size(%2$s, 0); (%1$s)++",
     434                nameE, getFAccess().toString_C(p));
     435    }
     436
     437    @Override
     438    public void FRangeExp.printForIndex_C(CodePrinter p, CodeStream str, String indent, int myForLoopDepth) {
    454439        FExp start = getFExp(0);
    455440        FExp step = getFExp(1);
    456 
    457         String nameE = name + "e";
    458         String nameN = name + "n";
    459 
     441       
     442        String nameE = forIndexName_C("_i1", myForLoopDepth);
     443        String nameN = forIndexName_C("_i2", myForLoopDepth);
     444        String name = forIndexName_C("_r1", myForLoopDepth);
     445       
    460446        /*
    461447         * Initial expression.
     
    481467            str.print(") * ");
    482468        }
    483         str.print("(++", nameN, ")");
    484     }
    485 
    486     public void FForIndex.printForIndexNext_C(CodePrinter p, CodeStream str, String indent) {
    487         getFExp().printForIndexNext_C(p, str, indent, getFVariable().name_C());
    488     }
    489 
    490     public void FExp.printForIndexNext_C(CodePrinter p, CodeStream str, String indent, String name) {
    491     }
    492 
    493     @Override
    494     public void FAccessExp.printForIndexNext_C(CodePrinter p, CodeStream str, String indent, String name) {
    495         str.format("%1$s%2$s = jmi_array_val_1(%3$s, %2$si);\n",
    496                 indent, name, getFAccess().toString_C(p));
     469        str.print("(++(", nameN, "))");
     470    }
     471
     472    public void FForIndex.printForIndexNext_C(CodePrinter p, CodeStream str, String indent, int myForLoopDepth) {
     473        getFExp().printForIndexNext_C(p, str, indent, myForLoopDepth);
     474    }
     475
     476    public void FExp.printForIndexNext_C(CodePrinter p, CodeStream str, String indent, int myForLoopDepth) {
     477    }
     478
     479    @Override
     480    public void FAccessExp.printForIndexNext_C(CodePrinter p, CodeStream str, String indent, int myForLoopDepth) {
     481        String nameE = forIndexName_C("_i1", myForLoopDepth);
     482        String name = forIndexName_C("_r1", myForLoopDepth);
     483
     484        str.format("%1$s%2$s = jmi_array_val_1(%3$s, %4$s);\n",
     485                indent, name, getFAccess().toString_C(p), nameE);
    497486    }
    498487
  • branches/2.16.x/Compiler/ModelicaCBackEnd/src/jastadd/CCodeGen/CCodeGenFunction.jrag

    r12024 r14239  
    231231        }
    232232    }
     233   
     234    public static final String ASTNode.C_LOOP_INDEX     = "_for_loop_variables";
     235   
     236    public void FFunctionDecl.genForVarDecls_C(CodePrinter p, CodeStream str, String indent) {
     237        int maxForLoopDepth = maxForLoopDepth();
     238
     239        if (maxForLoopDepth > 0) {
     240            str.println(indent,  "jmi_real_t ", C_LOOP_INDEX + "_r1", "[", maxForLoopDepth, "];");
     241            str.println(indent,  "jmi_int_t ", C_LOOP_INDEX + "_i1", "[", maxForLoopDepth, "];");
     242            str.println(indent,  "jmi_int_t ", C_LOOP_INDEX + "_i2", "[", maxForLoopDepth, "];");
     243        }
     244    }
    233245
    234246    public void FFunctionDecl.genFunctionBodyAlgorithm(CodePrinter p, CodeStream str, String indent) {
    235247        p.printVarDecls(this, str, indent);
     248        genForVarDecls_C(p, str, indent);
    236249        for (FFunctionVariable ffv : myNonInputs()) {
    237250            if (!ffv.isArray()) {
  • branches/2.16.x/Compiler/ModelicaCBackEnd/src/jastadd/CCodeGen/CCodeGenNames.jrag

    r11676 r14239  
    5252    eq FExternalStmt.getChild().myCodeGenContext() = getCodeGenContext();
    5353
     54    syn int ASTNode.maxForLoopDepth() {
     55        int max = 0;
     56        for (ASTNode child : this) {
     57            int count = child.maxForLoopDepth();
     58                if (count > max) {
     59                max = count;
     60            }
     61        }
     62        return max;
     63    }
     64    eq FForStmt.maxForLoopDepth() = 1 + super.maxForLoopDepth();
     65
     66    inh int FForStmt.myForLoopDepth();
     67    eq FAlgorithm.getChild().myForLoopDepth() = 0;
     68    eq FForStmt.getChild().myForLoopDepth() = myForLoopDepth() + 1;
     69   
     70    inh int FVariable.myForLoopDepth();
     71   
    5472    private CodeGenContext FClass.codeGenContext = new CodeGenContext();
    5573    private CodeGenContext FFunctionDecl.codeGenContext = new CodeGenContext();
  • branches/2.16.x/Compiler/ModelicaCBackEnd/test/modelica/CCodeGenAlgorithmTests.mo

    r14210 r14239  
    985985    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 2, 1)
    986986    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_2_a, 2, 1)
    987     jmi_real_t i1_0i;
    988     jmi_int_t i1_0ie;
    989     jmi_int_t i1_0in;
    990     jmi_real_t i1_1i;
    991     jmi_int_t i1_1ie;
    992     jmi_int_t i1_1in;
     987    jmi_real_t _for_loop_variables_r1[1];
     988    jmi_int_t _for_loop_variables_i1[1];
     989    jmi_int_t _for_loop_variables_i2[1];
    993990    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, tmp_1, 3, 1, 3)
    994991    r__v->a = tmp_1;
     
    1000997    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_1_a, 2, 1, 2)
    1001998    func_CCodeGenAlgorithmTests_Algorithm9_f_def0(temp_1_a);
    1002     i1_0in = 0;
    1003     i1_0ie = floor((2) - (1));
    1004     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    1005         jmi_array_ref_1(r_v->a, i1_0i) = 2 * jmi_array_val_1(temp_1_a, i1_0i);
     999    _for_loop_variables_i2[0] = 0;
     1000    _for_loop_variables_i1[0] = floor((2) - (1));
     1001    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     1002        jmi_array_ref_1(r_v->a, _for_loop_variables_r1[0]) = 2 * jmi_array_val_1(temp_1_a, _for_loop_variables_r1[0]);
    10061003    }
    10071004    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_2_a, 2, 1, 2)
    10081005    func_CCodeGenAlgorithmTests_Algorithm9_f_def0(temp_2_a);
    1009     i1_1in = 0;
    1010     i1_1ie = floor((2) - (1));
    1011     for (i1_1i = 1; i1_1in <= i1_1ie; i1_1i = 1 + (++i1_1in)) {
    1012         jmi_array_ref_1(r_v->a, 2 + (i1_1i - 1)) = jmi_array_val_1(temp_2_a, i1_1i);
     1006    _for_loop_variables_i2[0] = 0;
     1007    _for_loop_variables_i1[0] = floor((2) - (1));
     1008    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     1009        jmi_array_ref_1(r_v->a, 2 + (_for_loop_variables_r1[0] - 1)) = jmi_array_val_1(temp_2_a, _for_loop_variables_r1[0]);
    10131010    }
    10141011    JMI_ASG(GEN_ARR, r__v->a, r_v->a)
     
    11011098    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_5_a, 2, 1)
    11021099    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_6_a, 2, 1)
    1103     jmi_real_t i1_0i;
    1104     jmi_int_t i1_0ie;
    1105     jmi_int_t i1_0in;
    1106     jmi_real_t i1_1i;
    1107     jmi_int_t i1_1ie;
    1108     jmi_int_t i1_1in;
    1109     jmi_real_t i1_2i;
    1110     jmi_int_t i1_2ie;
    1111     jmi_int_t i1_2in;
     1100    jmi_real_t _for_loop_variables_r1[1];
     1101    jmi_int_t _for_loop_variables_i1[1];
     1102    jmi_int_t _for_loop_variables_i2[1];
    11121103    if (o_a == NULL) {
    11131104        JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, o_an, 5, 1, 5)
     
    11231114    jmi_array_ref_1(temp_2_a, 2) = 1;
    11241115    jmi_array_ref_1(temp_2_a, 3) = 1;
    1125     i1_0in = 0;
    1126     i1_0ie = floor((3) - (1));
    1127     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    1128         jmi_array_ref_1(o_a, jmi_array_ref_1(temp_1_a, i1_0i)) = jmi_array_val_1(temp_2_a, i1_0i);
     1116    _for_loop_variables_i2[0] = 0;
     1117    _for_loop_variables_i1[0] = floor((3) - (1));
     1118    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     1119        jmi_array_ref_1(o_a, jmi_array_ref_1(temp_1_a, _for_loop_variables_r1[0])) = jmi_array_val_1(temp_2_a, _for_loop_variables_r1[0]);
    11291120    }
    11301121    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_4_a, 2, 1, 2)
     
    11321123    jmi_array_ref_1(temp_4_a, 2) = 5;
    11331124    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_3_a, 2, 1, 2)
    1134     i1_1in = 0;
    1135     i1_1ie = floor((2) - (1));
    1136     for (i1_1i = 1; i1_1in <= i1_1ie; i1_1i = 1 + (++i1_1in)) {
    1137         jmi_array_ref_1(temp_3_a, i1_1i) = jmi_array_val_1(o_a, jmi_array_val_1(temp_4_a, i1_1i));
     1125    _for_loop_variables_i2[0] = 0;
     1126    _for_loop_variables_i1[0] = floor((2) - (1));
     1127    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     1128        jmi_array_ref_1(temp_3_a, _for_loop_variables_r1[0]) = jmi_array_val_1(o_a, jmi_array_val_1(temp_4_a, _for_loop_variables_r1[0]));
    11381129    }
    11391130    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_5_a, 2, 1, 2)
     
    11421133    jmi_array_ref_1(temp_6_a, 1) = 2;
    11431134    jmi_array_ref_1(temp_6_a, 2) = 4;
    1144     i1_2in = 0;
    1145     i1_2ie = floor((2) - (1));
    1146     for (i1_2i = 1; i1_2in <= i1_2ie; i1_2i = 1 + (++i1_2in)) {
    1147         jmi_array_ref_1(o_a, jmi_array_ref_1(temp_6_a, i1_2i)) = jmi_array_val_1(temp_5_a, i1_2i);
     1135    _for_loop_variables_i2[0] = 0;
     1136    _for_loop_variables_i1[0] = floor((2) - (1));
     1137    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     1138        jmi_array_ref_1(o_a, jmi_array_ref_1(temp_6_a, _for_loop_variables_r1[0])) = jmi_array_val_1(temp_5_a, _for_loop_variables_r1[0]);
    11481139    }
    11491140    JMI_RET(GEN, dummy_o, dummy_v)
  • branches/2.16.x/Compiler/ModelicaCBackEnd/test/modelica/CCodeGenArrayTests.mo

    r14210 r14239  
    3939    JMI_DEF(REA, temp_1_v)
    4040    JMI_DEF(REA, temp_2_v)
    41     jmi_real_t i1_0i;
    42     jmi_int_t i1_0ie;
    43     jmi_int_t i1_0in;
     41    jmi_real_t _for_loop_variables_r1[1];
     42    jmi_int_t _for_loop_variables_i1[1];
     43    jmi_int_t _for_loop_variables_i2[1];
    4444    temp_2_v = 0.0;
    45     i1_0in = 0;
    46     i1_0ie = floor((jmi_array_size(x_a, 0)) - (1));
    47     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    48         temp_2_v = temp_2_v + jmi_array_val_1(x_a, i1_0i) * jmi_array_val_1(x_a, i1_0i);
     45    _for_loop_variables_i2[0] = 0;
     46    _for_loop_variables_i1[0] = floor((jmi_array_size(x_a, 0)) - (1));
     47    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     48        temp_2_v = temp_2_v + jmi_array_val_1(x_a, _for_loop_variables_r1[0]) * jmi_array_val_1(x_a, _for_loop_variables_r1[0]);
    4949    }
    5050    temp_1_v = temp_2_v;
     
    241241    Real y = f(time);
    242242   
    243     annotation(__JModelica(UnitTesting(tests={
    244         CCodeGenTestCase(
    245             name="RecordArray1",
    246             description="",
    247             inline_functions="none",
    248             template="$C_functions$",
    249             generatedCode="
     243annotation(__JModelica(UnitTesting(tests={
     244    CCodeGenTestCase(
     245        name="RecordArray1",
     246        description="",
     247        inline_functions="none",
     248        template="$C_functions$",
     249        generatedCode="
    250250void func_CCodeGenArrayTests_RecordArray1_f_def0(jmi_real_t x_v, jmi_real_t* y_o) {
    251251    JMI_DYNAMIC_INIT()
     
    253253    JMI_RECORD_STATIC(R_0_r, r_v)
    254254    JMI_ARR(STACK, jmi_real_t, jmi_array_t, tmp_1, 3, 1)
    255     jmi_real_t i1_0i;
    256     jmi_int_t i1_0ie;
    257     jmi_int_t i1_0in;
     255    jmi_real_t _for_loop_variables_r1[1];
     256    jmi_int_t _for_loop_variables_i1[1];
     257    jmi_int_t _for_loop_variables_i2[1];
    258258    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, tmp_1, 3, 1, 3)
    259259    r_v->x = tmp_1;
    260260    y_v = x_v;
    261261    r_v->n = 3;
    262     i1_0in = 0;
    263     i1_0ie = floor((3) - (1));
    264     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    265         jmi_array_ref_1(r_v->x, i1_0i) = i1_0i;
     262    _for_loop_variables_i2[0] = 0;
     263    _for_loop_variables_i1[0] = floor((3) - (1));
     264    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     265        jmi_array_ref_1(r_v->x, _for_loop_variables_r1[0]) = _for_loop_variables_r1[0];
    266266    }
    267267    JMI_RET(GEN, y_o, y_v)
     
    798798    JMI_DEF(REA, y_v)
    799799    JMI_DEF(REA, temp_1_v)
    800     jmi_real_t i_0i;
    801     jmi_int_t i_0ie;
    802     jmi_int_t i_0in;
    803     jmi_real_t i1_1i;
    804     jmi_int_t i1_1ie;
    805     jmi_int_t i1_1in;
    806     i_0in = 0;
    807     i_0ie = floor((jmi_array_size(r_a, 0)) - (1));
    808     for (i_0i = 1; i_0in <= i_0ie; i_0i = 1 + (++i_0in)) {
     800    jmi_real_t _for_loop_variables_r1[2];
     801    jmi_int_t _for_loop_variables_i1[2];
     802    jmi_int_t _for_loop_variables_i2[2];
     803    _for_loop_variables_i2[0] = 0;
     804    _for_loop_variables_i1[0] = floor((jmi_array_size(r_a, 0)) - (1));
     805    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
    809806        temp_1_v = 0.0;
    810         i1_1in = 0;
    811         i1_1ie = floor((jmi_array_size(jmi_array_rec_1(r_a, i_0i)->x, 0)) - (1));
    812         for (i1_1i = 1; i1_1in <= i1_1ie; i1_1i = 1 + (++i1_1in)) {
    813             temp_1_v = temp_1_v + jmi_array_val_1(jmi_array_rec_1(r_a, i_0i)->x, i1_1i);
     807        _for_loop_variables_i2[1] = 0;
     808        _for_loop_variables_i1[1] = floor((jmi_array_size(jmi_array_rec_1(r_a, _for_loop_variables_r1[0])->x, 0)) - (1));
     809        for (_for_loop_variables_r1[1] = 1; _for_loop_variables_i2[1] <= _for_loop_variables_i1[1]; _for_loop_variables_r1[1] = 1 + (++(_for_loop_variables_i2[1]))) {
     810            temp_1_v = temp_1_v + jmi_array_val_1(jmi_array_rec_1(r_a, _for_loop_variables_r1[0])->x, _for_loop_variables_r1[1]);
    814811        }
    815812        y_v = y_v + temp_1_v;
     
    972969    JMI_DEF(REA, y_v)
    973970    JMI_DEF(REA, temp_1_v)
    974     jmi_real_t i1_0i;
    975     jmi_int_t i1_0ie;
    976     jmi_int_t i1_0in;
    977     jmi_real_t i1_1i;
    978     jmi_int_t i1_1ie;
    979     jmi_int_t i1_1in;
    980     jmi_real_t i1_2i;
    981     jmi_int_t i1_2ie;
    982     jmi_int_t i1_2in;
     971    jmi_real_t _for_loop_variables_r1[1];
     972    jmi_int_t _for_loop_variables_i1[1];
     973    jmi_int_t _for_loop_variables_i2[1];
    983974    JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, xs_a, n_v, 1, n_v)
    984975    JMI_ARRAY_INIT_1(HEAP, R_0_r, R_0_ra, rs_a, n_v, 1, n_v)
     
    986977    for (tmp_1 = 1; tmp_1 < tmp_1_max; tmp_1++) {
    987978    }
    988     i1_0in = 0;
    989     i1_0ie = floor((n_v) - (1));
    990     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    991         jmi_array_rec_1(rs_a, i1_0i)->x = 1;
    992     }
    993     i1_1in = 0;
    994     i1_1ie = floor((n_v) - (1));
    995     for (i1_1i = 1; i1_1in <= i1_1ie; i1_1i = 1 + (++i1_1in)) {
    996         jmi_array_ref_1(xs_a, i1_1i) = jmi_array_rec_1(rs_a, i1_1i)->x;
     979    _for_loop_variables_i2[0] = 0;
     980    _for_loop_variables_i1[0] = floor((n_v) - (1));
     981    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     982        jmi_array_rec_1(rs_a, _for_loop_variables_r1[0])->x = 1;
     983    }
     984    _for_loop_variables_i2[0] = 0;
     985    _for_loop_variables_i1[0] = floor((n_v) - (1));
     986    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     987        jmi_array_ref_1(xs_a, _for_loop_variables_r1[0]) = jmi_array_rec_1(rs_a, _for_loop_variables_r1[0])->x;
    997988    }
    998989    temp_1_v = 0.0;
    999     i1_2in = 0;
    1000     i1_2ie = floor((n_v) - (1));
    1001     for (i1_2i = 1; i1_2in <= i1_2ie; i1_2i = 1 + (++i1_2in)) {
    1002         temp_1_v = temp_1_v + jmi_array_val_1(xs_a, i1_2i);
     990    _for_loop_variables_i2[0] = 0;
     991    _for_loop_variables_i1[0] = floor((n_v) - (1));
     992    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     993        temp_1_v = temp_1_v + jmi_array_val_1(xs_a, _for_loop_variables_r1[0]);
    1003994    }
    1004995    y_v = temp_1_v;
     
    10131004    return y_v;
    10141005}
     1006
    10151007")})));
    10161008end RecordArray14;
  • branches/2.16.x/Compiler/ModelicaCBackEnd/test/modelica/CCodeGenCompositeStatementTests.mo

    r14210 r14239  
    4242    JMI_ARR(STACK, R_0_r, R_0_ra, y_an, 2, 1)
    4343    JMI_ARR(STACK, R_0_r, R_0_ra, temp_1_a, 2, 1)
    44     jmi_real_t i1_0i;
    45     jmi_int_t i1_0ie;
    46     jmi_int_t i1_0in;
     44    jmi_real_t _for_loop_variables_r1[1];
     45    jmi_int_t _for_loop_variables_i1[1];
     46    jmi_int_t _for_loop_variables_i2[1];
    4747    if (y_a == NULL) {
    4848        JMI_ARRAY_INIT_1(STACK, R_0_r, R_0_ra, y_an, 2, 1, 2)
     
    5252    JMI_ASG(REF, *jmi_array_rec_1(temp_1_a, 1), *JMI_GLOBAL(CCodeGenCompositeStatementTests_RecordStmt1_f_c))
    5353    JMI_ASG(REF, *jmi_array_rec_1(temp_1_a, 2), *r_v)
    54     i1_0in = 0;
    55     i1_0ie = floor((2) - (1));
    56     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    57         jmi_array_rec_1(y_a, i1_0i)->x = jmi_array_rec_1(temp_1_a, i1_0i)->x;
     54    _for_loop_variables_i2[0] = 0;
     55    _for_loop_variables_i1[0] = floor((2) - (1));
     56    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     57        jmi_array_rec_1(y_a, _for_loop_variables_r1[0])->x = jmi_array_rec_1(temp_1_a, _for_loop_variables_r1[0])->x;
    5858    }
    5959    JMI_DYNAMIC_FREE()
     
    9090    JMI_ARR(STACK, jmi_real_t, jmi_array_t, tmp_2, 1, 1)
    9191    JMI_ARR(STACK, R_0_r, R_0_ra, temp_1_a, 2, 1)
    92     jmi_real_t i1_0i;
    93     jmi_int_t i1_0ie;
    94     jmi_int_t i1_0in;
     92    jmi_real_t _for_loop_variables_r1[1];
     93    jmi_int_t _for_loop_variables_i1[1];
     94    jmi_int_t _for_loop_variables_i2[1];
    9595    if (y_a == NULL) {
    9696        JMI_ARRAY_INIT_1(STACK, R_0_r, R_0_ra, y_an, 2, 1, 2)
     
    104104    JMI_ASG(REF, *jmi_array_rec_1(temp_1_a, 1), *JMI_GLOBAL(CCodeGenCompositeStatementTests_RecordStmt2_f_c))
    105105    JMI_ASG(REF, *jmi_array_rec_1(temp_1_a, 2), *r_v)
    106     i1_0in = 0;
    107     i1_0ie = floor((2) - (1));
    108     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    109         JMI_ASG(GEN_ARR, jmi_array_rec_1(y_a, i1_0i)->x, jmi_array_rec_1(temp_1_a, i1_0i)->x)
     106    _for_loop_variables_i2[0] = 0;
     107    _for_loop_variables_i1[0] = floor((2) - (1));
     108    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     109        JMI_ASG(GEN_ARR, jmi_array_rec_1(y_a, _for_loop_variables_r1[0])->x, jmi_array_rec_1(temp_1_a, _for_loop_variables_r1[0])->x)
    110110    }
    111111    JMI_DYNAMIC_FREE()
     
    161161    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 1, 1)
    162162    JMI_ARR(STACK, R3_2_r, R3_2_ra, temp_2_a, 2, 1)
    163     jmi_real_t i1_0i;
    164     jmi_int_t i1_0ie;
    165     jmi_int_t i1_0in;
     163    jmi_real_t _for_loop_variables_r1[1];
     164    jmi_int_t _for_loop_variables_i1[1];
     165    jmi_int_t _for_loop_variables_i2[1];
    166166    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, tmp_3, 1, 1, 1)
    167167    tmp_2->x = tmp_3;
     
    190190    jmi_array_rec_1(temp_2_a, 1)->r->x = c_v->r->x;
    191191    JMI_ASG(REF, *jmi_array_rec_1(temp_2_a, 2), *r_v)
    192     i1_0in = 0;
    193     i1_0ie = floor((2) - (1));
    194     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    195         JMI_ASG(GEN_ARR, jmi_array_rec_1(y_a, i1_0i)->r->r->x, jmi_array_rec_1(temp_2_a, i1_0i)->r->r->x)
    196         jmi_array_rec_1(y_a, i1_0i)->r->x = jmi_array_rec_1(temp_2_a, i1_0i)->r->x;
     192    _for_loop_variables_i2[0] = 0;
     193    _for_loop_variables_i1[0] = floor((2) - (1));
     194    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     195        JMI_ASG(GEN_ARR, jmi_array_rec_1(y_a, _for_loop_variables_r1[0])->r->r->x, jmi_array_rec_1(temp_2_a, _for_loop_variables_r1[0])->r->r->x)
     196        jmi_array_rec_1(y_a, _for_loop_variables_r1[0])->r->x = jmi_array_rec_1(temp_2_a, _for_loop_variables_r1[0])->r->x;
    197197    }
    198198    JMI_DYNAMIC_FREE()
     
    230230    JMI_ARR(STACK, jmi_real_t, jmi_array_t, tmp_1, 1, 1)
    231231    JMI_ARR(STACK, R1_0_r, R1_0_ra, temp_1_a, 1, 1)
    232     jmi_real_t i1_0i;
    233     jmi_int_t i1_0ie;
    234     jmi_int_t i1_0in;
     232    jmi_real_t _for_loop_variables_r1[1];
     233    jmi_int_t _for_loop_variables_i1[1];
     234    jmi_int_t _for_loop_variables_i2[1];
    235235    if (y_a == NULL) {
    236236        JMI_ARRAY_INIT_1(STACK, R1_0_r, R1_0_ra, y_an, 1, 1, 1)
     
    241241    JMI_ARRAY_INIT_1(STACK, R1_0_r, R1_0_ra, temp_1_a, 1, 1, 1)
    242242    JMI_ASG(REF, jmi_array_rec_1(temp_1_a, 1)->x, JMI_GLOBAL(CCodeGenCompositeStatementTests_RecordStmt4_f_c))
    243     i1_0in = 0;
    244     i1_0ie = floor((1) - (1));
    245     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    246         JMI_ASG(GEN_ARR, jmi_array_rec_1(y_a, i1_0i)->x, jmi_array_rec_1(temp_1_a, i1_0i)->x)
     243    _for_loop_variables_i2[0] = 0;
     244    _for_loop_variables_i1[0] = floor((1) - (1));
     245    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     246        JMI_ASG(GEN_ARR, jmi_array_rec_1(y_a, _for_loop_variables_r1[0])->x, jmi_array_rec_1(temp_1_a, _for_loop_variables_r1[0])->x)
    247247    }
    248248    JMI_DYNAMIC_FREE()
     
    286286    JMI_ARR(STACK, R2_1_r, R2_1_ra, temp_1_a, 1, 1)
    287287    JMI_ARR(STACK, R1_0_r, R1_0_ra, temp_2_a, 1, 1)
    288     jmi_real_t i1_0i;
    289     jmi_int_t i1_0ie;
    290     jmi_int_t i1_0in;
    291     jmi_real_t i2_1i;
    292     jmi_int_t i2_1ie;
    293     jmi_int_t i2_1in;
     288    jmi_real_t _for_loop_variables_r1[2];
     289    jmi_int_t _for_loop_variables_i1[2];
     290    jmi_int_t _for_loop_variables_i2[2];
    294291    if (y_a == NULL) {
    295292        JMI_ARRAY_INIT_1(STACK, R2_1_r, R2_1_ra, y_an, 1, 1, 1)
     
    304301    JMI_ASG(REF, jmi_array_rec_1(temp_2_a, 1)->x, JMI_GLOBAL(CCodeGenCompositeStatementTests_RecordStmt5_f_c))
    305302    JMI_ASG(REF, jmi_array_rec_1(temp_1_a, 1)->r1, temp_2_a)
    306     i1_0in = 0;
    307     i1_0ie = floor((1) - (1));
    308     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    309         i2_1in = 0;
    310         i2_1ie = floor((1) - (1));
    311         for (i2_1i = 1; i2_1in <= i2_1ie; i2_1i = 1 + (++i2_1in)) {
    312             JMI_ASG(GEN_ARR, jmi_array_rec_1(jmi_array_rec_1(y_a, i1_0i)->r1, i2_1i)->x, jmi_array_rec_1(jmi_array_rec_1(temp_1_a, i1_0i)->r1, i2_1i)->x)
     303    _for_loop_variables_i2[0] = 0;
     304    _for_loop_variables_i1[0] = floor((1) - (1));
     305    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     306        _for_loop_variables_i2[1] = 0;
     307        _for_loop_variables_i1[1] = floor((1) - (1));
     308        for (_for_loop_variables_r1[1] = 1; _for_loop_variables_i2[1] <= _for_loop_variables_i1[1]; _for_loop_variables_r1[1] = 1 + (++(_for_loop_variables_i2[1]))) {
     309            JMI_ASG(GEN_ARR, jmi_array_rec_1(jmi_array_rec_1(y_a, _for_loop_variables_r1[0])->r1, _for_loop_variables_r1[1])->x, jmi_array_rec_1(jmi_array_rec_1(temp_1_a, _for_loop_variables_r1[0])->r1, _for_loop_variables_r1[1])->x)
    313310        }
    314311    }
     
    336333        der(y[1]) = der(x);
    337334
    338 annotation(__JModelica(UnitTesting(tests={
    339     CCodeGenTestCase(
    340         name="DifferentiatedStmt1",
    341         description="",
    342         template="
    343 $C_functions$
    344 ",
    345         generatedCode="
     335    annotation(__JModelica(UnitTesting(tests={
     336        CCodeGenTestCase(
     337            name="DifferentiatedStmt1",
     338            description="",
     339            template="$C_functions$",
     340            generatedCode="
    346341void func_CCodeGenCompositeStatementTests_DifferentiatedStmt1_f_def0(jmi_real_t x_v, jmi_array_t* y_a) {
    347342    JMI_DYNAMIC_INIT()
     
    350345    JMI_ARR(STACK, jmi_real_t, jmi_array_t, y_an, 2, 1)
    351346    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 2, 1)
    352     jmi_real_t i1_0i;
    353     jmi_int_t i1_0ie;
    354     jmi_int_t i1_0in;
     347    jmi_real_t _for_loop_variables_r1[1];
     348    jmi_int_t _for_loop_variables_i1[1];
     349    jmi_int_t _for_loop_variables_i2[1];
    355350    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, t1_a, 2, 1, 2)
    356351    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_1_a, 2, 1, 2)
     
    364359        y_a = y_an;
    365360    }
    366     i1_0in = 0;
    367     i1_0ie = floor((2) - (1));
    368     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    369         jmi_array_ref_1(y_a, i1_0i) = x_v + jmi_array_val_1(t1_a, i1_0i) + jmi_array_val_1(t2_a, i1_0i);
     361    _for_loop_variables_i2[0] = 0;
     362    _for_loop_variables_i1[0] = floor((2) - (1));
     363    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     364        jmi_array_ref_1(y_a, _for_loop_variables_r1[0]) = x_v + jmi_array_val_1(t1_a, _for_loop_variables_r1[0]) + jmi_array_val_1(t2_a, _for_loop_variables_r1[0]);
    370365    }
    371366    JMI_DYNAMIC_FREE()
     
    384379    JMI_ARR(STACK, jmi_real_t, jmi_array_t, tmp_1, 2, 1)
    385380    JMI_ARR(STACK, jmi_real_t, jmi_array_t, tmp_2, 2, 1)
    386     jmi_real_t i1_1i;
    387     jmi_int_t i1_1ie;
    388     jmi_int_t i1_1in;
     381    jmi_real_t _for_loop_variables_r1[1];
     382    jmi_int_t _for_loop_variables_i1[1];
     383    jmi_int_t _for_loop_variables_i2[1];
    389384    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, t1_a, 2, 1, 2)
    390385    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, _der_t1_a, 2, 1, 2)
     
    409404        _der_y_a = _der_y_an;
    410405    }
    411     i1_1in = 0;
    412     i1_1ie = floor((2) - (1));
    413     for (i1_1i = 1; i1_1in <= i1_1ie; i1_1i = 1 + (++i1_1in)) {
    414         jmi_array_ref_1(_der_y_a, i1_1i) = _der_x_v + jmi_array_val_1(_der_t1_a, i1_1i) + jmi_array_val_1(_der_t2_a, i1_1i);
    415         jmi_array_ref_1(y_a, i1_1i) = x_v + jmi_array_val_1(t1_a, i1_1i) + jmi_array_val_1(t2_a, i1_1i);
    416     }
    417     JMI_DYNAMIC_FREE()
    418     return;
    419 }
     406    _for_loop_variables_i2[0] = 0;
     407    _for_loop_variables_i1[0] = floor((2) - (1));
     408    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     409        jmi_array_ref_1(_der_y_a, _for_loop_variables_r1[0]) = _der_x_v + jmi_array_val_1(_der_t1_a, _for_loop_variables_r1[0]) + jmi_array_val_1(_der_t2_a, _for_loop_variables_r1[0]);
     410        jmi_array_ref_1(y_a, _for_loop_variables_r1[0]) = x_v + jmi_array_val_1(t1_a, _for_loop_variables_r1[0]) + jmi_array_val_1(t2_a, _for_loop_variables_r1[0]);
     411    }
     412    JMI_DYNAMIC_FREE()
     413    return;
     414}
     415
    420416")})));
    421417    end DifferentiatedStmt1;
  • branches/2.16.x/Compiler/ModelicaCBackEnd/test/modelica/CCodeGenGlobalsTests.mo

    r14004 r14239  
    10421042    JMI_DYNAMIC_INIT()
    10431043    JMI_DEF(REA, y_v)
    1044     jmi_real_t i_0i;
    1045     jmi_int_t i_0ie;
    1046     jmi_int_t i_0in;
     1044    jmi_real_t _for_loop_variables_r1[1];
     1045    jmi_int_t _for_loop_variables_i1[1];
     1046    jmi_int_t _for_loop_variables_i2[1];
    10471047    y_v = x_v;
    1048     i_0in = 0;
    1049     i_0ie = floor((2) - (1));
    1050     for (i_0i = 1; i_0in <= i_0ie; i_0i = 1 + (++i_0in)) {
    1051         y_v = JMI_POW_FUNCTION(\"CCodeGenGlobalsTests.GlobalVariables.GlobalConstantForPowInt1.f\", y_v, jmi_array_val_1(JMI_GLOBAL(CCodeGenGlobalsTests_GlobalVariables_GlobalConstantForPowInt1_f_c), i_0i), \"y ^ global(CCodeGenGlobalsTests.GlobalVariables.GlobalConstantForPowInt1.f.c[i])\");
     1048    _for_loop_variables_i2[0] = 0;
     1049    _for_loop_variables_i1[0] = floor((2) - (1));
     1050    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     1051        y_v = JMI_POW_FUNCTION(\"CCodeGenGlobalsTests.GlobalVariables.GlobalConstantForPowInt1.f\", y_v, jmi_array_val_1(JMI_GLOBAL(CCodeGenGlobalsTests_GlobalVariables_GlobalConstantForPowInt1_f_c), _for_loop_variables_r1[0]), \"y ^ global(CCodeGenGlobalsTests.GlobalVariables.GlobalConstantForPowInt1.f.c[i])\");
    10521052    }
    10531053    JMI_RET(GEN, y_o, y_v)
  • branches/2.16.x/Compiler/ModelicaCBackEnd/test/modelica/CCodeGenLiteralTests.mo

    r12838 r14239  
    4040",
    4141        generatedCode="
     42
    4243int model_ode_derivatives_base(jmi_t* jmi) {
    4344    int ef = 0;
     
    5758    JMI_DEF(INT, y_v)
    5859    JMI_DEF(INT, temp_1_v)
    59     jmi_real_t i1_0i;
    60     jmi_int_t i1_0ie;
    61     jmi_int_t i1_0in;
     60    jmi_real_t _for_loop_variables_r1[1];
     61    jmi_int_t _for_loop_variables_i1[1];
     62    jmi_int_t _for_loop_variables_i2[1];
    6263    temp_1_v = INT_MIN;
    63     i1_0in = 0;
    64     i1_0ie = floor((jmi_array_size(x_a, 0)) - (1));
    65     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    66         temp_1_v = COND_EXP_EQ(COND_EXP_GT(temp_1_v, jmi_array_val_1(x_a, i1_0i), JMI_TRUE, JMI_FALSE), JMI_TRUE, temp_1_v, jmi_array_val_1(x_a, i1_0i));
     64    _for_loop_variables_i2[0] = 0;
     65    _for_loop_variables_i1[0] = floor((jmi_array_size(x_a, 0)) - (1));
     66    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     67        temp_1_v = COND_EXP_EQ(COND_EXP_GT(temp_1_v, jmi_array_val_1(x_a, _for_loop_variables_r1[0]), JMI_TRUE, JMI_FALSE), JMI_TRUE, temp_1_v, jmi_array_val_1(x_a, _for_loop_variables_r1[0]));
    6768    }
    6869    y_v = temp_1_v;
     
    7778    return y_v;
    7879}
     80
    7981")})));
    8082end CCodeGenLiteralTest1;
  • branches/2.16.x/Compiler/ModelicaCBackEnd/test/modelica/CCodeGenTests.mo

    r14210 r14239  
    908908    JMI_DEF(REA, t_v)
    909909    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 1, 2)
    910     jmi_real_t i1_0i;
    911     jmi_int_t i1_0ie;
    912     jmi_int_t i1_0in;
    913     jmi_real_t i2_1i;
    914     jmi_int_t i2_1ie;
    915     jmi_int_t i2_1in;
     910    jmi_real_t _for_loop_variables_r1[2];
     911    jmi_int_t _for_loop_variables_i1[2];
     912    jmi_int_t _for_loop_variables_i2[2];
    916913    if (y_a == NULL) {
    917914        JMI_ARRAY_INIT_2(STACK, jmi_real_t, jmi_array_t, y_an, 1, 2, 1, 1)
     
    919916    }
    920917    JMI_ARRAY_INIT_2(STACK, jmi_real_t, jmi_array_t, temp_1_a, 1, 2, 1, 1)
    921     i1_0in = 0;
    922     i1_0ie = floor((1) - (1));
    923     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    924         i2_1in = 0;
    925         i2_1ie = floor((1) - (1));
    926         for (i2_1i = 1; i2_1in <= i2_1ie; i2_1i = 1 + (++i2_1in)) {
    927             jmi_array_ref_2(temp_1_a, i1_0i, i2_1i) = jmi_array_val_2(x_a, i2_1i, i1_0i);
     918    _for_loop_variables_i2[0] = 0;
     919    _for_loop_variables_i1[0] = floor((1) - (1));
     920    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     921        _for_loop_variables_i2[1] = 0;
     922        _for_loop_variables_i1[1] = floor((1) - (1));
     923        for (_for_loop_variables_r1[1] = 1; _for_loop_variables_i2[1] <= _for_loop_variables_i1[1]; _for_loop_variables_r1[1] = 1 + (++(_for_loop_variables_i2[1]))) {
     924            jmi_array_ref_2(temp_1_a, _for_loop_variables_r1[0], _for_loop_variables_r1[1]) = jmi_array_val_2(x_a, _for_loop_variables_r1[1], _for_loop_variables_r1[0]);
    928925        }
    929926    }
     
    938935    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 1, 2)
    939936    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_2_a, 1, 1)
    940     jmi_real_t i1_2i;
    941     jmi_int_t i1_2ie;
    942     jmi_int_t i1_2in;
     937    jmi_real_t _for_loop_variables_r1[1];
     938    jmi_int_t _for_loop_variables_i1[1];
     939    jmi_int_t _for_loop_variables_i2[1];
    943940    if (y_a == NULL) {
    944941        JMI_ARRAY_INIT_2(STACK, jmi_real_t, jmi_array_t, y_an, 1, 2, 1, 1)
     
    948945    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_2_a, 1, 1, 1)
    949946    jmi_array_ref_1(temp_2_a, 1) = t_v;
    950     i1_2in = 0;
    951     i1_2ie = floor((1) - (1));
    952     for (i1_2i = 1; i1_2in <= i1_2ie; i1_2i = 1 + (++i1_2in)) {
    953         jmi_array_ref_2(temp_1_a, 1, i1_2i) = jmi_array_val_1(temp_2_a, i1_2i);
     947    _for_loop_variables_i2[0] = 0;
     948    _for_loop_variables_i1[0] = floor((1) - (1));
     949    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     950        jmi_array_ref_2(temp_1_a, 1, _for_loop_variables_r1[0]) = jmi_array_val_1(temp_2_a, _for_loop_variables_r1[0]);
    954951    }
    955952    JMI_ASG(GEN_ARR, y_a, temp_1_a)
     
    962959    JMI_DEF(REA, y_v)
    963960    JMI_DEF(REA, temp_1_v)
    964     jmi_real_t i1_3i;
    965     jmi_int_t i1_3ie;
    966     jmi_int_t i1_3in;
    967     jmi_real_t i2_4i;
    968     jmi_int_t i2_4ie;
    969     jmi_int_t i2_4in;
     961    jmi_real_t _for_loop_variables_r1[2];
     962    jmi_int_t _for_loop_variables_i1[2];
     963    jmi_int_t _for_loop_variables_i2[2];
    970964    temp_1_v = 0.0;
    971     i1_3in = 0;
    972     i1_3ie = floor((jmi_array_size(x_a, 0)) - (1));
    973     for (i1_3i = 1; i1_3in <= i1_3ie; i1_3i = 1 + (++i1_3in)) {
    974         i2_4in = 0;
    975         i2_4ie = floor((jmi_array_size(x_a, 1)) - (1));
    976         for (i2_4i = 1; i2_4in <= i2_4ie; i2_4i = 1 + (++i2_4in)) {
    977             temp_1_v = temp_1_v + jmi_array_val_2(x_a, i1_3i, i2_4i);
     965    _for_loop_variables_i2[0] = 0;
     966    _for_loop_variables_i1[0] = floor((jmi_array_size(x_a, 0)) - (1));
     967    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     968        _for_loop_variables_i2[1] = 0;
     969        _for_loop_variables_i1[1] = floor((jmi_array_size(x_a, 1)) - (1));
     970        for (_for_loop_variables_r1[1] = 1; _for_loop_variables_i2[1] <= _for_loop_variables_i1[1]; _for_loop_variables_r1[1] = 1 + (++(_for_loop_variables_i2[1]))) {
     971            temp_1_v = temp_1_v + jmi_array_val_2(x_a, _for_loop_variables_r1[0], _for_loop_variables_r1[1]);
    978972        }
    979973    }
     
    30012995    JMI_ARR(STACK, jmi_real_t, jmi_array_t, y_an, 2, 1)
    30022996    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 2, 1)
    3003     jmi_real_t i1_0i;
    3004     jmi_int_t i1_0ie;
    3005     jmi_int_t i1_0in;
    3006     jmi_real_t i1_1i;
    3007     jmi_int_t i1_1ie;
    3008     jmi_int_t i1_1in;
     2997    jmi_real_t _for_loop_variables_r1[1];
     2998    jmi_int_t _for_loop_variables_i1[1];
     2999    jmi_int_t _for_loop_variables_i2[1];
    30093000    if (dx_a == NULL) {
    30103001        JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, dx_an, 2, 1, 2)
     
    30183009    jmi_array_ref_1(temp_1_a, 1) = u_v;
    30193010    jmi_array_ref_1(temp_1_a, 2) = 0;
    3020     i1_0in = 0;
    3021     i1_0ie = floor((2) - (1));
    3022     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    3023         jmi_array_ref_1(dx_a, i1_0i) = - jmi_array_val_1(x_a, i1_0i) + jmi_array_val_1(temp_1_a, i1_0i);
    3024     }
    3025     i1_1in = 0;
    3026     i1_1ie = floor((2) - (1));
    3027     for (i1_1i = 1; i1_1in <= i1_1ie; i1_1i = 1 + (++i1_1in)) {
    3028         jmi_array_ref_1(y_a, i1_1i) = 2 * jmi_array_val_1(x_a, i1_1i);
     3011    _for_loop_variables_i2[0] = 0;
     3012    _for_loop_variables_i1[0] = floor((2) - (1));
     3013    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     3014        jmi_array_ref_1(dx_a, _for_loop_variables_r1[0]) = - jmi_array_val_1(x_a, _for_loop_variables_r1[0]) + jmi_array_val_1(temp_1_a, _for_loop_variables_r1[0]);
     3015    }
     3016    _for_loop_variables_i2[0] = 0;
     3017    _for_loop_variables_i1[0] = floor((2) - (1));
     3018    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     3019        jmi_array_ref_1(y_a, _for_loop_variables_r1[0]) = 2 * jmi_array_val_1(x_a, _for_loop_variables_r1[0]);
    30293020    }
    30303021    JMI_DYNAMIC_FREE()
     
    30963087    JMI_ARR(STACK, jmi_real_t, jmi_array_t, y_an, 2, 1)
    30973088    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 2, 1)
    3098     jmi_real_t i1_0i;
    3099     jmi_int_t i1_0ie;
    3100     jmi_int_t i1_0in;
    3101     jmi_real_t i1_1i;
    3102     jmi_int_t i1_1ie;
    3103     jmi_int_t i1_1in;
     3089    jmi_real_t _for_loop_variables_r1[1];
     3090    jmi_int_t _for_loop_variables_i1[1];
     3091    jmi_int_t _for_loop_variables_i2[1];
    31043092    if (dx_a == NULL) {
    31053093        JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, dx_an, 2, 1, 2)
     
    31133101    jmi_array_ref_1(temp_1_a, 1) = u_v;
    31143102    jmi_array_ref_1(temp_1_a, 2) = 0;
    3115     i1_0in = 0;
    3116     i1_0ie = floor((2) - (1));
    3117     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    3118         jmi_array_ref_1(dx_a, i1_0i) = - jmi_array_val_1(x_a, i1_0i) + jmi_array_val_1(temp_1_a, i1_0i);
    3119     }
    3120     i1_1in = 0;
    3121     i1_1ie = floor((2) - (1));
    3122     for (i1_1i = 1; i1_1in <= i1_1ie; i1_1i = 1 + (++i1_1in)) {
    3123         jmi_array_ref_1(y_a, i1_1i) = 2 * jmi_array_val_1(x_a, i1_1i);
     3103    _for_loop_variables_i2[0] = 0;
     3104    _for_loop_variables_i1[0] = floor((2) - (1));
     3105    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     3106        jmi_array_ref_1(dx_a, _for_loop_variables_r1[0]) = - jmi_array_val_1(x_a, _for_loop_variables_r1[0]) + jmi_array_val_1(temp_1_a, _for_loop_variables_r1[0]);
     3107    }
     3108    _for_loop_variables_i2[0] = 0;
     3109    _for_loop_variables_i1[0] = floor((2) - (1));
     3110    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     3111        jmi_array_ref_1(y_a, _for_loop_variables_r1[0]) = 2 * jmi_array_val_1(x_a, _for_loop_variables_r1[0]);
    31243112    }
    31253113    JMI_DYNAMIC_FREE()
     
    31393127    return ef;
    31403128}
    3141 
    31423129")})));
    31433130end CFunctionTest14;
     
    33213308    JMI_DYNAMIC_INIT()
    33223309    JMI_ARR(STACK, jmi_real_t, jmi_array_t, y_an, 2, 1)
    3323     jmi_real_t i_0i;
    3324     jmi_int_t i_0ie;
    3325     jmi_int_t i_0in;
     3310    jmi_real_t _for_loop_variables_r1[1];
     3311    jmi_int_t _for_loop_variables_i1[1];
     3312    jmi_int_t _for_loop_variables_i2[1];
    33263313    if (y_a == NULL) {
    33273314        JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, y_an, 2, 1, 2)
    33283315        y_a = y_an;
    33293316    }
    3330     i_0in = 0;
    3331     i_0ie = floor((2) - (1));
    3332     for (i_0i = 1; i_0in <= i_0ie; i_0i = 1 + (++i_0in)) {
    3333         jmi_array_ref_1(y_a, i_0i) = jmi_array_val_1(x_a, 1) + jmi_array_val_1(x_a, 2);
     3317    _for_loop_variables_i2[0] = 0;
     3318    _for_loop_variables_i1[0] = floor((2) - (1));
     3319    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     3320        jmi_array_ref_1(y_a, _for_loop_variables_r1[0]) = jmi_array_val_1(x_a, 1) + jmi_array_val_1(x_a, 2);
    33343321    }
    33353322    JMI_DYNAMIC_FREE()
     
    36953682    JMI_DEF(REA, temp_1_v)
    36963683    JMI_DEF(REA, temp_2_v)
    3697     jmi_real_t i1_0i;
    3698     jmi_int_t i1_0ie;
    3699     jmi_int_t i1_0in;
    3700     jmi_real_t i1_1i;
    3701     jmi_int_t i1_1ie;
    3702     jmi_int_t i1_1in;
     3684    jmi_real_t _for_loop_variables_r1[1];
     3685    jmi_int_t _for_loop_variables_i1[1];
     3686    jmi_int_t _for_loop_variables_i2[1];
    37033687    temp_1_v = 0.0;
    3704     i1_0in = 0;
    3705     i1_0ie = floor((jmi_array_size(x_a, 0)) - (1));
    3706     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    3707         temp_1_v = temp_1_v + jmi_array_val_1(x_a, i1_0i);
     3688    _for_loop_variables_i2[0] = 0;
     3689    _for_loop_variables_i1[0] = floor((jmi_array_size(x_a, 0)) - (1));
     3690    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     3691        temp_1_v = temp_1_v + jmi_array_val_1(x_a, _for_loop_variables_r1[0]);
    37083692    }
    37093693    temp_2_v = 0.0;
    3710     i1_1in = 0;
    3711     i1_1ie = floor((jmi_array_size(x_a, 0)) - (1));
    3712     for (i1_1i = 1; i1_1in <= i1_1ie; i1_1i = 1 + (++i1_1in)) {
    3713         temp_2_v = temp_2_v + jmi_array_val_1(x_a, i1_1i);
     3694    _for_loop_variables_i2[0] = 0;
     3695    _for_loop_variables_i1[0] = floor((jmi_array_size(x_a, 0)) - (1));
     3696    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     3697        temp_2_v = temp_2_v + jmi_array_val_1(x_a, _for_loop_variables_r1[0]);
    37143698    }
    37153699    n_v = floor(JMI_DIVIDE_FUNCTION(\"CCodeGenTests.FuncWithArray.g\", temp_1_v, temp_2_v, \"temp_1 / temp_2\"));
     
    37573741    JMI_DEF(REA, o_v)
    37583742    JMI_DEF(REA, x_v)
    3759     jmi_real_t i_0i;
    3760     jmi_int_t i_0ie;
    3761     jmi_int_t i_0in;
     3743    jmi_real_t _for_loop_variables_r1[1];
     3744    jmi_int_t _for_loop_variables_i1[1];
     3745    jmi_int_t _for_loop_variables_i2[1];
    37623746    o_v = 1.0;
    37633747    x_v = 0;
    3764     i_0in = 0;
    3765     i_0ie = floor((3) - (1));
    3766     for (i_0i = 1; i_0in <= i_0ie; i_0i = 1 + (++i_0in)) {
    3767         x_v = x_v + i_0i;
     3748    _for_loop_variables_i2[0] = 0;
     3749    _for_loop_variables_i1[0] = floor((3) - (1));
     3750    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     3751        x_v = x_v + _for_loop_variables_r1[0];
    37683752    }
    37693753    JMI_RET(GEN, o_o, o_v)
     
    37943778 Real x = f();
    37953779
    3796     annotation(__JModelica(UnitTesting(tests={
    3797         CCodeGenTestCase(
    3798             name="CFor2",
    3799             description="C code generation for for loops: generic exp",
    3800             variability_propagation=false,
    3801             inline_functions="none",
    3802             template="$C_functions$",
    3803             generatedCode="
     3780annotation(__JModelica(UnitTesting(tests={
     3781    CCodeGenTestCase(
     3782        name="Loops_For2",
     3783        description="C code generation for for loops: generic exp",
     3784        variability_propagation=false,
     3785        inline_functions="none",
     3786        template="$C_functions$",
     3787        generatedCode="
    38043788void func_CCodeGenTests_Loops_For2_f_def0(jmi_real_t* o_o) {
    38053789    JMI_DYNAMIC_INIT()
     
    38073791    JMI_DEF(REA, x_v)
    38083792    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 3, 1)
    3809     jmi_real_t i_0i;
    3810     int i_0ii;
     3793    jmi_real_t _for_loop_variables_r1[1];
     3794    jmi_int_t _for_loop_variables_i1[1];
     3795    jmi_int_t _for_loop_variables_i2[1];
    38113796    o_v = 1.0;
    38123797    x_v = 0;
     
    38153800    jmi_array_ref_1(temp_1_a, 2) = 3;
    38163801    jmi_array_ref_1(temp_1_a, 3) = 5;
    3817     for (i_0ii = 0; i_0ii < jmi_array_size(temp_1_a, 0); i_0ii++) {
    3818         i_0i = jmi_array_val_1(temp_1_a, i_0ii);
    3819         x_v = x_v + i_0i;
     3802    for (_for_loop_variables_i1[0] = 0; _for_loop_variables_i1[0] < jmi_array_size(temp_1_a, 0); (_for_loop_variables_i1[0])++) {
     3803        _for_loop_variables_r1[0] = jmi_array_val_1(temp_1_a, _for_loop_variables_i1[0]);
     3804        x_v = x_v + _for_loop_variables_r1[0];
    38203805    }
    38213806    JMI_RET(GEN, o_o, o_v)
     
    38583843    JMI_DEF(REA, o_v)
    38593844    JMI_DEF(REA, x_v)
    3860     jmi_real_t i_0i;
    3861     jmi_int_t i_0ie;
    3862     jmi_int_t i_0in;
     3845    jmi_real_t _for_loop_variables_r1[1];
     3846    jmi_int_t _for_loop_variables_i1[1];
     3847    jmi_int_t _for_loop_variables_i2[1];
    38633848    o_v = 1.0;
    38643849    x_v = 0;
    3865     i_0in = 0;
    3866     i_0ie = floor(((1) - (3)) / (-1));
    3867     for (i_0i = 3; i_0in <= i_0ie; i_0i = 3 + (-1) * (++i_0in)) {
    3868         x_v = x_v + i_0i;
     3850    _for_loop_variables_i2[0] = 0;
     3851    _for_loop_variables_i1[0] = floor(((1) - (3)) / (-1));
     3852    for (_for_loop_variables_r1[0] = 3; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 3 + (-1) * (++(_for_loop_variables_i2[0]))) {
     3853        x_v = x_v + _for_loop_variables_r1[0];
    38693854    }
    38703855    JMI_RET(GEN, o_o, o_v)
     
    39083893    JMI_DEF(REA, o_v)
    39093894    JMI_DEF(REA, x_v)
    3910     jmi_real_t i_0i;
    3911     jmi_int_t i_0ie;
    3912     jmi_int_t i_0in;
     3895    jmi_real_t _for_loop_variables_r1[1];
     3896    jmi_int_t _for_loop_variables_i1[1];
     3897    jmi_int_t _for_loop_variables_i2[1];
    39133898    o_v = 1.0;
    39143899    x_v = 0;
    3915     i_0in = 0;
    3916     i_0ie = floor(((1) - (3)) / (i_v));
    3917     for (i_0i = 3; i_0in <= i_0ie; i_0i = 3 + (i_v) * (++i_0in)) {
    3918         x_v = x_v + i_0i;
     3900    _for_loop_variables_i2[0] = 0;
     3901    _for_loop_variables_i1[0] = floor(((1) - (3)) / (i_v));
     3902    for (_for_loop_variables_r1[0] = 3; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 3 + (i_v) * (++(_for_loop_variables_i2[0]))) {
     3903        x_v = x_v + _for_loop_variables_r1[0];
    39193904    }
    39203905    JMI_RET(GEN, o_o, o_v)
     
    39473932    Real y[n] = (1:n) * time;
    39483933
    3949     annotation(__JModelica(UnitTesting(tests={
    3950         CCodeGenTestCase(
    3951             name="CForUnknown1",
    3952             description="C code gen for for loop over unknown size array: array variable",
    3953             template="$C_functions$",
    3954             generatedCode="
     3934annotation(__JModelica(UnitTesting(tests={
     3935    CCodeGenTestCase(
     3936        name="Loops_ForUnknownSize1",
     3937        description="C code gen for for loop over unknown size array: array variable",
     3938        template="$C_functions$",
     3939        generatedCode="
    39553940void func_CCodeGenTests_Loops_ForUnknownSize1_f_def0(jmi_array_t* y_a, jmi_real_t* x_o) {
    39563941    JMI_DYNAMIC_INIT()
    39573942    JMI_DEF(REA, x_v)
    3958     jmi_real_t v_0i;
    3959     int v_0ii;
     3943    jmi_real_t _for_loop_variables_r1[1];
     3944    jmi_int_t _for_loop_variables_i1[1];
     3945    jmi_int_t _for_loop_variables_i2[1];
    39603946    x_v = 0;
    3961     for (v_0ii = 0; v_0ii < jmi_array_size(y_a, 0); v_0ii++) {
    3962         v_0i = jmi_array_val_1(y_a, v_0ii);
    3963         x_v = x_v + v_0i;
     3947    for (_for_loop_variables_i1[0] = 0; _for_loop_variables_i1[0] < jmi_array_size(y_a, 0); (_for_loop_variables_i1[0])++) {
     3948        _for_loop_variables_r1[0] = jmi_array_val_1(y_a, _for_loop_variables_i1[0]);
     3949        x_v = x_v + _for_loop_variables_r1[0];
    39643950    }
    39653951    JMI_RET(GEN, x_o, x_v)
     
    40013987    JMI_DYNAMIC_INIT()
    40023988    JMI_DEF(REA, x_v)
    4003     jmi_real_t i_0i;
    4004     jmi_int_t i_0ie;
    4005     jmi_int_t i_0in;
     3989    jmi_real_t _for_loop_variables_r1[1];
     3990    jmi_int_t _for_loop_variables_i1[1];
     3991    jmi_int_t _for_loop_variables_i2[1];
    40063992    x_v = 0;
    4007     i_0in = 0;
    4008     i_0ie = floor((n_v) - (1));
    4009     for (i_0i = 1; i_0in <= i_0ie; i_0i = 1 + (++i_0in)) {
    4010         x_v = x_v + i_0i;
     3993    _for_loop_variables_i2[0] = 0;
     3994    _for_loop_variables_i1[0] = floor((n_v) - (1));
     3995    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     3996        x_v = x_v + _for_loop_variables_r1[0];
    40113997    }
    40123998    JMI_RET(GEN, x_o, x_v)
     
    40494035    JMI_DEF(REA, x_v)
    40504036    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_1_a, -1, 1)
    4051     jmi_real_t i1_0i;
    4052     jmi_int_t i1_0ie;
    4053     jmi_int_t i1_0in;
    4054     jmi_real_t i_1i;
    4055     int i_1ii;
     4037    jmi_real_t _for_loop_variables_r1[1];
     4038    jmi_int_t _for_loop_variables_i1[1];
     4039    jmi_int_t _for_loop_variables_i2[1];
    40564040    x_v = 0;
    40574041    JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, temp_1_a, JMI_MAX_EQUATION(n_v, 0.0), 1, JMI_MAX_EQUATION(n_v, 0.0))
    4058     i1_0in = 0;
    4059     i1_0ie = floor((JMI_MAX_EQUATION(n_v, 0.0)) - (1));
    4060     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    4061         jmi_array_ref_1(temp_1_a, i1_0i) = (1.0 * (i1_0i) * (i1_0i));
    4062     }
    4063     for (i_1ii = 0; i_1ii < jmi_array_size(temp_1_a, 0); i_1ii++) {
    4064         i_1i = jmi_array_val_1(temp_1_a, i_1ii);
    4065         x_v = x_v + i_1i;
     4042    _for_loop_variables_i2[0] = 0;
     4043    _for_loop_variables_i1[0] = floor((JMI_MAX_EQUATION(n_v, 0.0)) - (1));
     4044    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     4045        jmi_array_ref_1(temp_1_a, _for_loop_variables_r1[0]) = (1.0 * (_for_loop_variables_r1[0]) * (_for_loop_variables_r1[0]));
     4046    }
     4047    for (_for_loop_variables_i1[0] = 0; _for_loop_variables_i1[0] < jmi_array_size(temp_1_a, 0); (_for_loop_variables_i1[0])++) {
     4048        _for_loop_variables_r1[0] = jmi_array_val_1(temp_1_a, _for_loop_variables_i1[0]);
     4049        x_v = x_v + _for_loop_variables_r1[0];
    40664050    }
    40674051    JMI_RET(GEN, x_o, x_v)
     
    41054089    JMI_DEF(REA, y_v)
    41064090    JMI_DEF(INT, step_v)
    4107     jmi_real_t i_0i;
    4108     jmi_int_t i_0ie;
    4109     jmi_int_t i_0in;
     4091    jmi_real_t _for_loop_variables_r1[1];
     4092    jmi_int_t _for_loop_variables_i1[1];
     4093    jmi_int_t _for_loop_variables_i2[1];
    41104094    step_v = floor(x_v) + 1;
    41114095    y_v = 0;
    4112     i_0in = 0;
    4113     i_0ie = floor(((10) - (1)) / (step_v));
    4114     for (i_0i = 1; i_0in <= i_0ie; i_0i = 1 + (step_v) * (++i_0in)) {
    4115         y_v = y_v + i_0i;
     4096    _for_loop_variables_i2[0] = 0;
     4097    _for_loop_variables_i1[0] = floor(((10) - (1)) / (step_v));
     4098    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (step_v) * (++(_for_loop_variables_i2[0]))) {
     4099        y_v = y_v + _for_loop_variables_r1[0];
    41164100    }
    41174101    JMI_RET(GEN, y_o, y_v)
     
    41614145    JMI_DEF(REA, out_v)
    41624146    JMI_DEF(REA, temp_1_v)
    4163     jmi_real_t i1_0i;
    4164     jmi_int_t i1_0ie;
    4165     jmi_int_t i1_0in;
     4147    jmi_real_t _for_loop_variables_r1[1];
     4148    jmi_int_t _for_loop_variables_i1[1];
     4149    jmi_int_t _for_loop_variables_i2[1];
    41664150    temp_1_v = 0.0;
    4167     i1_0in = 0;
    4168     i1_0ie = floor((3) - (1));
    4169     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    4170         temp_1_v = temp_1_v + jmi_array_val_1(inp_a, i1_0i);
     4151    _for_loop_variables_i2[0] = 0;
     4152    _for_loop_variables_i1[0] = floor((3) - (1));
     4153    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     4154        temp_1_v = temp_1_v + jmi_array_val_1(inp_a, _for_loop_variables_r1[0]);
    41714155    }
    41724156    out_v = temp_1_v;
     
    41894173    jmi_array_ref_1(tmp_1, 3) = 3.0;
    41904174    (*res)[0] = func_CCodeGenTests_CArrayInput1_f_exp0(tmp_1) - (_x_0);
    4191 
    41924175")})));
    41934176end CArrayInput1;
     
    42244207    JMI_DEF(REA, out_v)
    42254208    JMI_DEF(REA, temp_1_v)
    4226     jmi_real_t i1_0i;
    4227     jmi_int_t i1_0ie;
    4228     jmi_int_t i1_0in;
     4209    jmi_real_t _for_loop_variables_r1[1];
     4210    jmi_int_t _for_loop_variables_i1[1];
     4211    jmi_int_t _for_loop_variables_i2[1];
    42294212    temp_1_v = 0.0;
    4230     i1_0in = 0;
    4231     i1_0ie = floor((3) - (1));
    4232     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    4233         temp_1_v = temp_1_v + jmi_array_val_1(inp_a, i1_0i);
     4213    _for_loop_variables_i2[0] = 0;
     4214    _for_loop_variables_i1[0] = floor((3) - (1));
     4215    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     4216        temp_1_v = temp_1_v + jmi_array_val_1(inp_a, _for_loop_variables_r1[0]);
    42344217    }
    42354218    out_v = temp_1_v;
     
    42524235    jmi_array_ref_1(tmp_1, 3) = 3.0 + 7.0;
    42534236    (*res)[0] = 2 + 5 * func_CCodeGenTests_CArrayInput2_f_exp0(tmp_1) - (_x_0);
    4254 
    42554237")})));
    42564238end CArrayInput2;
     
    42874269    JMI_DEF(REA, out_v)
    42884270    JMI_DEF(REA, temp_1_v)
    4289     jmi_real_t i1_0i;
    4290     jmi_int_t i1_0ie;
    4291     jmi_int_t i1_0in;
     4271    jmi_real_t _for_loop_variables_r1[1];
     4272    jmi_int_t _for_loop_variables_i1[1];
     4273    jmi_int_t _for_loop_variables_i2[1];
    42924274    temp_1_v = 0.0;
    4293     i1_0in = 0;
    4294     i1_0ie = floor((3) - (1));
    4295     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    4296         temp_1_v = temp_1_v + jmi_array_val_1(inp_a, i1_0i);
     4275    _for_loop_variables_i2[0] = 0;
     4276    _for_loop_variables_i1[0] = floor((3) - (1));
     4277    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     4278        temp_1_v = temp_1_v + jmi_array_val_1(inp_a, _for_loop_variables_r1[0]);
    42974279    }
    42984280    out_v = temp_1_v;
     
    43304312    jmi_array_ref_1(tmp_4, 3) = func_CCodeGenTests_CArrayInput3_f_exp0(tmp_3);
    43314313    (*res)[0] = func_CCodeGenTests_CArrayInput3_f_exp0(tmp_4) - (_x_0);
    4332 
    43334314")})));
    43344315end CArrayInput3;
     
    43704351    JMI_DEF(REA, out_v)
    43714352    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 3, 1)
    4372     jmi_real_t i1_0i;
    4373     jmi_int_t i1_0ie;
    4374     jmi_int_t i1_0in;
     4353    jmi_real_t _for_loop_variables_r1[1];
     4354    jmi_int_t _for_loop_variables_i1[1];
     4355    jmi_int_t _for_loop_variables_i2[1];
    43754356    out_v = 1.0;
    43764357    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_1_a, 3, 1, 3)
    4377     i1_0in = 0;
    4378     i1_0ie = floor((3) - (1));
    4379     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    4380         jmi_array_ref_1(temp_1_a, i1_0i) = i1_0i;
     4358    _for_loop_variables_i2[0] = 0;
     4359    _for_loop_variables_i1[0] = floor((3) - (1));
     4360    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     4361        jmi_array_ref_1(temp_1_a, _for_loop_variables_r1[0]) = _for_loop_variables_r1[0];
    43814362    }
    43824363    out_v = func_CCodeGenTests_CArrayInput4_f2_exp1(temp_1_a);
     
    43964377    JMI_DEF(REA, out_v)
    43974378    JMI_DEF(REA, temp_1_v)
    4398     jmi_real_t i1_1i;
    4399     jmi_int_t i1_1ie;
    4400     jmi_int_t i1_1in;
     4379    jmi_real_t _for_loop_variables_r1[1];
     4380    jmi_int_t _for_loop_variables_i1[1];
     4381    jmi_int_t _for_loop_variables_i2[1];
    44014382    temp_1_v = 0.0;
    4402     i1_1in = 0;
    4403     i1_1ie = floor((3) - (1));
    4404     for (i1_1i = 1; i1_1in <= i1_1ie; i1_1i = 1 + (++i1_1in)) {
    4405         temp_1_v = temp_1_v + jmi_array_val_1(inp_a, i1_1i);
     4383    _for_loop_variables_i2[0] = 0;
     4384    _for_loop_variables_i1[0] = floor((3) - (1));
     4385    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     4386        temp_1_v = temp_1_v + jmi_array_val_1(inp_a, _for_loop_variables_r1[0]);
    44064387    }
    44074388    out_v = temp_1_v;
     
    44594440    JMI_DEF(REA, t_v)
    44604441    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 3, 1)
    4461     jmi_real_t i1_0i;
    4462     jmi_int_t i1_0ie;
    4463     jmi_int_t i1_0in;
     4442    jmi_real_t _for_loop_variables_r1[1];
     4443    jmi_int_t _for_loop_variables_i1[1];
     4444    jmi_int_t _for_loop_variables_i2[1];
    44644445    out_v = 1.0;
    44654446    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_1_a, 3, 1, 3)
    4466     i1_0in = 0;
    4467     i1_0ie = floor((3) - (1));
    4468     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    4469         jmi_array_ref_1(temp_1_a, i1_0i) = i1_0i;
     4447    _for_loop_variables_i2[0] = 0;
     4448    _for_loop_variables_i1[0] = floor((3) - (1));
     4449    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     4450        jmi_array_ref_1(temp_1_a, _for_loop_variables_r1[0]) = _for_loop_variables_r1[0];
    44704451    }
    44714452    func_CCodeGenTests_CArrayInput5_f2_def1(temp_1_a, &out_v, &t_v);
     
    44874468    JMI_DEF(REA, temp_1_v)
    44884469    JMI_DEF(REA, temp_2_v)
    4489     jmi_real_t i1_1i;
    4490     jmi_int_t i1_1ie;
    4491     jmi_int_t i1_1in;
    4492     jmi_real_t i1_2i;
    4493     jmi_int_t i1_2ie;
    4494     jmi_int_t i1_2in;
     4470    jmi_real_t _for_loop_variables_r1[1];
     4471    jmi_int_t _for_loop_variables_i1[1];
     4472    jmi_int_t _for_loop_variables_i2[1];
    44954473    temp_1_v = 0.0;
    4496     i1_1in = 0;
    4497     i1_1ie = floor((3) - (1));
    4498     for (i1_1i = 1; i1_1in <= i1_1ie; i1_1i = 1 + (++i1_1in)) {
    4499         temp_1_v = temp_1_v + jmi_array_val_1(inp_a, i1_1i);
     4474    _for_loop_variables_i2[0] = 0;
     4475    _for_loop_variables_i1[0] = floor((3) - (1));
     4476    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     4477        temp_1_v = temp_1_v + jmi_array_val_1(inp_a, _for_loop_variables_r1[0]);
    45004478    }
    45014479    out1_v = temp_1_v;
    45024480    temp_2_v = -1.7976931348623157E308;
    4503     i1_2in = 0;
    4504     i1_2ie = floor((3) - (1));
    4505     for (i1_2i = 1; i1_2in <= i1_2ie; i1_2i = 1 + (++i1_2in)) {
    4506         temp_2_v = COND_EXP_EQ(COND_EXP_GT(temp_2_v, jmi_array_val_1(inp_a, i1_2i), JMI_TRUE, JMI_FALSE), JMI_TRUE, temp_2_v, jmi_array_val_1(inp_a, i1_2i));
     4481    _for_loop_variables_i2[0] = 0;
     4482    _for_loop_variables_i1[0] = floor((3) - (1));
     4483    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     4484        temp_2_v = COND_EXP_EQ(COND_EXP_GT(temp_2_v, jmi_array_val_1(inp_a, _for_loop_variables_r1[0]), JMI_TRUE, JMI_FALSE), JMI_TRUE, temp_2_v, jmi_array_val_1(inp_a, _for_loop_variables_r1[0]));
    45074485    }
    45084486    out2_v = temp_2_v;
     
    45674545    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_2_a, -1, 1)
    45684546    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_3_a, -1, 1)
    4569     jmi_real_t i1_0i;
    4570     jmi_int_t i1_0ie;
    4571     jmi_int_t i1_0in;
    4572     jmi_real_t i1_1i;
    4573     jmi_int_t i1_1ie;
    4574     jmi_int_t i1_1in;
    4575     jmi_real_t i1_2i;
    4576     jmi_int_t i1_2ie;
    4577     jmi_int_t i1_2in;
     4547    jmi_real_t _for_loop_variables_r1[1];
     4548    jmi_int_t _for_loop_variables_i1[1];
     4549    jmi_int_t _for_loop_variables_i2[1];
    45784550    out_v = 1.0;
    45794551    if (COND_EXP_EQ(JMI_MAX_EQUATION(floor(2.0 - (i_v + 1.0)) + 1.0, 0.0), 2.0, JMI_TRUE, JMI_FALSE) == JMI_FALSE) {
     
    45814553    }
    45824554    JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, temp_1_a, JMI_MAX_EQUATION(floor(2.0 - (i_v + 1.0)) + 1.0, 0.0), 1, JMI_MAX_EQUATION(floor(2.0 - (i_v + 1.0)) + 1.0, 0.0))
    4583     i1_0in = 0;
    4584     i1_0ie = floor((JMI_MAX_EQUATION(floor(2.0 - (i_v + 1.0)) + 1.0, 0.0)) - (1));
    4585     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    4586         jmi_array_ref_1(temp_1_a, i1_0i) = i_v + 1 + (i1_0i - 1);
     4555    _for_loop_variables_i2[0] = 0;
     4556    _for_loop_variables_i1[0] = floor((JMI_MAX_EQUATION(floor(2.0 - (i_v + 1.0)) + 1.0, 0.0)) - (1));
     4557    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     4558        jmi_array_ref_1(temp_1_a, _for_loop_variables_r1[0]) = i_v + 1 + (_for_loop_variables_r1[0] - 1);
    45874559    }
    45884560    if (COND_EXP_LT(func_CCodeGenTests_CArrayInput6_f2_exp1(temp_1_a), 4, JMI_TRUE, JMI_FALSE)) {
     
    45914563        }
    45924564        JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, temp_2_a, JMI_MAX_EQUATION(floor(6.0 - (i_v + 5.0)) + 1.0, 0.0), 1, JMI_MAX_EQUATION(floor(6.0 - (i_v + 5.0)) + 1.0, 0.0))
    4593         i1_1in = 0;
    4594         i1_1ie = floor((JMI_MAX_EQUATION(floor(6.0 - (i_v + 5.0)) + 1.0, 0.0)) - (1));
    4595         for (i1_1i = 1; i1_1in <= i1_1ie; i1_1i = 1 + (++i1_1in)) {
    4596             jmi_array_ref_1(temp_2_a, i1_1i) = i_v + 5 + (i1_1i - 1);
     4565        _for_loop_variables_i2[0] = 0;
     4566        _for_loop_variables_i1[0] = floor((JMI_MAX_EQUATION(floor(6.0 - (i_v + 5.0)) + 1.0, 0.0)) - (1));
     4567        for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     4568            jmi_array_ref_1(temp_2_a, _for_loop_variables_r1[0]) = i_v + 5 + (_for_loop_variables_r1[0] - 1);
    45974569        }
    45984570        out_v = func_CCodeGenTests_CArrayInput6_f2_exp1(temp_2_a);
     
    46024574        }
    46034575        JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, temp_3_a, JMI_MAX_EQUATION(floor(8.0 - (i_v + 7.0)) + 1.0, 0.0), 1, JMI_MAX_EQUATION(floor(8.0 - (i_v + 7.0)) + 1.0, 0.0))
    4604         i1_2in = 0;
    4605         i1_2ie = floor((JMI_MAX_EQUATION(floor(8.0 - (i_v + 7.0)) + 1.0, 0.0)) - (1));
    4606         for (i1_2i = 1; i1_2in <= i1_2ie; i1_2i = 1 + (++i1_2in)) {
    4607             jmi_array_ref_1(temp_3_a, i1_2i) = i_v + 7 + (i1_2i - 1);
     4576        _for_loop_variables_i2[0] = 0;
     4577        _for_loop_variables_i1[0] = floor((JMI_MAX_EQUATION(floor(8.0 - (i_v + 7.0)) + 1.0, 0.0)) - (1));
     4578        for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     4579            jmi_array_ref_1(temp_3_a, _for_loop_variables_r1[0]) = i_v + 7 + (_for_loop_variables_r1[0] - 1);
    46084580        }
    46094581        out_v = func_CCodeGenTests_CArrayInput6_f2_exp1(temp_3_a);
     
    46244596    JMI_DEF(REA, out_v)
    46254597    JMI_DEF(REA, temp_1_v)
    4626     jmi_real_t i1_3i;
    4627     jmi_int_t i1_3ie;
    4628     jmi_int_t i1_3in;
     4598    jmi_real_t _for_loop_variables_r1[1];
     4599    jmi_int_t _for_loop_variables_i1[1];
     4600    jmi_int_t _for_loop_variables_i2[1];
    46294601    temp_1_v = 0.0;
    4630     i1_3in = 0;
    4631     i1_3ie = floor((2) - (1));
    4632     for (i1_3i = 1; i1_3in <= i1_3ie; i1_3i = 1 + (++i1_3in)) {
    4633         temp_1_v = temp_1_v + jmi_array_val_1(inp_a, i1_3i);
     4602    _for_loop_variables_i2[0] = 0;
     4603    _for_loop_variables_i1[0] = floor((2) - (1));
     4604    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     4605        temp_1_v = temp_1_v + jmi_array_val_1(inp_a, _for_loop_variables_r1[0]);
    46344606    }
    46354607    out_v = temp_1_v;
     
    46874659    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 3, 1)
    46884660    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_2_a, 3, 1)
    4689     jmi_real_t i1_0i;
    4690     jmi_int_t i1_0ie;
    4691     jmi_int_t i1_0in;
    4692     jmi_real_t i1_1i;
    4693     jmi_int_t i1_1ie;
    4694     jmi_int_t i1_1in;
    4695     jmi_real_t i1_2i;
    4696     jmi_int_t i1_2ie;
    4697     jmi_int_t i1_2in;
     4661    jmi_real_t _for_loop_variables_r1[1];
     4662    jmi_int_t _for_loop_variables_i1[1];
     4663    jmi_int_t _for_loop_variables_i2[1];
    46984664    out_v = 1.0;
    46994665    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_1_a, 3, 1, 3)
    4700     i1_0in = 0;
    4701     i1_0ie = floor((3) - (1));
    4702     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    4703         jmi_array_ref_1(temp_1_a, i1_0i) = i1_0i;
     4666    _for_loop_variables_i2[0] = 0;
     4667    _for_loop_variables_i1[0] = floor((3) - (1));
     4668    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     4669        jmi_array_ref_1(temp_1_a, _for_loop_variables_r1[0]) = _for_loop_variables_r1[0];
    47044670    }
    47054671    while (COND_EXP_LT(func_CCodeGenTests_CArrayInput7_f2_exp1(temp_1_a), 2, JMI_TRUE, JMI_FALSE)) {
    47064672        JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_2_a, 3, 1, 3)
    4707         i1_1in = 0;
    4708         i1_1ie = floor((3) - (1));
    4709         for (i1_1i = 1; i1_1in <= i1_1ie; i1_1i = 1 + (++i1_1in)) {
    4710             jmi_array_ref_1(temp_2_a, i1_1i) = 4 + (i1_1i - 1);
     4673        _for_loop_variables_i2[0] = 0;
     4674        _for_loop_variables_i1[0] = floor((3) - (1));
     4675        for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     4676            jmi_array_ref_1(temp_2_a, _for_loop_variables_r1[0]) = 4 + (_for_loop_variables_r1[0] - 1);
    47114677        }
    47124678        out_v = func_CCodeGenTests_CArrayInput7_f2_exp1(temp_2_a);
    47134679        JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_1_a, 3, 1, 3)
    4714         i1_2in = 0;
    4715         i1_2ie = floor((3) - (1));
    4716         for (i1_2i = 1; i1_2in <= i1_2ie; i1_2i = 1 + (++i1_2in)) {
    4717             jmi_array_ref_1(temp_1_a, i1_2i) = i1_2i;
     4680        _for_loop_variables_i2[0] = 0;
     4681        _for_loop_variables_i1[0] = floor((3) - (1));
     4682        for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     4683            jmi_array_ref_1(temp_1_a, _for_loop_variables_r1[0]) = _for_loop_variables_r1[0];
    47184684        }
    47194685    }
     
    47334699    JMI_DEF(REA, out_v)
    47344700    JMI_DEF(REA, temp_1_v)
    4735     jmi_real_t i1_3i;
    4736     jmi_int_t i1_3ie;
    4737     jmi_int_t i1_3in;
     4701    jmi_real_t _for_loop_variables_r1[1];
     4702    jmi_int_t _for_loop_variables_i1[1];
     4703    jmi_int_t _for_loop_variables_i2[1];
    47384704    temp_1_v = 0.0;
    4739     i1_3in = 0;
    4740     i1_3ie = floor((3) - (1));
    4741     for (i1_3i = 1; i1_3in <= i1_3ie; i1_3i = 1 + (++i1_3in)) {
    4742         temp_1_v = temp_1_v + jmi_array_val_1(inp_a, i1_3i);
     4705    _for_loop_variables_i2[0] = 0;
     4706    _for_loop_variables_i1[0] = floor((3) - (1));
     4707    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     4708        temp_1_v = temp_1_v + jmi_array_val_1(inp_a, _for_loop_variables_r1[0]);
    47434709    }
    47444710    out_v = temp_1_v;
     
    47984764    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_3_a, 3, 1)
    47994765    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_4_a, 3, 1)
    4800     jmi_real_t i1_0i;
    4801     jmi_int_t i1_0ie;
    4802     jmi_int_t i1_0in;
    4803     jmi_real_t i1_1i;
    4804     jmi_int_t i1_1ie;
    4805     jmi_int_t i1_1in;
    4806     jmi_real_t i_2i;
    4807     int i_2ii;
    4808     jmi_real_t i1_3i;
    4809     jmi_int_t i1_3ie;
    4810     jmi_int_t i1_3in;
     4766    jmi_real_t _for_loop_variables_r1[2];
     4767    jmi_int_t _for_loop_variables_i1[2];
     4768    jmi_int_t _for_loop_variables_i2[2];
    48114769    out_v = 1.0;
    48124770    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_1_a, 2, 1, 2)
    48134771    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_2_a, 3, 1, 3)
    4814     i1_0in = 0;
    4815     i1_0ie = floor((3) - (1));
    4816     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    4817         jmi_array_ref_1(temp_2_a, i1_0i) = i1_0i;
     4772    _for_loop_variables_i2[0] = 0;
     4773    _for_loop_variables_i1[0] = floor((3) - (1));
     4774    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     4775        jmi_array_ref_1(temp_2_a, _for_loop_variables_r1[0]) = _for_loop_variables_r1[0];
    48184776    }
    48194777    jmi_array_ref_1(temp_1_a, 1) = func_CCodeGenTests_CArrayInput8_f2_exp1(temp_2_a);
    48204778    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_3_a, 3, 1, 3)
    4821     i1_1in = 0;
    4822     i1_1ie = floor((3) - (1));
    4823     for (i1_1i = 1; i1_1in <= i1_1ie; i1_1i = 1 + (++i1_1in)) {
    4824         jmi_array_ref_1(temp_3_a, i1_1i) = 4 + (i1_1i - 1);
     4779    _for_loop_variables_i2[0] = 0;
     4780    _for_loop_variables_i1[0] = floor((3) - (1));
     4781    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     4782        jmi_array_ref_1(temp_3_a, _for_loop_variables_r1[0]) = 4 + (_for_loop_variables_r1[0] - 1);
    48254783    }
    48264784    jmi_array_ref_1(temp_1_a, 2) = func_CCodeGenTests_CArrayInput8_f2_exp1(temp_3_a);
    4827     for (i_2ii = 0; i_2ii < jmi_array_size(temp_1_a, 0); i_2ii++) {
    4828         i_2i = jmi_array_val_1(temp_1_a, i_2ii);
     4785    for (_for_loop_variables_i1[0] = 0; _for_loop_variables_i1[0] < jmi_array_size(temp_1_a, 0); (_for_loop_variables_i1[0])++) {
     4786        _for_loop_variables_r1[0] = jmi_array_val_1(temp_1_a, _for_loop_variables_i1[0]);
    48294787        JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_4_a, 3, 1, 3)
    4830         i1_3in = 0;
    4831         i1_3ie = floor((3) - (1));
    4832         for (i1_3i = 1; i1_3in <= i1_3ie; i1_3i = 1 + (++i1_3in)) {
    4833             jmi_array_ref_1(temp_4_a, i1_3i) = 7 + (i1_3i - 1);
     4788        _for_loop_variables_i2[1] = 0;
     4789        _for_loop_variables_i1[1] = floor((3) - (1));
     4790        for (_for_loop_variables_r1[1] = 1; _for_loop_variables_i2[1] <= _for_loop_variables_i1[1]; _for_loop_variables_r1[1] = 1 + (++(_for_loop_variables_i2[1]))) {
     4791            jmi_array_ref_1(temp_4_a, _for_loop_variables_r1[1]) = 7 + (_for_loop_variables_r1[1] - 1);
    48344792        }
    48354793        out_v = func_CCodeGenTests_CArrayInput8_f2_exp1(temp_4_a);
     
    48504808    JMI_DEF(REA, out_v)
    48514809    JMI_DEF(REA, temp_1_v)
    4852     jmi_real_t i1_4i;
    4853     jmi_int_t i1_4ie;
    4854     jmi_int_t i1_4in;
     4810    jmi_real_t _for_loop_variables_r1[1];
     4811    jmi_int_t _for_loop_variables_i1[1];
     4812    jmi_int_t _for_loop_variables_i2[1];
    48554813    temp_1_v = 0.0;
    4856     i1_4in = 0;
    4857     i1_4ie = floor((3) - (1));
    4858     for (i1_4i = 1; i1_4in <= i1_4ie; i1_4i = 1 + (++i1_4in)) {
    4859         temp_1_v = temp_1_v + jmi_array_val_1(inp_a, i1_4i);
     4814    _for_loop_variables_i2[0] = 0;
     4815    _for_loop_variables_i1[0] = floor((3) - (1));
     4816    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     4817        temp_1_v = temp_1_v + jmi_array_val_1(inp_a, _for_loop_variables_r1[0]);
    48604818    }
    48614819    out_v = temp_1_v;
     
    50194977    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_3_a, 2, 1)
    50204978    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_4_a, 2, 1)
    5021     jmi_real_t i1_0i;
    5022     jmi_int_t i1_0ie;
    5023     jmi_int_t i1_0in;
     4979    jmi_real_t _for_loop_variables_r1[1];
     4980    jmi_int_t _for_loop_variables_i1[1];
     4981    jmi_int_t _for_loop_variables_i2[1];
    50244982    o_v = 0;
    50254983    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_3_a, 2, 1, 2)
     
    50294987    jmi_array_ref_1(temp_4_a, 2) = 4;
    50304988    temp_2_v = 0.0;
    5031     i1_0in = 0;
    5032     i1_0ie = floor((2) - (1));
    5033     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    5034         temp_2_v = temp_2_v + jmi_array_val_1(temp_3_a, i1_0i) * jmi_array_val_1(temp_4_a, i1_0i);
     4989    _for_loop_variables_i2[0] = 0;
     4990    _for_loop_variables_i1[0] = floor((2) - (1));
     4991    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     4992        temp_2_v = temp_2_v + jmi_array_val_1(temp_3_a, _for_loop_variables_r1[0]) * jmi_array_val_1(temp_4_a, _for_loop_variables_r1[0]);
    50354993    }
    50364994    temp_1_v = temp_2_v;
     
    52715229    JMI_DYNAMIC_INIT()
    52725230    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, o_an, -1, 1)
    5273     jmi_real_t i1_0i;
    5274     jmi_int_t i1_0ie;
    5275     jmi_int_t i1_0in;
     5231    jmi_real_t _for_loop_variables_r1[1];
     5232    jmi_int_t _for_loop_variables_i1[1];
     5233    jmi_int_t _for_loop_variables_i2[1];
    52765234    if (o_a == NULL) {
    52775235        JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, o_an, jmi_array_size(a_a, 0), 1, jmi_array_size(a_a, 0))
    52785236        o_a = o_an;
    52795237    }
    5280     i1_0in = 0;
    5281     i1_0ie = floor((jmi_array_size(a_a, 0)) - (1));
    5282     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    5283         jmi_array_ref_1(o_a, i1_0i) = jmi_array_val_1(a_a, i1_0i) + jmi_array_val_1(b_a, i1_0i);
     5238    _for_loop_variables_i2[0] = 0;
     5239    _for_loop_variables_i1[0] = floor((jmi_array_size(a_a, 0)) - (1));
     5240    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     5241        jmi_array_ref_1(o_a, _for_loop_variables_r1[0]) = jmi_array_val_1(a_a, _for_loop_variables_r1[0]) + jmi_array_val_1(b_a, _for_loop_variables_r1[0]);
    52845242    }
    52855243    JMI_DYNAMIC_FREE()
     
    53175275    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_4_a, 2, 1)
    53185276    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_5_a, 2, 1)
    5319     jmi_real_t i3_0i;
    5320     jmi_int_t i3_0ie;
    5321     jmi_int_t i3_0in;
    5322     jmi_real_t i3_1i;
    5323     jmi_int_t i3_1ie;
    5324     jmi_int_t i3_1in;
    5325     jmi_real_t i1_2i;
    5326     jmi_int_t i1_2ie;
    5327     jmi_int_t i1_2in;
    5328     jmi_real_t i2_3i;
    5329     jmi_int_t i2_3ie;
    5330     jmi_int_t i2_3in;
    5331     jmi_real_t i3_4i;
    5332     jmi_int_t i3_4ie;
    5333     jmi_int_t i3_4in;
     5277    jmi_real_t _for_loop_variables_r1[3];
     5278    jmi_int_t _for_loop_variables_i1[3];
     5279    jmi_int_t _for_loop_variables_i2[3];
    53345280    if (y_a == NULL) {
    53355281        JMI_ARRAY_INIT_2(HEAP, jmi_real_t, jmi_array_t, y_an, jmi_array_size(x_a, 0) * 2, 2, jmi_array_size(x_a, 0), 2)
     
    53415287    jmi_array_ref_1(temp_4_a, 1) = 1;
    53425288    jmi_array_ref_1(temp_4_a, 2) = 2;
    5343     i3_0in = 0;
    5344     i3_0ie = floor((2) - (1));
    5345     for (i3_0i = 1; i3_0in <= i3_0ie; i3_0i = 1 + (++i3_0in)) {
    5346         jmi_array_ref_2(temp_3_a, 1, i3_0i) = jmi_array_val_1(temp_4_a, i3_0i);
     5289    _for_loop_variables_i2[0] = 0;
     5290    _for_loop_variables_i1[0] = floor((2) - (1));
     5291    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     5292        jmi_array_ref_2(temp_3_a, 1, _for_loop_variables_r1[0]) = jmi_array_val_1(temp_4_a, _for_loop_variables_r1[0]);
    53475293    }
    53485294    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_5_a, 2, 1, 2)
    53495295    jmi_array_ref_1(temp_5_a, 1) = 3;
    53505296    jmi_array_ref_1(temp_5_a, 2) = 4;
    5351     i3_1in = 0;
    5352     i3_1ie = floor((2) - (1));
    5353     for (i3_1i = 1; i3_1in <= i3_1ie; i3_1i = 1 + (++i3_1in)) {
    5354         jmi_array_ref_2(temp_3_a, 2, i3_1i) = jmi_array_val_1(temp_5_a, i3_1i);
    5355     }
    5356     i1_2in = 0;
    5357     i1_2ie = floor((jmi_array_size(x_a, 0)) - (1));
    5358     for (i1_2i = 1; i1_2in <= i1_2ie; i1_2i = 1 + (++i1_2in)) {
    5359         i2_3in = 0;
    5360         i2_3ie = floor((2) - (1));
    5361         for (i2_3i = 1; i2_3in <= i2_3ie; i2_3i = 1 + (++i2_3in)) {
     5297    _for_loop_variables_i2[0] = 0;
     5298    _for_loop_variables_i1[0] = floor((2) - (1));
     5299    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     5300        jmi_array_ref_2(temp_3_a, 2, _for_loop_variables_r1[0]) = jmi_array_val_1(temp_5_a, _for_loop_variables_r1[0]);
     5301    }
     5302    _for_loop_variables_i2[0] = 0;
     5303    _for_loop_variables_i1[0] = floor((jmi_array_size(x_a, 0)) - (1));
     5304    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     5305        _for_loop_variables_i2[1] = 0;
     5306        _for_loop_variables_i1[1] = floor((2) - (1));
     5307        for (_for_loop_variables_r1[1] = 1; _for_loop_variables_i2[1] <= _for_loop_variables_i1[1]; _for_loop_variables_r1[1] = 1 + (++(_for_loop_variables_i2[1]))) {
    53625308            temp_2_v = 0.0;
    5363             i3_4in = 0;
    5364             i3_4ie = floor((2) - (1));
    5365             for (i3_4i = 1; i3_4in <= i3_4ie; i3_4i = 1 + (++i3_4in)) {
    5366                 temp_2_v = temp_2_v + jmi_array_val_2(x_a, i1_2i, i3_4i) * jmi_array_val_2(temp_3_a, i3_4i, i2_3i);
     5309            _for_loop_variables_i2[2] = 0;
     5310            _for_loop_variables_i1[2] = floor((2) - (1));
     5311            for (_for_loop_variables_r1[2] = 1; _for_loop_variables_i2[2] <= _for_loop_variables_i1[2]; _for_loop_variables_r1[2] = 1 + (++(_for_loop_variables_i2[2]))) {
     5312                temp_2_v = temp_2_v + jmi_array_val_2(x_a, _for_loop_variables_r1[0], _for_loop_variables_r1[2]) * jmi_array_val_2(temp_3_a, _for_loop_variables_r1[2], _for_loop_variables_r1[1]);
    53675313            }
    5368             jmi_array_ref_2(temp_1_a, i1_2i, i2_3i) = temp_2_v;
     5314            jmi_array_ref_2(temp_1_a, _for_loop_variables_r1[0], _for_loop_variables_r1[1]) = temp_2_v;
    53695315        }
    53705316    }
     
    54335379    JMI_DEF(REA, y3_v)
    54345380    JMI_DEF(REA, temp_1_v)
    5435     jmi_real_t i1_0i;
    5436     jmi_int_t i1_0ie;
    5437     jmi_int_t i1_0in;
     5381    jmi_real_t _for_loop_variables_r1[1];
     5382    jmi_int_t _for_loop_variables_i1[1];
     5383    jmi_int_t _for_loop_variables_i2[1];
    54385384    temp_1_v = 0.0;
    5439     i1_0in = 0;
    5440     i1_0ie = floor((jmi_array_size(x3_a, 0)) - (1));
    5441     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    5442         temp_1_v = temp_1_v + jmi_array_val_1(x3_a, i1_0i);
     5385    _for_loop_variables_i2[0] = 0;
     5386    _for_loop_variables_i1[0] = floor((jmi_array_size(x3_a, 0)) - (1));
     5387    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     5388        temp_1_v = temp_1_v + jmi_array_val_1(x3_a, _for_loop_variables_r1[0]);
    54435389    }
    54445390    y3_v = temp_1_v;
     
    55075453    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_3_a, -1, 1)
    55085454    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_4_a, -1, 1)
    5509     jmi_real_t i1_0i;
    5510     jmi_int_t i1_0ie;
    5511     jmi_int_t i1_0in;
    5512     jmi_real_t i1_1i;
    5513     jmi_int_t i1_1ie;
    5514     jmi_int_t i1_1in;
    5515     jmi_real_t i1_2i;
    5516     jmi_int_t i1_2ie;
    5517     jmi_int_t i1_2in;
     5455    jmi_real_t _for_loop_variables_r1[1];
     5456    jmi_int_t _for_loop_variables_i1[1];
     5457    jmi_int_t _for_loop_variables_i2[1];
    55185458    if (o_a == NULL) {
    55195459        JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, o_an, jmi_array_size(i_a, 0), 1, jmi_array_size(i_a, 0))
     
    55295469    jmi_array_ref_1(temp_2_a, 2) = 1;
    55305470    jmi_array_ref_1(temp_2_a, 3) = 1;
    5531     i1_0in = 0;
    5532     i1_0ie = floor((3) - (1));
    5533     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    5534         jmi_array_ref_1(o_a, jmi_array_ref_1(temp_1_a, i1_0i)) = jmi_array_val_1(temp_2_a, i1_0i);
     5471    _for_loop_variables_i2[0] = 0;
     5472    _for_loop_variables_i1[0] = floor((3) - (1));
     5473    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     5474        jmi_array_ref_1(o_a, jmi_array_ref_1(temp_1_a, _for_loop_variables_r1[0])) = jmi_array_val_1(temp_2_a, _for_loop_variables_r1[0]);
    55355475    }
    55365476    JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, temp_3_a, jmi_array_size(i_a, 0), 1, jmi_array_size(i_a, 0))
    5537     i1_1in = 0;
    5538     i1_1ie = floor((jmi_array_size(i_a, 0)) - (1));
    5539     for (i1_1i = 1; i1_1in <= i1_1ie; i1_1i = 1 + (++i1_1in)) {
    5540         jmi_array_ref_1(temp_3_a, i1_1i) = jmi_array_val_1(o_a, jmi_array_val_1(i_a, i1_1i));
     5477    _for_loop_variables_i2[0] = 0;
     5478    _for_loop_variables_i1[0] = floor((jmi_array_size(i_a, 0)) - (1));
     5479    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     5480        jmi_array_ref_1(temp_3_a, _for_loop_variables_r1[0]) = jmi_array_val_1(o_a, jmi_array_val_1(i_a, _for_loop_variables_r1[0]));
    55415481    }
    55425482    JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, temp_4_a, jmi_array_size(i_a, 0), 1, jmi_array_size(i_a, 0))
    55435483    func_CCodeGenTests_CUnknownArray4_f_def1(temp_3_a, temp_4_a, NULL);
    5544     i1_2in = 0;
    5545     i1_2ie = floor((jmi_array_size(i_a, 0)) - (1));
    5546     for (i1_2i = 1; i1_2in <= i1_2ie; i1_2i = 1 + (++i1_2in)) {
    5547         jmi_array_ref_1(o_a, jmi_array_ref_1(i_a, i1_2i)) = jmi_array_val_1(temp_4_a, i1_2i);
     5484    _for_loop_variables_i2[0] = 0;
     5485    _for_loop_variables_i1[0] = floor((jmi_array_size(i_a, 0)) - (1));
     5486    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     5487        jmi_array_ref_1(o_a, jmi_array_ref_1(i_a, _for_loop_variables_r1[0])) = jmi_array_val_1(temp_4_a, _for_loop_variables_r1[0]);
    55485488    }
    55495489    JMI_RET(GEN, dummy_o, dummy_v)
     
    55955535    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_1_a, -1, 2)
    55965536    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_2_a, -1, 2)
    5597     jmi_real_t i5_0i;
    5598     jmi_int_t i5_0ie;
    5599     jmi_int_t i5_0in;
    5600     jmi_real_t i6_1i;
    5601     jmi_int_t i6_1ie;
    5602     jmi_int_t i6_1in;
    5603     jmi_real_t i3_2i;
    5604     jmi_int_t i3_2ie;
    5605     jmi_int_t i3_2in;
    5606     jmi_real_t i4_3i;
    5607     jmi_int_t i4_3ie;
    5608     jmi_int_t i4_3in;
    5609     jmi_real_t i3_4i;
    5610     jmi_int_t i3_4ie;
    5611     jmi_int_t i3_4in;
    5612     jmi_real_t i4_5i;
    5613     jmi_int_t i4_5ie;
    5614     jmi_int_t i4_5in;
     5537    jmi_real_t _for_loop_variables_r1[2];
     5538    jmi_int_t _for_loop_variables_i1[2];
     5539    jmi_int_t _for_loop_variables_i2[2];
    56155540    if (y_a == NULL) {
    56165541        JMI_ARRAY_INIT_2(HEAP, jmi_real_t, jmi_array_t, y_an, jmi_array_size(i1_a, 0) * jmi_array_size(i1_a, 0), 2, jmi_array_size(i1_a, 0), jmi_array_size(i1_a, 0))
     
    56195544    JMI_ARRAY_INIT_2(HEAP, jmi_real_t, jmi_array_t, temp_1_a, jmi_array_size(i1_a, 0) * jmi_array_size(i2_a, 0), 2, jmi_array_size(i1_a, 0), jmi_array_size(i2_a, 0))
    56205545    JMI_ARRAY_INIT_2(HEAP, jmi_real_t, jmi_array_t, temp_2_a, jmi_array_size(i1_a, 0) * jmi_array_size(i2_a, 0), 2, jmi_array_size(i1_a, 0), jmi_array_size(i2_a, 0))
    5621     i5_0in = 0;
    5622     i5_0ie = floor((jmi_array_size(i1_a, 0)) - (1));
    5623     for (i5_0i = 1; i5_0in <= i5_0ie; i5_0i = 1 + (++i5_0in)) {
    5624         i6_1in = 0;
    5625         i6_1ie = floor((jmi_array_size(i2_a, 0)) - (1));
    5626         for (i6_1i = 1; i6_1in <= i6_1ie; i6_1i = 1 + (++i6_1in)) {
    5627             jmi_array_ref_2(temp_2_a, i5_0i, i6_1i) = jmi_array_val_2(x_a, jmi_array_val_1(i1_a, i5_0i), jmi_array_val_1(i2_a, i6_1i));
    5628         }
    5629     }
    5630     i3_2in = 0;
    5631     i3_2ie = floor((jmi_array_size(i1_a, 0)) - (1));
    5632     for (i3_2i = 1; i3_2in <= i3_2ie; i3_2i = 1 + (++i3_2in)) {
    5633         i4_3in = 0;
    5634         i4_3ie = floor((jmi_array_size(i2_a, 0)) - (1));
    5635         for (i4_3i = 1; i4_3in <= i4_3ie; i4_3i = 1 + (++i4_3in)) {
    5636             jmi_array_ref_2(temp_1_a, i3_2i, i4_3i) = jmi_array_val_2(temp_2_a, i3_2i, i4_3i);
    5637         }
    5638     }
    5639     i3_4in = 0;
    5640     i3_4ie = floor((jmi_array_size(i1_a, 0)) - (1));
    5641     for (i3_4i = 1; i3_4in <= i3_4ie; i3_4i = 1 + (++i3_4in)) {
    5642         i4_5in = 0;
    5643         i4_5ie = floor((jmi_array_size(i1_a, 0)) - (1));
    5644         for (i4_5i = 1; i4_5in <= i4_5ie; i4_5i = 1 + (++i4_5in)) {
    5645             jmi_array_ref_2(y_a, i3_4i, i4_5i) = jmi_array_val_2(temp_1_a, i4_5i, i3_4i);
     5546    _for_loop_variables_i2[0] = 0;
     5547    _for_loop_variables_i1[0] = floor((jmi_array_size(i1_a, 0)) - (1));
     5548    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     5549        _for_loop_variables_i2[1] = 0;
     5550        _for_loop_variables_i1[1] = floor((jmi_array_size(i2_a, 0)) - (1));
     5551        for (_for_loop_variables_r1[1] = 1; _for_loop_variables_i2[1] <= _for_loop_variables_i1[1]; _for_loop_variables_r1[1] = 1 + (++(_for_loop_variables_i2[1]))) {
     5552            jmi_array_ref_2(temp_2_a, _for_loop_variables_r1[0], _for_loop_variables_r1[1]) = jmi_array_val_2(x_a, jmi_array_val_1(i1_a, _for_loop_variables_r1[0]), jmi_array_val_1(i2_a, _for_loop_variables_r1[1]));
     5553        }
     5554    }
     5555    _for_loop_variables_i2[0] = 0;
     5556    _for_loop_variables_i1[0] = floor((jmi_array_size(i1_a, 0)) - (1));
     5557    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     5558        _for_loop_variables_i2[1] = 0;
     5559        _for_loop_variables_i1[1] = floor((jmi_array_size(i2_a, 0)) - (1));
     5560        for (_for_loop_variables_r1[1] = 1; _for_loop_variables_i2[1] <= _for_loop_variables_i1[1]; _for_loop_variables_r1[1] = 1 + (++(_for_loop_variables_i2[1]))) {
     5561            jmi_array_ref_2(temp_1_a, _for_loop_variables_r1[0], _for_loop_variables_r1[1]) = jmi_array_val_2(temp_2_a, _for_loop_variables_r1[0], _for_loop_variables_r1[1]);
     5562        }
     5563    }
     5564    _for_loop_variables_i2[0] = 0;
     5565    _for_loop_variables_i1[0] = floor((jmi_array_size(i1_a, 0)) - (1));
     5566    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     5567        _for_loop_variables_i2[1] = 0;
     5568        _for_loop_variables_i1[1] = floor((jmi_array_size(i1_a, 0)) - (1));
     5569        for (_for_loop_variables_r1[1] = 1; _for_loop_variables_i2[1] <= _for_loop_variables_i1[1]; _for_loop_variables_r1[1] = 1 + (++(_for_loop_variables_i2[1]))) {
     5570            jmi_array_ref_2(y_a, _for_loop_variables_r1[0], _for_loop_variables_r1[1]) = jmi_array_val_2(temp_1_a, _for_loop_variables_r1[1], _for_loop_variables_r1[0]);
    56465571        }
    56475572    }
     
    56785603    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_1_a, -1, 2)
    56795604    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_2_a, -1, 2)
    5680     jmi_real_t i5_0i;
    5681     jmi_int_t i5_0ie;
    5682     jmi_int_t i5_0in;
    5683     jmi_real_t i6_1i;
    5684     jmi_int_t i6_1ie;
    5685     jmi_int_t i6_1in;
    5686     jmi_real_t i3_2i;
    5687     jmi_int_t i3_2ie;
    5688     jmi_int_t i3_2in;
    5689     jmi_real_t i4_3i;
    5690     jmi_int_t i4_3ie;
    5691     jmi_int_t i4_3in;
    5692     jmi_real_t i3_4i;
    5693     jmi_int_t i3_4ie;
    5694     jmi_int_t i3_4in;
    5695     jmi_real_t i4_5i;
    5696     jmi_int_t i4_5ie;
    5697     jmi_int_t i4_5in;
     5605    jmi_real_t _for_loop_variables_r1[2];
     5606    jmi_int_t _for_loop_variables_i1[2];
     5607    jmi_int_t _for_loop_variables_i2[2];
    56985608    if (y_a == NULL) {
    56995609        JMI_ARRAY_INIT_2(HEAP, jmi_real_t, jmi_array_t, y_an, (jmi_array_size(i1_a, 0) * 2 - 2) * jmi_array_size(i1_a, 0), 2, jmi_array_size(i1_a, 0) * 2 - 2, jmi_array_size(i1_a, 0))
     
    57025612    JMI_ARRAY_INIT_2(HEAP, jmi_real_t, jmi_array_t, temp_1_a, jmi_array_size(i1_a, 0) * jmi_array_size(i2_a, 0), 2, jmi_array_size(i1_a, 0), jmi_array_size(i2_a, 0))
    57035613    JMI_ARRAY_INIT_2(HEAP, jmi_real_t, jmi_array_t, temp_2_a, jmi_array_size(i1_a, 0) * jmi_array_size(i2_a, 0), 2, jmi_array_size(i1_a, 0), jmi_array_size(i2_a, 0))
    5704     i5_0in = 0;
    5705     i5_0ie = floor((jmi_array_size(i1_a, 0)) - (1));
    5706     for (i5_0i = 1; i5_0in <= i5_0ie; i5_0i = 1 + (++i5_0in)) {
    5707         i6_1in = 0;
    5708         i6_1ie = floor((jmi_array_size(i2_a, 0)) - (1));
    5709         for (i6_1i = 1; i6_1in <= i6_1ie; i6_1i = 1 + (++i6_1in)) {
    5710             jmi_array_ref_2(temp_2_a, i5_0i, i6_1i) = jmi_array_val_2(x_a, jmi_array_val_1(i1_a, i5_0i), jmi_array_val_1(i2_a, i6_1i));
    5711         }
    5712     }
    5713     i3_2in = 0;
    5714     i3_2ie = floor((jmi_array_size(i1_a, 0)) - (1));
    5715     for (i3_2i = 1; i3_2in <= i3_2ie; i3_2i = 1 + (++i3_2in)) {
    5716         i4_3in = 0;
    5717         i4_3ie = floor((jmi_array_size(i2_a, 0)) - (1));
    5718         for (i4_3i = 1; i4_3in <= i4_3ie; i4_3i = 1 + (++i4_3in)) {
    5719             jmi_array_ref_2(temp_1_a, i3_2i, i4_3i) = jmi_array_val_2(temp_2_a, i3_2i, i4_3i);
    5720         }
    5721     }
    5722     i3_4in = 0;
    5723     i3_4ie = floor((jmi_array_size(i1_a, 0) * 2 - 2) - (1));
    5724     for (i3_4i = 1; i3_4in <= i3_4ie; i3_4i = 1 + (++i3_4in)) {
    5725         i4_5in = 0;
    5726         i4_5ie = floor((jmi_array_size(i1_a, 0)) - (1));
    5727         for (i4_5i = 1; i4_5in <= i4_5ie; i4_5i = 1 + (++i4_5in)) {
    5728             jmi_array_ref_2(y_a, i3_4i, i4_5i) = jmi_array_val_2(temp_1_a, i4_5i, i3_4i);
     5614    _for_loop_variables_i2[0] = 0;
     5615    _for_loop_variables_i1[0] = floor((jmi_array_size(i1_a, 0)) - (1));
     5616    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     5617        _for_loop_variables_i2[1] = 0;
     5618        _for_loop_variables_i1[1] = floor((jmi_array_size(i2_a, 0)) - (1));
     5619        for (_for_loop_variables_r1[1] = 1; _for_loop_variables_i2[1] <= _for_loop_variables_i1[1]; _for_loop_variables_r1[1] = 1 + (++(_for_loop_variables_i2[1]))) {
     5620            jmi_array_ref_2(temp_2_a, _for_loop_variables_r1[0], _for_loop_variables_r1[1]) = jmi_array_val_2(x_a, jmi_array_val_1(i1_a, _for_loop_variables_r1[0]), jmi_array_val_1(i2_a, _for_loop_variables_r1[1]));
     5621        }
     5622    }
     5623    _for_loop_variables_i2[0] = 0;
     5624    _for_loop_variables_i1[0] = floor((jmi_array_size(i1_a, 0)) - (1));
     5625    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     5626        _for_loop_variables_i2[1] = 0;
     5627        _for_loop_variables_i1[1] = floor((jmi_array_size(i2_a, 0)) - (1));
     5628        for (_for_loop_variables_r1[1] = 1; _for_loop_variables_i2[1] <= _for_loop_variables_i1[1]; _for_loop_variables_r1[1] = 1 + (++(_for_loop_variables_i2[1]))) {
     5629            jmi_array_ref_2(temp_1_a, _for_loop_variables_r1[0], _for_loop_variables_r1[1]) = jmi_array_val_2(temp_2_a, _for_loop_variables_r1[0], _for_loop_variables_r1[1]);
     5630        }
     5631    }
     5632    _for_loop_variables_i2[0] = 0;
     5633    _for_loop_variables_i1[0] = floor((jmi_array_size(i1_a, 0) * 2 - 2) - (1));
     5634    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     5635        _for_loop_variables_i2[1] = 0;
     5636        _for_loop_variables_i1[1] = floor((jmi_array_size(i1_a, 0)) - (1));
     5637        for (_for_loop_variables_r1[1] = 1; _for_loop_variables_i2[1] <= _for_loop_variables_i1[1]; _for_loop_variables_r1[1] = 1 + (++(_for_loop_variables_i2[1]))) {
     5638            jmi_array_ref_2(y_a, _for_loop_variables_r1[0], _for_loop_variables_r1[1]) = jmi_array_val_2(temp_1_a, _for_loop_variables_r1[1], _for_loop_variables_r1[0]);
    57295639        }
    57305640    }
     
    57725682    JMI_ARR(STACK, R2_0_r, R2_0_ra, temp_2_a, 1, 1)
    57735683    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_3_a, 1, 1)
    5774     jmi_real_t i_0i;
    5775     jmi_int_t i_0ie;
    5776     jmi_int_t i_0in;
    5777     jmi_real_t i1_1i;
    5778     jmi_int_t i1_1ie;
    5779     jmi_int_t i1_1in;
    5780     jmi_real_t i2_2i;
    5781     jmi_int_t i2_2ie;
    5782     jmi_int_t i2_2in;
    5783     jmi_real_t i2_3i;
    5784     jmi_int_t i2_3ie;
    5785     jmi_int_t i2_3in;
    5786     jmi_real_t i3_4i;
    5787     jmi_int_t i3_4ie;
    5788     jmi_int_t i3_4in;
    5789     jmi_real_t i1_5i;
    5790     jmi_int_t i1_5ie;
    5791     jmi_int_t i1_5in;
    5792     jmi_real_t i2_6i;
    5793     jmi_int_t i2_6ie;
    5794     jmi_int_t i2_6in;
    5795     jmi_real_t i3_7i;
    5796     jmi_int_t i3_7ie;
    5797     jmi_int_t i3_7in;
     5684    jmi_real_t _for_loop_variables_r1[4];
     5685    jmi_int_t _for_loop_variables_i1[4];
     5686    jmi_int_t _for_loop_variables_i2[4];
    57985687    if (o_a == NULL) {
    57995688        JMI_ARRAY_INIT_2(HEAP, R1_1_r, R1_1_ra, o_an, m_v * m_v, 2, m_v, m_v)
     
    58085697        o_a = o_an;
    58095698    }
    5810     i_0in = 0;
    5811     i_0ie = floor((m_v) - (1));
    5812     for (i_0i = 1; i_0in <= i_0ie; i_0i = 1 + (++i_0in)) {
     5699    _for_loop_variables_i2[0] = 0;
     5700    _for_loop_variables_i1[0] = floor((m_v) - (1));
     5701    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
    58135702        JMI_ARRAY_INIT_1(HEAP, R1_1_r, R1_1_ra, temp_1_a, JMI_MAX_EQUATION(m_v, 0.0), 1, JMI_MAX_EQUATION(m_v, 0.0))
    5814         i1_1in = 0;
    5815         i1_1ie = floor((JMI_MAX_EQUATION(m_v, 0.0)) - (1));
    5816         for (i1_1i = 1; i1_1in <= i1_1ie; i1_1i = 1 + (++i1_1in)) {
     5703        _for_loop_variables_i2[1] = 0;
     5704        _for_loop_variables_i1[1] = floor((JMI_MAX_EQUATION(m_v, 0.0)) - (1));
     5705        for (_for_loop_variables_r1[1] = 1; _for_loop_variables_i2[1] <= _for_loop_variables_i1[1]; _for_loop_variables_r1[1] = 1 + (++(_for_loop_variables_i2[1]))) {
    58175706            JMI_ARRAY_INIT_1(STACK, R2_0_r, R2_0_ra, temp_2_a, 1, 1, 1)
    58185707            JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_3_a, 1, 1, 1)
    5819             jmi_array_ref_1(temp_3_a, 1) = i_0i * i1_1i;
     5708            jmi_array_ref_1(temp_3_a, 1) = _for_loop_variables_r1[0] * _for_loop_variables_r1[1];
    58205709            JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, jmi_array_rec_1(temp_2_a, 1)->y, 1, 1, 1)
    5821             i2_2in = 0;
    5822             i2_2ie = floor((1) - (1));
    5823             for (i2_2i = 1; i2_2in <= i2_2ie; i2_2i = 1 + (++i2_2in)) {
    5824                 jmi_array_ref_1(jmi_array_rec_1(temp_2_a, 1)->y, i2_2i) = jmi_array_val_1(temp_3_a, i2_2i);
     5710            _for_loop_variables_i2[2] = 0;
     5711            _for_loop_variables_i1[2] = floor((1) - (1));
     5712            for (_for_loop_variables_r1[2] = 1; _for_loop_variables_i2[2] <= _for_loop_variables_i1[2]; _for_loop_variables_r1[2] = 1 + (++(_for_loop_variables_i2[2]))) {
     5713                jmi_array_ref_1(jmi_array_rec_1(temp_2_a, 1)->y, _for_loop_variables_r1[2]) = jmi_array_val_1(temp_3_a, _for_loop_variables_r1[2]);
    58255714            }
    5826             JMI_ARRAY_INIT_1(HEAP, R2_0_r, R2_0_ra, jmi_array_rec_1(temp_1_a, i1_1i)->x, 1, 1, 1)
    5827             i2_3in = 0;
    5828             i2_3ie = floor((1) - (1));
    5829             for (i2_3i = 1; i2_3in <= i2_3ie; i2_3i = 1 + (++i2_3in)) {
    5830                 JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, jmi_array_rec_1(jmi_array_rec_1(temp_1_a, i1_1i)->x, i2_3i)->y, 1, 1, 1)
    5831                 i3_4in = 0;
    5832                 i3_4ie = floor((1) - (1));
    5833                 for (i3_4i = 1; i3_4in <= i3_4ie; i3_4i = 1 + (++i3_4in)) {
    5834                     jmi_array_ref_1(jmi_array_rec_1(jmi_array_rec_1(temp_1_a, i1_1i)->x, i2_3i)->y, i3_4i) = jmi_array_val_1(jmi_array_rec_1(temp_2_a, i2_3i)->y, i3_4i);
     5715            JMI_ARRAY_INIT_1(HEAP, R2_0_r, R2_0_ra, jmi_array_rec_1(temp_1_a, _for_loop_variables_r1[1])->x, 1, 1, 1)
     5716            _for_loop_variables_i2[2] = 0;
     5717            _for_loop_variables_i1[2] = floor((1) - (1));
     5718            for (_for_loop_variables_r1[2] = 1; _for_loop_variables_i2[2] <= _for_loop_variables_i1[2]; _for_loop_variables_r1[2] = 1 + (++(_for_loop_variables_i2[2]))) {
     5719                JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, jmi_array_rec_1(jmi_array_rec_1(temp_1_a, _for_loop_variables_r1[1])->x, _for_loop_variables_r1[2])->y, 1, 1, 1)
     5720                _for_loop_variables_i2[3] = 0;
     5721                _for_loop_variables_i1[3] = floor((1) - (1));
     5722                for (_for_loop_variables_r1[3] = 1; _for_loop_variables_i2[3] <= _for_loop_variables_i1[3]; _for_loop_variables_r1[3] = 1 + (++(_for_loop_variables_i2[3]))) {
     5723                    jmi_array_ref_1(jmi_array_rec_1(jmi_array_rec_1(temp_1_a, _for_loop_variables_r1[1])->x, _for_loop_variables_r1[2])->y, _for_loop_variables_r1[3]) = jmi_array_val_1(jmi_array_rec_1(temp_2_a, _for_loop_variables_r1[2])->y, _for_loop_variables_r1[3]);
    58355724                }
    58365725            }
    58375726        }
    5838         i1_5in = 0;
    5839         i1_5ie = floor((m_v) - (1));
    5840         for (i1_5i = 1; i1_5in <= i1_5ie; i1_5i = 1 + (++i1_5in)) {
    5841             i2_6in = 0;
    5842             i2_6ie = floor((1) - (1));
    5843             for (i2_6i = 1; i2_6in <= i2_6ie; i2_6i = 1 + (++i2_6in)) {
    5844                 i3_7in = 0;
    5845                 i3_7ie = floor((1) - (1));
    5846                 for (i3_7i = 1; i3_7in <= i3_7ie; i3_7i = 1 + (++i3_7in)) {
    5847                     jmi_array_ref_1(jmi_array_rec_1(jmi_array_rec_2(o_a, i_0i, i1_5i)->x, i2_6i)->y, i3_7i) = jmi_array_val_1(jmi_array_rec_1(jmi_array_rec_1(temp_1_a, i1_5i)->x, i2_6i)->y, i3_7i);
     5727        _for_loop_variables_i2[1] = 0;
     5728        _for_loop_variables_i1[1] = floor((m_v) - (1));
     5729        for (_for_loop_variables_r1[1] = 1; _for_loop_variables_i2[1] <= _for_loop_variables_i1[1]; _for_loop_variables_r1[1] = 1 + (++(_for_loop_variables_i2[1]))) {
     5730            _for_loop_variables_i2[2] = 0;
     5731            _for_loop_variables_i1[2] = floor((1) - (1));
     5732            for (_for_loop_variables_r1[2] = 1; _for_loop_variables_i2[2] <= _for_loop_variables_i1[2]; _for_loop_variables_r1[2] = 1 + (++(_for_loop_variables_i2[2]))) {
     5733                _for_loop_variables_i2[3] = 0;
     5734                _for_loop_variables_i1[3] = floor((1) - (1));
     5735                for (_for_loop_variables_r1[3] = 1; _for_loop_variables_i2[3] <= _for_loop_variables_i1[3]; _for_loop_variables_r1[3] = 1 + (++(_for_loop_variables_i2[3]))) {
     5736                    jmi_array_ref_1(jmi_array_rec_1(jmi_array_rec_2(o_a, _for_loop_variables_r1[0], _for_loop_variables_r1[1])->x, _for_loop_variables_r1[2])->y, _for_loop_variables_r1[3]) = jmi_array_val_1(jmi_array_rec_1(jmi_array_rec_1(temp_1_a, _for_loop_variables_r1[1])->x, _for_loop_variables_r1[2])->y, _for_loop_variables_r1[3]);
    58485737                }
    58495738            }
     
    58845773    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, u_an, -1, 1)
    58855774    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_1_a, -1, 1)
    5886     jmi_real_t i1_0i;
    5887     jmi_int_t i1_0ie;
    5888     jmi_int_t i1_0in;
    5889     jmi_real_t i1_1i;
    5890     jmi_int_t i1_1ie;
    5891     jmi_int_t i1_1in;
     5775    jmi_real_t _for_loop_variables_r1[1];
     5776    jmi_int_t _for_loop_variables_i1[1];
     5777    jmi_int_t _for_loop_variables_i2[1];
    58925778    if (u_a == NULL) {
    58935779        JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, u_an, jmi_array_size(a_a, 0), 1, jmi_array_size(a_a, 0))
     
    58955781    }
    58965782    JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, temp_1_a, jmi_array_size(a_a, 0), 1, jmi_array_size(a_a, 0))
    5897     i1_0in = 0;
    5898     i1_0ie = floor((jmi_array_size(a_a, 0)) - (1));
    5899     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    5900         jmi_array_ref_1(temp_1_a, i1_0i) = jmi_array_val_1(a_a, i1_0i) + jmi_array_val_1(b_a, i1_0i);
    5901     }
    5902     i1_1in = 0;
    5903     i1_1ie = floor((jmi_array_size(a_a, 0)) - (1));
    5904     for (i1_1i = 1; i1_1in <= i1_1ie; i1_1i = 1 + (++i1_1in)) {
    5905         jmi_array_ref_1(u_a, i1_1i) = jmi_array_val_1(a_a, i1_1i) * func_CCodeGenTests_CUnknownArray8_l_exp1(temp_1_a);
     5783    _for_loop_variables_i2[0] = 0;
     5784    _for_loop_variables_i1[0] = floor((jmi_array_size(a_a, 0)) - (1));
     5785    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     5786        jmi_array_ref_1(temp_1_a, _for_loop_variables_r1[0]) = jmi_array_val_1(a_a, _for_loop_variables_r1[0]) + jmi_array_val_1(b_a, _for_loop_variables_r1[0]);
     5787    }
     5788    _for_loop_variables_i2[0] = 0;
     5789    _for_loop_variables_i1[0] = floor((jmi_array_size(a_a, 0)) - (1));
     5790    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     5791        jmi_array_ref_1(u_a, _for_loop_variables_r1[0]) = jmi_array_val_1(a_a, _for_loop_variables_r1[0]) * func_CCodeGenTests_CUnknownArray8_l_exp1(temp_1_a);
    59065792    }
    59075793    JMI_DYNAMIC_FREE()
     
    59135799    JMI_DEF(REA, y_v)
    59145800    JMI_DEF(REA, temp_1_v)
    5915     jmi_real_t i1_2i;
    5916     jmi_int_t i1_2ie;
    5917     jmi_int_t i1_2in;
     5801    jmi_real_t _for_loop_variables_r1[1];
     5802    jmi_int_t _for_loop_variables_i1[1];
     5803    jmi_int_t _for_loop_variables_i2[1];
    59185804    temp_1_v = 0.0;
    5919     i1_2in = 0;
    5920     i1_2ie = floor((jmi_array_size(x_a, 0)) - (1));
    5921     for (i1_2i = 1; i1_2in <= i1_2ie; i1_2i = 1 + (++i1_2in)) {
    5922         temp_1_v = temp_1_v + jmi_array_val_1(x_a, i1_2i);
     5805    _for_loop_variables_i2[0] = 0;
     5806    _for_loop_variables_i1[0] = floor((jmi_array_size(x_a, 0)) - (1));
     5807    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     5808        temp_1_v = temp_1_v + jmi_array_val_1(x_a, _for_loop_variables_r1[0]);
    59235809    }
    59245810    y_v = temp_1_v;
     
    59585844    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, ab_an, -1, 1)
    59595845    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, ba_an, -1, 1)
    5960     jmi_real_t i1_0i;
    5961     jmi_int_t i1_0ie;
    5962     jmi_int_t i1_0in;
     5846    jmi_real_t _for_loop_variables_r1[1];
     5847    jmi_int_t _for_loop_variables_i1[1];
     5848    jmi_int_t _for_loop_variables_i2[1];
    59635849    if (ba_a == NULL) {
    59645850        JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, ba_an, n_v, 1, n_v)
     
    59695855        ab_a = ab_an;
    59705856    }
    5971     i1_0in = 0;
    5972     i1_0ie = floor((n_v) - (1));
    5973     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    5974         jmi_array_ref_1(ba_a, i1_0i) = 1;
     5857    _for_loop_variables_i2[0] = 0;
     5858    _for_loop_variables_i1[0] = floor((n_v) - (1));
     5859    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     5860        jmi_array_ref_1(ba_a, _for_loop_variables_r1[0]) = 1;
    59755861    }
    59765862    JMI_ASG(GEN_ARR, ab_a, ba_a)
     
    60535939    JMI_ARR(STACK, jmi_real_t, jmi_array_t, tmp_1, 2, 1)
    60545940    JMI_DEF(REA, x_v)
    6055     jmi_real_t i1_0i;
    6056     jmi_int_t i1_0ie;
    6057     jmi_int_t i1_0in;
     5941    jmi_real_t _for_loop_variables_r1[1];
     5942    jmi_int_t _for_loop_variables_i1[1];
     5943    jmi_int_t _for_loop_variables_i2[1];
    60585944    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, tmp_1, 2, 1, 2)
    6059     r_v->x = tmp_1;i1_0in = 0;
    6060     i1_0ie = floor((2) - (1));
    6061     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    6062         jmi_array_ref_1(r_v->x, i1_0i) = i1_0i;
     5945    r_v->x = tmp_1;
     5946    _for_loop_variables_i2[0] = 0;
     5947    _for_loop_variables_i1[0] = floor((2) - (1));
     5948    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     5949        jmi_array_ref_1(r_v->x, _for_loop_variables_r1[0]) = _for_loop_variables_r1[0];
    60635950    }
    60645951    x_v = jmi_array_val_1(r_v->x, 1);
     
    61025989    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, y_an, -1, 1)
    61035990    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_1_a, -1, 1)
    6104     jmi_real_t i_0i;
    6105     jmi_int_t i_0ie;
    6106     jmi_int_t i_0in;
    6107     jmi_real_t i1_1i;
    6108     jmi_int_t i1_1ie;
    6109     jmi_int_t i1_1in;
    6110     jmi_real_t i1_2i;
    6111     jmi_int_t i1_2ie;
    6112     jmi_int_t i1_2in;
    6113     jmi_real_t i1_3i;
    6114     jmi_int_t i1_3ie;
    6115     jmi_int_t i1_3in;
     5991    jmi_real_t _for_loop_variables_r1[2];
     5992    jmi_int_t _for_loop_variables_i1[2];
     5993    jmi_int_t _for_loop_variables_i2[2];
    61165994    if (y_a == NULL) {
    61175995        JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, y_an, jmi_array_size(x_a, 0) * 2, 1, jmi_array_size(x_a, 0) * 2)
    61185996        y_a = y_an;
    61195997    }
    6120     i_0in = 0;
    6121     i_0ie = floor((jmi_array_size(x_a, 0)) - (1));
    6122     for (i_0i = 1; i_0in <= i_0ie; i_0i = 1 + (++i_0in)) {
    6123         JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, temp_1_a, (jmi_array_size(x_a, 0) + JMI_MAX_EQUATION(i_0i, 0.0)), 1, jmi_array_size(x_a, 0) + JMI_MAX_EQUATION(i_0i, 0.0))
    6124         i1_1in = 0;
    6125         i1_1ie = floor((jmi_array_size(x_a, 0)) - (1));
    6126         for (i1_1i = 1; i1_1in <= i1_1ie; i1_1i = 1 + (++i1_1in)) {
    6127             jmi_array_ref_1(temp_1_a, i1_1i) = jmi_array_val_1(x_a, i1_1i);
    6128         }
    6129         i1_2in = 0;
    6130         i1_2ie = floor((JMI_MAX_EQUATION(i_0i, 0.0)) - (1));
    6131         for (i1_2i = 1; i1_2in <= i1_2ie; i1_2i = 1 + (++i1_2in)) {
    6132             jmi_array_ref_1(temp_1_a, i1_2i + jmi_array_size(x_a, 0)) = i1_2i;
    6133         }
    6134         i1_3in = 0;
    6135         i1_3ie = floor((jmi_array_size(x_a, 0) * 2) - (1));
    6136         for (i1_3i = 1; i1_3in <= i1_3ie; i1_3i = 1 + (++i1_3in)) {
    6137             jmi_array_ref_1(y_a, i1_3i) = jmi_array_val_1(temp_1_a, i1_3i);
     5998    _for_loop_variables_i2[0] = 0;
     5999    _for_loop_variables_i1[0] = floor((jmi_array_size(x_a, 0)) - (1));
     6000    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     6001        JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, temp_1_a, (jmi_array_size(x_a, 0) + JMI_MAX_EQUATION(_for_loop_variables_r1[0], 0.0)), 1, jmi_array_size(x_a, 0) + JMI_MAX_EQUATION(_for_loop_variables_r1[0], 0.0))
     6002        _for_loop_variables_i2[1] = 0;
     6003        _for_loop_variables_i1[1] = floor((jmi_array_size(x_a, 0)) - (1));
     6004        for (_for_loop_variables_r1[1] = 1; _for_loop_variables_i2[1] <= _for_loop_variables_i1[1]; _for_loop_variables_r1[1] = 1 + (++(_for_loop_variables_i2[1]))) {
     6005            jmi_array_ref_1(temp_1_a, _for_loop_variables_r1[1]) = jmi_array_val_1(x_a, _for_loop_variables_r1[1]);
     6006        }
     6007        _for_loop_variables_i2[1] = 0;
     6008        _for_loop_variables_i1[1] = floor((JMI_MAX_EQUATION(_for_loop_variables_r1[0], 0.0)) - (1));
     6009        for (_for_loop_variables_r1[1] = 1; _for_loop_variables_i2[1] <= _for_loop_variables_i1[1]; _for_loop_variables_r1[1] = 1 + (++(_for_loop_variables_i2[1]))) {
     6010            jmi_array_ref_1(temp_1_a, _for_loop_variables_r1[1] + jmi_array_size(x_a, 0)) = _for_loop_variables_r1[1];
     6011        }
     6012        _for_loop_variables_i2[1] = 0;
     6013        _for_loop_variables_i1[1] = floor((jmi_array_size(x_a, 0) * 2) - (1));
     6014        for (_for_loop_variables_r1[1] = 1; _for_loop_variables_i2[1] <= _for_loop_variables_i1[1]; _for_loop_variables_r1[1] = 1 + (++(_for_loop_variables_i2[1]))) {
     6015            jmi_array_ref_1(y_a, _for_loop_variables_r1[1]) = jmi_array_val_1(temp_1_a, _for_loop_variables_r1[1]);
    61386016        }
    61396017    }
     
    65196397    JMI_ARR(STACK, B_0_r, B_0_ra, temp_3_a, 2, 1)
    65206398    JMI_ARR(STACK, B_0_r, B_0_ra, temp_4_a, 2, 1)
    6521     jmi_real_t i1_0i;
    6522     jmi_int_t i1_0ie;
    6523     jmi_int_t i1_0in;
    6524     jmi_real_t i2_1i;
    6525     jmi_int_t i2_1ie;
    6526     jmi_int_t i2_1in;
     6399    jmi_real_t _for_loop_variables_r1[2];
     6400    jmi_int_t _for_loop_variables_i1[2];
     6401    jmi_int_t _for_loop_variables_i2[2];
    65276402    JMI_ARRAY_INIT_1(STACK, A_1_r, A_1_ra, x_a, 3, 1, 3)
    65286403    JMI_ARRAY_INIT_1(STACK, B_0_r, B_0_ra, tmp_1, 2, 1, 2)
     
    65486423    jmi_array_rec_1(temp_1_a, 3)->a = 7;
    65496424    JMI_ASG(REF, jmi_array_rec_1(temp_1_a, 3)->b, temp_4_a)
    6550     i1_0in = 0;
    6551     i1_0ie = floor((3) - (1));
    6552     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    6553         jmi_array_rec_1(x_a, i1_0i)->a = jmi_array_rec_1(temp_1_a, i1_0i)->a;
    6554         i2_1in = 0;
    6555         i2_1ie = floor((2) - (1));
    6556         for (i2_1i = 1; i2_1in <= i2_1ie; i2_1i = 1 + (++i2_1in)) {
    6557             jmi_array_rec_1(jmi_array_rec_1(x_a, i1_0i)->b, i2_1i)->c = jmi_array_rec_1(jmi_array_rec_1(temp_1_a, i1_0i)->b, i2_1i)->c;
     6425    _for_loop_variables_i2[0] = 0;
     6426    _for_loop_variables_i1[0] = floor((3) - (1));
     6427    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     6428        jmi_array_rec_1(x_a, _for_loop_variables_r1[0])->a = jmi_array_rec_1(temp_1_a, _for_loop_variables_r1[0])->a;
     6429        _for_loop_variables_i2[1] = 0;
     6430        _for_loop_variables_i1[1] = floor((2) - (1));
     6431        for (_for_loop_variables_r1[1] = 1; _for_loop_variables_i2[1] <= _for_loop_variables_i1[1]; _for_loop_variables_r1[1] = 1 + (++(_for_loop_variables_i2[1]))) {
     6432            jmi_array_rec_1(jmi_array_rec_1(x_a, _for_loop_variables_r1[0])->b, _for_loop_variables_r1[1])->c = jmi_array_rec_1(jmi_array_rec_1(temp_1_a, _for_loop_variables_r1[0])->b, _for_loop_variables_r1[1])->c;
    65586433        }
    65596434    }
     
    67836658    JMI_ARR(STACK, B_0_r, B_0_ra, temp_3_a, 2, 1)
    67846659    JMI_ARR(STACK, B_0_r, B_0_ra, temp_4_a, 2, 1)
    6785     jmi_real_t i1_0i;
    6786     jmi_int_t i1_0ie;
    6787     jmi_int_t i1_0in;
    6788     jmi_real_t i2_1i;
    6789     jmi_int_t i2_1ie;
    6790     jmi_int_t i2_1in;
     6660    jmi_real_t _for_loop_variables_r1[2];
     6661    jmi_int_t _for_loop_variables_i1[2];
     6662    jmi_int_t _for_loop_variables_i2[2];
    67916663    if (x_a == NULL) {
    67926664        JMI_ARRAY_INIT_1(STACK, A_1_r, A_1_ra, x_an, 3, 1, 3)
     
    68156687    jmi_array_rec_1(temp_1_a, 3)->a = 7;
    68166688    JMI_ASG(REF, jmi_array_rec_1(temp_1_a, 3)->b, temp_4_a)
    6817     i1_0in = 0;
    6818     i1_0ie = floor((3) - (1));
    6819     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    6820         jmi_array_rec_1(x_a, i1_0i)->a = jmi_array_rec_1(temp_1_a, i1_0i)->a;
    6821         i2_1in = 0;
    6822         i2_1ie = floor((2) - (1));
    6823         for (i2_1i = 1; i2_1in <= i2_1ie; i2_1i = 1 + (++i2_1in)) {
    6824             jmi_array_rec_1(jmi_array_rec_1(x_a, i1_0i)->b, i2_1i)->c = jmi_array_rec_1(jmi_array_rec_1(temp_1_a, i1_0i)->b, i2_1i)->c;
     6689    _for_loop_variables_i2[0] = 0;
     6690    _for_loop_variables_i1[0] = floor((3) - (1));
     6691    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     6692        jmi_array_rec_1(x_a, _for_loop_variables_r1[0])->a = jmi_array_rec_1(temp_1_a, _for_loop_variables_r1[0])->a;
     6693        _for_loop_variables_i2[1] = 0;
     6694        _for_loop_variables_i1[1] = floor((2) - (1));
     6695        for (_for_loop_variables_r1[1] = 1; _for_loop_variables_i2[1] <= _for_loop_variables_i1[1]; _for_loop_variables_r1[1] = 1 + (++(_for_loop_variables_i2[1]))) {
     6696            jmi_array_rec_1(jmi_array_rec_1(x_a, _for_loop_variables_r1[0])->b, _for_loop_variables_r1[1])->c = jmi_array_rec_1(jmi_array_rec_1(temp_1_a, _for_loop_variables_r1[0])->b, _for_loop_variables_r1[1])->c;
    68256697        }
    68266698    }
     
    70706942    JMI_DYNAMIC_INIT()
    70716943    JMI_DEF(REA, o_v)
    7072     jmi_real_t i1_0i;
    7073     jmi_int_t i1_0ie;
    7074     jmi_int_t i1_0in;
    7075     i1_0in = 0;
    7076     i1_0ie = floor((3) - (1));
    7077     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    7078         if (COND_EXP_EQ(2.0, jmi_array_size(jmi_array_rec_1(x_a, i1_0i)->b, 0), JMI_TRUE, JMI_FALSE) == JMI_FALSE) {
     6944    jmi_real_t _for_loop_variables_r1[1];
     6945    jmi_int_t _for_loop_variables_i1[1];
     6946    jmi_int_t _for_loop_variables_i2[1];
     6947    _for_loop_variables_i2[0] = 0;
     6948    _for_loop_variables_i1[0] = floor((3) - (1));
     6949    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     6950        if (COND_EXP_EQ(2.0, jmi_array_size(jmi_array_rec_1(x_a, _for_loop_variables_r1[0])->b, 0), JMI_TRUE, JMI_FALSE) == JMI_FALSE) {
    70796951            jmi_assert_failed(\"Mismatching sizes in function 'CCodeGenTests.CRecordDecl16.f', component 'x[i1].b', dimension '1'\", JMI_ASSERT_ERROR);
    70806952        }
     
    1617216044    JMI_ARR(HEAP, jmi_string_t, jmi_string_array_t, s_a, -1, 1)
    1617316045    JMI_ARR(HEAP, jmi_string_t, jmi_string_array_t, temp_1_a, -1, 1)
    16174     jmi_real_t i1_0i;
    16175     jmi_int_t i1_0ie;
    16176     jmi_int_t i1_0in;
    1617716046    JMI_ARR(HEAP, jmi_string_t, jmi_string_array_t, tmp_1, -1, 1)
     16047    jmi_real_t _for_loop_variables_r1[1];
     16048    jmi_int_t _for_loop_variables_i1[1];
     16049    jmi_int_t _for_loop_variables_i2[1];
    1617816050    JMI_ARRAY_INIT_1(HEAP, jmi_string_t, jmi_string_array_t, s_a, n_v, 1, n_v)
    1617916051    y_v = x_v;
    1618016052    JMI_ARRAY_INIT_1(HEAP, jmi_string_t, jmi_string_array_t, temp_1_a, JMI_MAX_EQUATION(n_v, 0.0), 1, JMI_MAX_EQUATION(n_v, 0.0))
    16181     i1_0in = 0;
    16182     i1_0ie = floor((JMI_MAX_EQUATION(n_v, 0.0)) - (1));
    16183     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    16184         JMI_ASG(STR, jmi_array_ref_1(temp_1_a, i1_0i), \"str\")
     16053    _for_loop_variables_i2[0] = 0;
     16054    _for_loop_variables_i1[0] = floor((JMI_MAX_EQUATION(n_v, 0.0)) - (1));
     16055    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     16056        JMI_ASG(STR, jmi_array_ref_1(temp_1_a, _for_loop_variables_r1[0]), \"str\")
    1618516057    }
    1618616058    JMI_ASG(STR_ARR, s_a, temp_1_a)
     
    1796917841    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_3_a, -1, 1)
    1797017842    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_4_a, -1, 1)
    17971     jmi_real_t i2_0i;
    17972     jmi_int_t i2_0ie;
    17973     jmi_int_t i2_0in;
    17974     jmi_real_t i2_1i;
    17975     jmi_int_t i2_1ie;
    17976     jmi_int_t i2_1in;
    17977     jmi_real_t i2_2i;
    17978     jmi_int_t i2_2ie;
    17979     jmi_int_t i2_2in;
    17980     jmi_real_t i1_3i;
    17981     jmi_int_t i1_3ie;
    17982     jmi_int_t i1_3in;
     17843    jmi_real_t _for_loop_variables_r1[1];
     17844    jmi_int_t _for_loop_variables_i1[1];
     17845    jmi_int_t _for_loop_variables_i2[1];
    1798317846    JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, temp_2_a, jmi_array_size(x_a, 0), 1, jmi_array_size(x_a, 0))
    17984     i2_0in = 0;
    17985     i2_0ie = floor((jmi_array_size(x_a, 0)) - (1));
    17986     for (i2_0i = 1; i2_0in <= i2_0ie; i2_0i = 1 + (++i2_0in)) {
    17987         jmi_array_ref_1(temp_2_a, i2_0i) = jmi_array_val_2(x_a, i2_0i, 1);
     17847    _for_loop_variables_i2[0] = 0;
     17848    _for_loop_variables_i1[0] = floor((jmi_array_size(x_a, 0)) - (1));
     17849    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     17850        jmi_array_ref_1(temp_2_a, _for_loop_variables_r1[0]) = jmi_array_val_2(x_a, _for_loop_variables_r1[0], 1);
    1798817851    }
    1798917852    JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, temp_3_a, jmi_array_size(x_a, 0), 1, jmi_array_size(x_a, 0))
    17990     i2_1in = 0;
    17991     i2_1ie = floor((jmi_array_size(x_a, 0)) - (1));
    17992     for (i2_1i = 1; i2_1in <= i2_1ie; i2_1i = 1 + (++i2_1in)) {
    17993         jmi_array_ref_1(temp_3_a, i2_1i) = jmi_array_val_2(x_a, i2_1i, 1);
     17853    _for_loop_variables_i2[0] = 0;
     17854    _for_loop_variables_i1[0] = floor((jmi_array_size(x_a, 0)) - (1));
     17855    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     17856        jmi_array_ref_1(temp_3_a, _for_loop_variables_r1[0]) = jmi_array_val_2(x_a, _for_loop_variables_r1[0], 1);
    1799417857    }
    1799517858    JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, temp_3_a, jmi_array_size(x_a, 0), 1, jmi_array_size(x_a, 0))
    17996     i2_2in = 0;
    17997     i2_2ie = floor((jmi_array_size(x_a, 0)) - (1));
    17998     for (i2_2i = 1; i2_2in <= i2_2ie; i2_2i = 1 + (++i2_2in)) {
    17999         jmi_array_ref_1(temp_3_a, i2_2i) = jmi_array_val_2(x_a, i2_2i, 1);
     17859    _for_loop_variables_i2[0] = 0;
     17860    _for_loop_variables_i1[0] = floor((jmi_array_size(x_a, 0)) - (1));
     17861    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     17862        jmi_array_ref_1(temp_3_a, _for_loop_variables_r1[0]) = jmi_array_val_2(x_a, _for_loop_variables_r1[0], 1);
    1800017863    }
    1800117864    JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, temp_4_a, func_CCodeGenTests_FuncInitOrder_g_exp2(temp_3_a), 1, func_CCodeGenTests_FuncInitOrder_g_exp2(temp_3_a))
    1800217865    func_CCodeGenTests_FuncInitOrder_f_def1(temp_2_a, temp_4_a);
    1800317866    temp_1_v = 0.0;
    18004     i1_3in = 0;
    18005     i1_3ie = floor((func_CCodeGenTests_FuncInitOrder_g_exp2(temp_3_a)) - (1));
    18006     for (i1_3i = 1; i1_3in <= i1_3ie; i1_3i = 1 + (++i1_3in)) {
    18007         temp_1_v = temp_1_v + jmi_array_val_1(temp_4_a, i1_3i);
     17867    _for_loop_variables_i2[0] = 0;
     17868    _for_loop_variables_i1[0] = floor((func_CCodeGenTests_FuncInitOrder_g_exp2(temp_3_a)) - (1));
     17869    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     17870        temp_1_v = temp_1_v + jmi_array_val_1(temp_4_a, _for_loop_variables_r1[0]);
    1800817871    }
    1800917872    y_v = temp_1_v;
     
    1802217885    JMI_DYNAMIC_INIT()
    1802317886    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, y_an, -1, 1)
    18024     jmi_real_t i1_4i;
    18025     jmi_int_t i1_4ie;
    18026     jmi_int_t i1_4in;
     17887    jmi_real_t _for_loop_variables_r1[1];
     17888    jmi_int_t _for_loop_variables_i1[1];
     17889    jmi_int_t _for_loop_variables_i2[1];
    1802717890    if (y_a == NULL) {
    1802817891        JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, y_an, func_CCodeGenTests_FuncInitOrder_g_exp2(x_a), 1, func_CCodeGenTests_FuncInitOrder_g_exp2(x_a))
     
    1803217895        jmi_assert_failed(\"Mismatching sizes in CCodeGenTests.FuncInitOrder.f\", JMI_ASSERT_ERROR);
    1803317896    }
    18034     i1_4in = 0;
    18035     i1_4ie = floor((func_CCodeGenTests_FuncInitOrder_g_exp2(x_a)) - (1));
    18036     for (i1_4i = 1; i1_4in <= i1_4ie; i1_4i = 1 + (++i1_4in)) {
    18037         jmi_array_ref_1(y_a, i1_4i) = 0;
     17897    _for_loop_variables_i2[0] = 0;
     17898    _for_loop_variables_i1[0] = floor((func_CCodeGenTests_FuncInitOrder_g_exp2(x_a)) - (1));
     17899    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     17900        jmi_array_ref_1(y_a, _for_loop_variables_r1[0]) = 0;
    1803817901    }
    1803917902    JMI_DYNAMIC_FREE()
     
    1804517908    JMI_DEF(INT, y_v)
    1804617909    JMI_DEF(REA, temp_1_v)
    18047     jmi_real_t i1_5i;
    18048     jmi_int_t i1_5ie;
    18049     jmi_int_t i1_5in;
     17910    jmi_real_t _for_loop_variables_r1[1];
     17911    jmi_int_t _for_loop_variables_i1[1];
     17912    jmi_int_t _for_loop_variables_i2[1];
    1805017913    temp_1_v = 0.0;
    18051     i1_5in = 0;
    18052     i1_5ie = floor((jmi_array_size(x_a, 0)) - (1));
    18053     for (i1_5i = 1; i1_5in <= i1_5ie; i1_5i = 1 + (++i1_5in)) {
    18054         temp_1_v = temp_1_v + jmi_array_val_1(x_a, i1_5i);
     17914    _for_loop_variables_i2[0] = 0;
     17915    _for_loop_variables_i1[0] = floor((jmi_array_size(x_a, 0)) - (1));
     17916    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     17917        temp_1_v = temp_1_v + jmi_array_val_1(x_a, _for_loop_variables_r1[0]);
    1805517918    }
    1805617919    y_v = floor(temp_1_v);
  • branches/2.16.x/Compiler/ModelicaMiddleEnd/test/modelica/Differentiation.mo

    r14210 r14239  
    31093109    JMI_DYNAMIC_INIT()
    31103110    JMI_ARR(STACK, R_0_r, R_0_ra, y_an, 1, 1)
    3111     jmi_real_t i1_0i;
    3112     jmi_int_t i1_0ie;
    3113     jmi_int_t i1_0in;
     3111    jmi_real_t _for_loop_variables_r1[1];
     3112    jmi_int_t _for_loop_variables_i1[1];
     3113    jmi_int_t _for_loop_variables_i2[1];
    31143114    if (y_a == NULL) {
    31153115        JMI_ARRAY_INIT_1(STACK, R_0_r, R_0_ra, y_an, 1, 1, 1)
    31163116        y_a = y_an;
    31173117    }
    3118     i1_0in = 0;
    3119     i1_0ie = floor((1) - (1));
    3120     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    3121         jmi_array_rec_1(y_a, i1_0i)->x = jmi_array_rec_1(x_a, i1_0i)->x;
     3118    _for_loop_variables_i2[0] = 0;
     3119    _for_loop_variables_i1[0] = floor((1) - (1));
     3120    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     3121        jmi_array_rec_1(y_a, _for_loop_variables_r1[0])->x = jmi_array_rec_1(x_a, _for_loop_variables_r1[0])->x;
    31223122    }
    31233123    JMI_DYNAMIC_FREE()
     
    31293129    JMI_ARR(STACK, R_0_r, R_0_ra, _der_y_an, 1, 1)
    31303130    JMI_ARR(STACK, R_0_r, R_0_ra, y_a, 1, 1)
    3131     jmi_real_t i1_1i;
    3132     jmi_int_t i1_1ie;
    3133     jmi_int_t i1_1in;
     3131    jmi_real_t _for_loop_variables_r1[1];
     3132    jmi_int_t _for_loop_variables_i1[1];
     3133    jmi_int_t _for_loop_variables_i2[1];
    31343134    JMI_ARRAY_INIT_1(STACK, R_0_r, R_0_ra, y_a, 1, 1, 1)
    31353135    if (_der_y_a == NULL) {
     
    31373137        _der_y_a = _der_y_an;
    31383138    }
    3139     i1_1in = 0;
    3140     i1_1ie = floor((1) - (1));
    3141     for (i1_1i = 1; i1_1in <= i1_1ie; i1_1i = 1 + (++i1_1in)) {
    3142         jmi_array_rec_1(_der_y_a, i1_1i)->x = jmi_array_rec_1(_der_x_a, i1_1i)->x;
    3143         jmi_array_rec_1(y_a, i1_1i)->x = jmi_array_rec_1(x_a, i1_1i)->x;
     3139    _for_loop_variables_i2[0] = 0;
     3140    _for_loop_variables_i1[0] = floor((1) - (1));
     3141    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     3142        jmi_array_rec_1(_der_y_a, _for_loop_variables_r1[0])->x = jmi_array_rec_1(_der_x_a, _for_loop_variables_r1[0])->x;
     3143        jmi_array_rec_1(y_a, _for_loop_variables_r1[0])->x = jmi_array_rec_1(x_a, _for_loop_variables_r1[0])->x;
    31443144    }
    31453145    JMI_DYNAMIC_FREE()
     
    31893189    JMI_DEF(REA, y_v)
    31903190    JMI_ARR(STACK, R_0_r, R_0_ra, temp_1_a, 1, 1)
    3191     jmi_real_t i1_0i;
    3192     jmi_int_t i1_0ie;
    3193     jmi_int_t i1_0in;
    3194     jmi_real_t i1_1i;
    3195     jmi_int_t i1_1ie;
    3196     jmi_int_t i1_1in;
     3191    jmi_real_t _for_loop_variables_r1[1];
     3192    jmi_int_t _for_loop_variables_i1[1];
     3193    jmi_int_t _for_loop_variables_i2[1];
    31973194    JMI_ARRAY_INIT_1(STACK, R_0_r, R_0_ra, rt_a, 1, 1, 1)
    31983195    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, tmp_1, 1, 1, 1)
     
    32003197    JMI_ARRAY_INIT_1(STACK, R_0_r, R_0_ra, temp_1_a, 1, 1, 1)
    32013198    JMI_ASG(REF, *jmi_array_rec_1(temp_1_a, 1), *jmi_array_rec_1(r_a, 1))
    3202     i1_0in = 0;
    3203     i1_0ie = floor((1) - (1));
    3204     for (i1_0i = 1; i1_0in <= i1_0ie; i1_0i = 1 + (++i1_0in)) {
    3205         JMI_ASG(GEN_ARR, jmi_array_rec_1(rt_a, i1_0i)->x, jmi_array_rec_1(temp_1_a, i1_0i)->x)
     3199    _for_loop_variables_i2[0] = 0;
     3200    _for_loop_variables_i1[0] = floor((1) - (1));
     3201    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     3202        JMI_ASG(GEN_ARR, jmi_array_rec_1(rt_a, _for_loop_variables_r1[0])->x, jmi_array_rec_1(temp_1_a, _for_loop_variables_r1[0])->x)
    32063203    }
    32073204    y_v = jmi_array_val_1(jmi_array_rec_1(rt_a, 1)->x, 1);
    3208     i1_1in = 0;
    3209     i1_1ie = floor((jmi_array_size(r_a, 0)) - (1));
    3210     for (i1_1i = 1; i1_1in <= i1_1ie; i1_1i = 1 + (++i1_1in)) {
    3211         if (COND_EXP_EQ(1.0, jmi_array_size(jmi_array_rec_1(r_a, i1_1i)->x, 0), JMI_TRUE, JMI_FALSE) == JMI_FALSE) {
     3205    _for_loop_variables_i2[0] = 0;
     3206    _for_loop_variables_i1[0] = floor((jmi_array_size(r_a, 0)) - (1));
     3207    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     3208        if (COND_EXP_EQ(1.0, jmi_array_size(jmi_array_rec_1(r_a, _for_loop_variables_r1[0])->x, 0), JMI_TRUE, JMI_FALSE) == JMI_FALSE) {
    32123209            jmi_assert_failed(\"Mismatching sizes in function 'Differentiation.AlgorithmDifferentiation.RecordArrayTemp1.e', component 'r[i1].x', dimension '1'\", JMI_ASSERT_ERROR);
    32133210        }
     
    32283225    JMI_ARR(STACK, R_0_r, R_0_ra, y_an, 1, 1)
    32293226    JMI_ARR(STACK, jmi_real_t, jmi_array_t, tmp_1, 1, 1)
    3230     jmi_real_t i1_2i;
    3231     jmi_int_t i1_2ie;
    3232     jmi_int_t i1_2in;
    3233     jmi_real_t i1_3i;
    3234     jmi_int_t i1_3ie;
    3235     jmi_int_t i1_3in;
     3227    jmi_real_t _for_loop_variables_r1[1];
     3228    jmi_int_t _for_loop_variables_i1[1];
     3229    jmi_int_t _for_loop_variables_i2[1];
    32363230    if (y_a == NULL) {
    32373231        JMI_ARRAY_INIT_1(STACK, R_0_r, R_0_ra, y_an, 1, 1, 1)
     
    32403234        y_a = y_an;
    32413235    }
    3242     i1_2in = 0;
    3243     i1_2ie = floor((1) - (1));
    3244     for (i1_2i = 1; i1_2in <= i1_2ie; i1_2i = 1 + (++i1_2in)) {
    3245         if (COND_EXP_EQ(1.0, jmi_array_size(jmi_array_rec_1(x_a, i1_2i)->x, 0), JMI_TRUE, JMI_FALSE) == JMI_FALSE) {
     3236    _for_loop_variables_i2[0] = 0;
     3237    _for_loop_variables_i1[0] = floor((1) - (1));
     3238    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     3239        if (COND_EXP_EQ(1.0, jmi_array_size(jmi_array_rec_1(x_a, _for_loop_variables_r1[0])->x, 0), JMI_TRUE, JMI_FALSE) == JMI_FALSE) {
    32463240            jmi_assert_failed(\"Mismatching sizes in function 'Differentiation.AlgorithmDifferentiation.RecordArrayTemp1.F', component 'x[i1].x', dimension '1'\", JMI_ASSERT_ERROR);
    32473241        }
    32483242    }
    3249     i1_3in = 0;
    3250     i1_3ie = floor((1) - (1));
    3251     for (i1_3i = 1; i1_3in <= i1_3ie; i1_3i = 1 + (++i1_3in)) {
    3252         JMI_ASG(GEN_ARR, jmi_array_rec_1(y_a, i1_3i)->x, jmi_array_rec_1(x_a, i1_3i)->x)
     3243    _for_loop_variables_i2[0] = 0;
     3244    _for_loop_variables_i1[0] = floor((1) - (1));
     3245    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     3246        JMI_ASG(GEN_ARR, jmi_array_rec_1(y_a, _for_loop_variables_r1[0])->x, jmi_array_rec_1(x_a, _for_loop_variables_r1[0])->x)
    32533247    }
    32543248    JMI_DYNAMIC_FREE()
     
    32663260    JMI_ARR(STACK, R_0_r, R_0_ra, temp_1_a, 1, 1)
    32673261    JMI_ARR(STACK, R_0_r, R_0_ra, _der_temp_1_a, 1, 1)
    3268     jmi_real_t i1_4i;
    3269     jmi_int_t i1_4ie;
    3270     jmi_int_t i1_4in;
    3271     jmi_real_t i1_5i;
    3272     jmi_int_t i1_5ie;
    3273     jmi_int_t i1_5in;
     3262    jmi_real_t _for_loop_variables_r1[1];
     3263    jmi_int_t _for_loop_variables_i1[1];
     3264    jmi_int_t _for_loop_variables_i2[1];
    32743265    JMI_ARRAY_INIT_1(STACK, R_0_r, R_0_ra, rt_a, 1, 1, 1)
    32753266    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, tmp_1, 1, 1, 1)
     
    32823273    JMI_ASG(REF, *jmi_array_rec_1(_der_temp_1_a, 1), *jmi_array_rec_1(_der_r_a, 1))
    32833274    JMI_ASG(REF, *jmi_array_rec_1(temp_1_a, 1), *jmi_array_rec_1(r_a, 1))
    3284     i1_4in = 0;
    3285     i1_4ie = floor((1) - (1));
    3286     for (i1_4i = 1; i1_4in <= i1_4ie; i1_4i = 1 + (++i1_4in)) {
    3287         JMI_ASG(GEN_ARR, jmi_array_rec_1(_der_rt_a, i1_4i)->x, jmi_array_rec_1(_der_temp_1_a, i1_4i)->x)
    3288         JMI_ASG(GEN_ARR, jmi_array_rec_1(rt_a, i1_4i)->x, jmi_array_rec_1(temp_1_a, i1_4i)->x)
     3275    _for_loop_variables_i2[0] = 0;
     3276    _for_loop_variables_i1[0] = floor((1) - (1));
     3277    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     3278        JMI_ASG(GEN_ARR, jmi_array_rec_1(_der_rt_a, _for_loop_variables_r1[0])->x, jmi_array_rec_1(_der_temp_1_a, _for_loop_variables_r1[0])->x)
     3279        JMI_ASG(GEN_ARR, jmi_array_rec_1(rt_a, _for_loop_variables_r1[0])->x, jmi_array_rec_1(temp_1_a, _for_loop_variables_r1[0])->x)
    32893280    }
    32903281    _der_y_v = jmi_array_val_1(jmi_array_rec_1(_der_rt_a, 1)->x, 1);
    32913282    y_v = jmi_array_val_1(jmi_array_rec_1(rt_a, 1)->x, 1);
    3292     i1_5in = 0;
    3293     i1_5ie = floor((jmi_array_size(r_a, 0)) - (1));
    3294     for (i1_5i = 1; i1_5in <= i1_5ie; i1_5i = 1 + (++i1_5in)) {
    3295         if (COND_EXP_EQ(1.0, jmi_array_size(jmi_array_rec_1(r_a, i1_5i)->x, 0), JMI_TRUE, JMI_FALSE) == JMI_FALSE) {
     3283    _for_loop_variables_i2[0] = 0;
     3284    _for_loop_variables_i1[0] = floor((jmi_array_size(r_a, 0)) - (1));
     3285    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     3286        if (COND_EXP_EQ(1.0, jmi_array_size(jmi_array_rec_1(r_a, _for_loop_variables_r1[0])->x, 0), JMI_TRUE, JMI_FALSE) == JMI_FALSE) {
    32963287            jmi_assert_failed(\"Mismatching sizes in function 'Differentiation.AlgorithmDifferentiation.RecordArrayTemp1.e', component 'r[i1].x', dimension '1'\", JMI_ASSERT_ERROR);
    32973288        }
     
    33143305    JMI_ARR(STACK, R_0_r, R_0_ra, y_a, 1, 1)
    33153306    JMI_ARR(STACK, jmi_real_t, jmi_array_t, tmp_2, 1, 1)
    3316     jmi_real_t i1_6i;
    3317     jmi_int_t i1_6ie;
    3318     jmi_int_t i1_6in;
    3319     jmi_real_t i1_7i;
    3320     jmi_int_t i1_7ie;
    3321     jmi_int_t i1_7in;
     3307    jmi_real_t _for_loop_variables_r1[1];
     3308    jmi_int_t _for_loop_variables_i1[1];
     3309    jmi_int_t _for_loop_variables_i2[1];
    33223310    JMI_ARRAY_INIT_1(STACK, R_0_r, R_0_ra, y_a, 1, 1, 1)
    33233311    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, tmp_2, 1, 1, 1)
     
    33293317        _der_y_a = _der_y_an;
    33303318    }
    3331     i1_6in = 0;
    3332     i1_6ie = floor((1) - (1));
    3333     for (i1_6i = 1; i1_6in <= i1_6ie; i1_6i = 1 + (++i1_6in)) {
    3334         if (COND_EXP_EQ(1.0, jmi_array_size(jmi_array_rec_1(x_a, i1_6i)->x, 0), JMI_TRUE, JMI_FALSE) == JMI_FALSE) {
     3319    _for_loop_variables_i2[0] = 0;
     3320    _for_loop_variables_i1[0] = floor((1) - (1));
     3321    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     3322        if (COND_EXP_EQ(1.0, jmi_array_size(jmi_array_rec_1(x_a, _for_loop_variables_r1[0])->x, 0), JMI_TRUE, JMI_FALSE) == JMI_FALSE) {
    33353323            jmi_assert_failed(\"Mismatching sizes in function 'Differentiation.AlgorithmDifferentiation.RecordArrayTemp1.F', component 'x[i1].x', dimension '1'\", JMI_ASSERT_ERROR);
    33363324        }
    33373325    }
    3338     i1_7in = 0;
    3339     i1_7ie = floor((1) - (1));
    3340     for (i1_7i = 1; i1_7in <= i1_7ie; i1_7i = 1 + (++i1_7in)) {
    3341         JMI_ASG(GEN_ARR, jmi_array_rec_1(_der_y_a, i1_7i)->x, jmi_array_rec_1(_der_x_a, i1_7i)->x)
    3342         JMI_ASG(GEN_ARR, jmi_array_rec_1(y_a, i1_7i)->x, jmi_array_rec_1(x_a, i1_7i)->x)
     3326    _for_loop_variables_i2[0] = 0;
     3327    _for_loop_variables_i1[0] = floor((1) - (1));
     3328    for (_for_loop_variables_r1[0] = 1; _for_loop_variables_i2[0] <= _for_loop_variables_i1[0]; _for_loop_variables_r1[0] = 1 + (++(_for_loop_variables_i2[0]))) {
     3329        JMI_ASG(GEN_ARR, jmi_array_rec_1(_der_y_a, _for_loop_variables_r1[0])->x, jmi_array_rec_1(_der_x_a, _for_loop_variables_r1[0])->x)
     3330        JMI_ASG(GEN_ARR, jmi_array_rec_1(y_a, _for_loop_variables_r1[0])->x, jmi_array_rec_1(x_a, _for_loop_variables_r1[0])->x)
    33433331    }
    33443332    JMI_DYNAMIC_FREE()
Note: See TracChangeset for help on using the changeset viewer.