Changeset 14199


Ignore:
Timestamp:
Nov 27, 2019 3:00:17 PM (2 weeks ago)
Author:
Christian Andersson
Message:

Minor updates to the C-code generation for for loops, ticket:5882

Location:
branches/dev-cw-2719/Compiler
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-cw-2719/Compiler/ModelicaCBackEnd/src/jastadd/CCodeGen/CCodeGen.jrag

    r12811 r14199  
    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                                        "jmi_array_val_1(" + C_LOOP_INDEX + "_r1, " + myCodeGenContext().getForLoopDepth() + ")" :
    282283                                        name_C("");
    283284    eq FStringVariable.name_C()     = name_C("_s_" + variabilityCausality_C());
  • branches/dev-cw-2719/Compiler/ModelicaCBackEnd/src/jastadd/CCodeGen/CCodeGenAlgorithms.jrag

    r14175 r14199  
    299299    public void FForStmt.prettyPrint_C(CodePrinter p, CodeStream str, String indent) {
    300300        this.myCodeGenContext().incrementForLoopDepth();
     301        getIndex().getFVariable().flushCache(); //Needs to be flushed due to that otherwise the specific naming for this loop won't work.
    301302        p.printPreSteps(getIndex(), str, indent);
    302303        getIndex().printForIndexInit_C(p, str, indent);
     
    313314    }
    314315
    315     @Override
    316     public void FForIndex.genVarDecls_C(CodePrinter p, CodeStream str, String indent) {
    317         super.genVarDecls_C(p, str, indent);
    318         String name = getFVariable().name_C();
    319         str.format("%sjmi_real_t %s;\n", indent, name);
    320     }
    321 
    322316    public void FForIndex.printForIndexInit_C(CodePrinter p, CodeStream str, String indent) {
    323         getFExp().printForIndexInit_C(p, str, indent, getFVariable().name_C());
    324     }
    325 
    326     public void FExp.printForIndexInit_C(CodePrinter p, CodeStream str, String indent, String name) {}
    327 
    328     @Override
    329     public void FRangeExp.printForIndexInit_C(CodePrinter p, CodeStream str, String indent, String name) {
    330         String nameEAccess = "jmi_array_val_1(" + C_LOOP_INDEX + "_i1, " + this.myCodeGenContext().getForLoopDepth() + ")";
    331         String nameERef = "jmi_array_ref_1(" + C_LOOP_INDEX + "_i1, " + this.myCodeGenContext().getForLoopDepth() + ")";
    332         String nameNAccess = "jmi_array_val_1(" + C_LOOP_INDEX + "_i2, " + this.myCodeGenContext().getForLoopDepth() + ")";
    333         String nameNRef = "jmi_array_ref_1(" + C_LOOP_INDEX + "_i2, " + this.myCodeGenContext().getForLoopDepth() + ")";
     317        getFExp().printForIndexInit_C(p, str, indent);
     318    }
     319
     320    public void FExp.printForIndexInit_C(CodePrinter p, CodeStream str, String indent) {}
     321   
     322    public String FExp.getForIndexArrayAccess(boolean reference, String suffix) {
     323        if (reference) {
     324            return "jmi_array_ref_1(" + C_LOOP_INDEX + suffix +", " + this.myCodeGenContext().getForLoopDepth() + ")";
     325        } else {
     326            return "jmi_array_val_1(" + C_LOOP_INDEX + suffix +", " + this.myCodeGenContext().getForLoopDepth() + ")";
     327        }
     328    }
     329
     330    @Override
     331    public void FRangeExp.printForIndexInit_C(CodePrinter p, CodeStream str, String indent) {
     332        String nameEAccess = getForIndexArrayAccess(false, "_i1");
     333        String nameERef = getForIndexArrayAccess(true, "_i1");
     334        String nameNAccess = getForIndexArrayAccess(false, "_i2");
     335        String nameNRef = getForIndexArrayAccess(true, "_i2");
     336
    334337        boolean hasStep = hasStep();
    335338        FExp start = getFExp(0);
     
    368371    @Override
    369372    public void FForIndex.prettyPrint_C(CodePrinter p, CodeStream str, String indent) {
    370         getFExp().printForIndex_C(p, str, indent, getFVariable().name_C());
    371     }
    372 
    373     public void FExp.printForIndex_C(CodePrinter p, CodeStream str, String indent, String name) {
     373        getFExp().printForIndex_C(p, str, indent);
     374    }
     375
     376    public void FExp.printForIndex_C(CodePrinter p, CodeStream str, String indent) {
    374377        throw new UnsupportedOperationException("C code generation for loop index not implemented for class " +
    375378                getClass().getSimpleName());
     
    377380
    378381    @Override
    379     public void FAccessExp.printForIndex_C(CodePrinter p, CodeStream str, String indent, String name) {
    380         String nameEAccess = "jmi_array_val_1(" + C_LOOP_INDEX + "_i1, " + this.myCodeGenContext().getForLoopDepth() + ")";
    381         String nameERef    = "jmi_array_ref_1(" + C_LOOP_INDEX + "_i1, " + this.myCodeGenContext().getForLoopDepth() + ")";
     382    public void FAccessExp.printForIndex_C(CodePrinter p, CodeStream str, String indent) {
     383        String nameEAccess = getForIndexArrayAccess(false, "_i1");
     384        String nameERef    = getForIndexArrayAccess(true, "_i1");
     385       
    382386        str.format("%1$s = 0; %2$s < jmi_array_size(%3$s, 0); (%1$s)++",
    383387                nameERef, nameEAccess, getFAccess().toString_C(p));
     
    385389
    386390    @Override
    387     public void FRangeExp.printForIndex_C(CodePrinter p, CodeStream str, String indent, String name) {
     391    public void FRangeExp.printForIndex_C(CodePrinter p, CodeStream str, String indent) {
    388392        FExp start = getFExp(0);
    389393        FExp step = getFExp(1);
    390 
    391         String nameEAccess = "jmi_array_val_1(" + C_LOOP_INDEX + "_i1, " + this.myCodeGenContext().getForLoopDepth() + ")";
    392         String nameNAccess = "jmi_array_val_1(" + C_LOOP_INDEX + "_i2, " + this.myCodeGenContext().getForLoopDepth() + ")";
    393         String nameNRef    = "jmi_array_ref_1(" + C_LOOP_INDEX + "_i2, " + this.myCodeGenContext().getForLoopDepth() + ")";
     394       
     395        String nameEAccess = getForIndexArrayAccess(false, "_i1");
     396        String nameNAccess = getForIndexArrayAccess(false, "_i2");
     397        String nameNRef = getForIndexArrayAccess(true, "_i2");
     398        String nameRef = getForIndexArrayAccess(true, "_r1");
     399        String nameAccess = getForIndexArrayAccess(false, "_r1");
     400       
    394401       
    395402        /*
    396403         * Initial expression.
    397404         */
    398         str.print(name, " = ");
     405        str.print(nameRef, " = ");
    399406        p.print(start, str, indent);
    400407        str.print("; ");
     
    408415         * Iteration expression.
    409416         */
    410         str.print(name, " = ");
     417        str.print(nameRef, " = ");
    411418        p.print(start, str, indent);
    412419        str.print(" + ");
     
    420427
    421428    public void FForIndex.printForIndexNext_C(CodePrinter p, CodeStream str, String indent) {
    422         getFExp().printForIndexNext_C(p, str, indent, getFVariable().name_C());
    423     }
    424 
    425     public void FExp.printForIndexNext_C(CodePrinter p, CodeStream str, String indent, String name) {
    426     }
    427 
    428     @Override
    429     public void FAccessExp.printForIndexNext_C(CodePrinter p, CodeStream str, String indent, String name) {
    430         String nameEAccess = "jmi_array_val_1(" + C_LOOP_INDEX + "_i1, " + this.myCodeGenContext().getForLoopDepth() + ")";
     429        getFExp().printForIndexNext_C(p, str, indent);
     430    }
     431
     432    public void FExp.printForIndexNext_C(CodePrinter p, CodeStream str, String indent) {
     433    }
     434
     435    @Override
     436    public void FAccessExp.printForIndexNext_C(CodePrinter p, CodeStream str, String indent) {
     437        String nameEAccess = getForIndexArrayAccess(false, "_i1");
     438        String nameRef = getForIndexArrayAccess(true, "_r1");
    431439        str.format("%1$s%2$s = jmi_array_val_1(%3$s, %4$s);\n",
    432                 indent, name, getFAccess().toString_C(p), nameEAccess);
     440                indent, nameRef, getFAccess().toString_C(p), nameEAccess);
    433441    }
    434442
  • branches/dev-cw-2719/Compiler/ModelicaCBackEnd/src/jastadd/CCodeGen/CCodeGenFunction.jrag

    r14175 r14199  
    234234    public static final String ASTNode.C_LOOP_INDEX     = "_for_loop_variables";
    235235   
    236     public void FFunctionDecl.genArrayForVarDecl_C(CodePrinter p, CodeStream str, String indent, FType type, String suffix, int maxForLoopDepth) {
    237         str.print(indent, "JMI_ARR(STACK, ",
    238                 type.nameScalarExt_C(p), ", ",
    239                 type.nameArrayExt_C(p), ", ",
    240                 this.C_LOOP_INDEX, suffix, ", 1, ", maxForLoopDepth);
    241        str.println(")");
    242     }
    243    
    244236    public void FFunctionDecl.genForVarDecls_C(CodePrinter p, CodeStream str, String indent) {
    245237        int maxForLoopDepth = maxForLoopDepth();
    246         FIntegerType intType = new FIntegerType();
    247         FRealType realType   = new FRealType();
     238        Size sizeMaxForLoopDepth = new Size(maxForLoopDepth);
     239       
     240        FIntegerType intType = new FIntegerType(sizeMaxForLoopDepth);
     241        FRealType realType   = new FRealType(sizeMaxForLoopDepth);
    248242        if (maxForLoopDepth > 0) {
    249             //genArrayForVarDecl_C(p, str, indent, realType, "i", maxForLoopDepth);
    250             genArrayForVarDecl_C(p, str, indent, intType, "_i1", maxForLoopDepth);
    251             genArrayForVarDecl_C(p, str, indent, intType, "_i2", maxForLoopDepth);
     243            realType.printArrayDecl_C(p, str, indent, Dynamicity.STACK, C_LOOP_INDEX + "_r1", true);
     244            intType.printArrayDecl_C(p, str, indent, Dynamicity.STACK, C_LOOP_INDEX + "_i1", true);
     245            intType.printArrayDecl_C(p, str, indent, Dynamicity.STACK, C_LOOP_INDEX + "_i2", true);
    252246        }
    253247    }
  • branches/dev-cw-2719/Compiler/ModelicaCBackEnd/test/modelica/CCodeGenAlgorithmTests.mo

    r14175 r14199  
    965965    JMI_ARR(STACK, jmi_real_t, jmi_array_t, o_an, 2, 1)
    966966    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 2, 1)
    967     jmi_real_t i1_0i;
     967    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    968968    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    969969    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    977977    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    978978    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    979     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    980         jmi_array_ref_1(o_a, i1_0i) = jmi_array_val_1(temp_1_a, i1_0i);
     979    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     980        jmi_array_ref_1(o_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    981981    }
    982982    JMI_DYNAMIC_FREE()
     
    992992    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 2, 1)
    993993    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_2_a, 2, 1)
    994     jmi_real_t i1_1i;
    995     jmi_real_t i1_2i;
    996     jmi_real_t i1_3i;
    997994    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, tmp_1, 3, 1, 3)
    998995    r__v->a = tmp_1;
     
    1002999        r_v = r_vn;
    10031000    }
     1001    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    10041002    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    10051003    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    10081006    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    10091007    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    1010     for (i1_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    1011         jmi_array_ref_1(r_v->a, i1_1i) = 2 * jmi_array_val_1(temp_1_a, i1_1i);
     1008    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     1009        jmi_array_ref_1(r_v->a, jmi_array_val_1(_for_loop_variables_r1, 1)) = 2 * jmi_array_val_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    10121010    }
    10131011    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_2_a, 2, 1, 2)
     
    10151013    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    10161014    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    1017     for (i1_2i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_2i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    1018         jmi_array_ref_1(r_v->a, 2 + (i1_2i - 1)) = jmi_array_val_1(temp_2_a, i1_2i);
     1015    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     1016        jmi_array_ref_1(r_v->a, 2 + (jmi_array_val_1(_for_loop_variables_r1, 1) - 1)) = jmi_array_val_1(temp_2_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    10191017    }
    10201018    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    10211019    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((3) - (1));
    1022     for (i1_3i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_3i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    1023         jmi_array_ref_1(r__v->a, i1_3i) = jmi_array_val_1(r_v->a, i1_3i);
     1020    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     1021        jmi_array_ref_1(r__v->a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(r_v->a, jmi_array_val_1(_for_loop_variables_r1, 1));
    10241022    }
    10251023    JMI_DYNAMIC_FREE()
     
    11111109    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_5_a, 2, 1)
    11121110    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_6_a, 2, 1)
    1113     jmi_real_t i1_0i;
    1114     jmi_real_t i1_1i;
    1115     jmi_real_t i1_2i;
     1111    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    11161112    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    11171113    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    11311127    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    11321128    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((3) - (1));
    1133     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    1134         jmi_array_ref_1(o_a, jmi_array_ref_1(temp_1_a, i1_0i)) = jmi_array_val_1(temp_2_a, i1_0i);
     1129    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     1130        jmi_array_ref_1(o_a, jmi_array_ref_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1))) = jmi_array_val_1(temp_2_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    11351131    }
    11361132    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_4_a, 2, 1, 2)
     
    11401136    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    11411137    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    1142     for (i1_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    1143         jmi_array_ref_1(temp_3_a, i1_1i) = jmi_array_val_1(o_a, jmi_array_val_1(temp_4_a, i1_1i));
     1138    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     1139        jmi_array_ref_1(temp_3_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(o_a, jmi_array_val_1(temp_4_a, jmi_array_val_1(_for_loop_variables_r1, 1)));
    11441140    }
    11451141    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_5_a, 2, 1, 2)
     
    11501146    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    11511147    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    1152     for (i1_2i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_2i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    1153         jmi_array_ref_1(o_a, jmi_array_ref_1(temp_6_a, i1_2i)) = jmi_array_val_1(temp_5_a, i1_2i);
     1148    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     1149        jmi_array_ref_1(o_a, jmi_array_ref_1(temp_6_a, jmi_array_val_1(_for_loop_variables_r1, 1))) = jmi_array_val_1(temp_5_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    11541150    }
    11551151    JMI_RET(GEN, dummy_o, dummy_v)
     
    11621158    JMI_ARR(STACK, jmi_real_t, jmi_array_t, o_an, 2, 1)
    11631159    JMI_DEF(REA, dummy_v)
    1164     jmi_real_t i1_3i;
     1160    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    11651161    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    11661162    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    11721168    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    11731169    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    1174     for (i1_3i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_3i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    1175         jmi_array_ref_1(o_a, i1_3i) = jmi_array_val_1(i_a, i1_3i);
     1170    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     1171        jmi_array_ref_1(o_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(i_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    11761172    }
    11771173    JMI_RET(GEN, dummy_o, dummy_v)
  • branches/dev-cw-2719/Compiler/ModelicaCBackEnd/test/modelica/CCodeGenArrayTests.mo

    r14175 r14199  
    3939    JMI_DEF(REA, temp_1_v)
    4040    JMI_DEF(REA, temp_2_v)
    41     jmi_real_t i1_0i;
     41    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    4242    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    4343    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    4545    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    4646    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(x_a, 0)) - (1));
    47     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    48         temp_2_v = temp_2_v + jmi_array_val_1(x_a, i1_0i) * jmi_array_val_1(x_a, i1_0i);
     47    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     48        temp_2_v = temp_2_v + jmi_array_val_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 1)) * jmi_array_val_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    4949    }
    5050    temp_1_v = temp_2_v;
     
    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;
    256255    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, tmp_1, 3, 1, 3)
    257256    r_v->x = tmp_1;
     257    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    258258    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    259259    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    262262    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    263263    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((3) - (1));
    264     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    265         jmi_array_ref_1(r_v->x, i1_0i) = i1_0i;
     264    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     265        jmi_array_ref_1(r_v->x, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(_for_loop_variables_r1, 1);
    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_real_t i1_1i;
    802     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 2)
    803     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 2)
     800    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 2, 1)
     801    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 2, 1)
     802    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 2, 1)
    804803    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    805804    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(r_a, 0)) - (1));
    806     for (i_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     805    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    807806        temp_1_v = 0.0;
    808807        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    809         jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((jmi_array_size(jmi_array_rec_1(r_a, i_0i)->x, 0)) - (1));
    810         for (i1_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i1_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    811             temp_1_v = temp_1_v + jmi_array_val_1(jmi_array_rec_1(r_a, i_0i)->x, i1_1i);
     808        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((jmi_array_size(jmi_array_rec_1(r_a, jmi_array_val_1(_for_loop_variables_r1, 2))->x, 0)) - (1));
     809        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     810            temp_1_v = temp_1_v + jmi_array_val_1(jmi_array_rec_1(r_a, jmi_array_val_1(_for_loop_variables_r1, 2))->x, jmi_array_val_1(_for_loop_variables_r1, 2));
    812811        }
    813812        y_v = y_v + temp_1_v;
     
    970969    JMI_DEF(REA, y_v)
    971970    JMI_DEF(REA, temp_1_v)
    972     jmi_real_t i1_0i;
    973     jmi_real_t i1_1i;
    974     jmi_real_t i1_2i;
     971    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    975972    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    976973    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    982979    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    983980    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((n_v) - (1));
    984     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    985         jmi_array_rec_1(rs_a, i1_0i)->x = 1;
     981    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     982        jmi_array_rec_1(rs_a, jmi_array_val_1(_for_loop_variables_r1, 1))->x = 1;
    986983    }
    987984    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    988985    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((n_v) - (1));
    989     for (i1_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    990         jmi_array_ref_1(xs_a, i1_1i) = jmi_array_rec_1(rs_a, i1_1i)->x;
     986    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     987        jmi_array_ref_1(xs_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_rec_1(rs_a, jmi_array_val_1(_for_loop_variables_r1, 1))->x;
    991988    }
    992989    temp_1_v = 0.0;
    993990    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    994991    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((n_v) - (1));
    995     for (i1_2i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_2i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    996         temp_1_v = temp_1_v + jmi_array_val_1(xs_a, i1_2i);
     992    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     993        temp_1_v = temp_1_v + jmi_array_val_1(xs_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    997994    }
    998995    y_v = temp_1_v;
  • branches/dev-cw-2719/Compiler/ModelicaCBackEnd/test/modelica/CCodeGenCompositeStatementTests.mo

    r14175 r14199  
    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;
     44    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    4545    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    4646    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    5454    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    5555    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    56     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    57         jmi_array_rec_1(y_a, i1_0i)->x = jmi_array_rec_1(temp_1_a, i1_0i)->x;
     56    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     57        jmi_array_rec_1(y_a, jmi_array_val_1(_for_loop_variables_r1, 1))->x = jmi_array_rec_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1))->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_real_t i2_1i;
    94     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 2)
    95     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 2)
     92    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 2, 1)
     93    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 2, 1)
     94    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 2, 1)
    9695    if (y_a == NULL) {
    9796        JMI_ARRAY_INIT_1(STACK, R_0_r, R_0_ra, y_an, 2, 1, 2)
     
    107106    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    108107    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    109     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     108    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    110109        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    111110        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((1) - (1));
    112         for (i2_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i2_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    113             jmi_array_ref_1(jmi_array_rec_1(y_a, i1_0i)->x, i2_1i) = jmi_array_val_1(jmi_array_rec_1(temp_1_a, i1_0i)->x, i2_1i);
     111        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     112            jmi_array_ref_1(jmi_array_rec_1(y_a, jmi_array_val_1(_for_loop_variables_r1, 2))->x, jmi_array_val_1(_for_loop_variables_r1, 2)) = jmi_array_val_1(jmi_array_rec_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 2))->x, jmi_array_val_1(_for_loop_variables_r1, 2));
    114113        }
    115114    }
     
    166165    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 1, 1)
    167166    JMI_ARR(STACK, R3_2_r, R3_2_ra, temp_2_a, 2, 1)
    168     jmi_real_t i1_0i;
    169     jmi_real_t i1_1i;
    170     jmi_real_t i1_2i;
    171     jmi_real_t i2_3i;
    172167    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, tmp_3, 1, 1, 1)
    173168    tmp_2->x = tmp_3;
    174169    tmp_1->r = tmp_2;
    175170    c_v->r = tmp_1;
    176     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 2)
    177     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 2)
     171    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 2, 1)
     172    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 2, 1)
     173    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 2, 1)
    178174    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_1_a, 1, 1, 1)
    179175    jmi_array_ref_1(temp_1_a, 1) = 1;
    180176    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    181177    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((1) - (1));
    182     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    183         jmi_array_ref_1(c_v->r->r->x, i1_0i) = jmi_array_val_1(temp_1_a, i1_0i);
     178    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     179        jmi_array_ref_1(c_v->r->r->x, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    184180    }
    185181    c_v->r->x = 0;
     
    202198    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    203199    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((1) - (1));
    204     for (i1_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    205         jmi_array_ref_1(jmi_array_rec_1(temp_2_a, 1)->r->r->x, i1_1i) = jmi_array_val_1(c_v->r->r->x, i1_1i);
     200    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     201        jmi_array_ref_1(jmi_array_rec_1(temp_2_a, 1)->r->r->x, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(c_v->r->r->x, jmi_array_val_1(_for_loop_variables_r1, 1));
    206202    }
    207203    jmi_array_rec_1(temp_2_a, 1)->r->x = c_v->r->x;
     
    209205    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    210206    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    211     for (i1_2i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_2i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     207    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    212208        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    213209        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((1) - (1));
    214         for (i2_3i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i2_3i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    215             jmi_array_ref_1(jmi_array_rec_1(y_a, i1_2i)->r->r->x, i2_3i) = jmi_array_val_1(jmi_array_rec_1(temp_2_a, i1_2i)->r->r->x, i2_3i);
     210        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     211            jmi_array_ref_1(jmi_array_rec_1(y_a, jmi_array_val_1(_for_loop_variables_r1, 2))->r->r->x, jmi_array_val_1(_for_loop_variables_r1, 2)) = jmi_array_val_1(jmi_array_rec_1(temp_2_a, jmi_array_val_1(_for_loop_variables_r1, 2))->r->r->x, jmi_array_val_1(_for_loop_variables_r1, 2));
    216212        }
    217         jmi_array_rec_1(y_a, i1_2i)->r->x = jmi_array_rec_1(temp_2_a, i1_2i)->r->x;
     213        jmi_array_rec_1(y_a, jmi_array_val_1(_for_loop_variables_r1, 2))->r->x = jmi_array_rec_1(temp_2_a, jmi_array_val_1(_for_loop_variables_r1, 2))->r->x;
    218214    }
    219215    JMI_DYNAMIC_FREE()
     
    251247    JMI_ARR(STACK, jmi_real_t, jmi_array_t, tmp_1, 1, 1)
    252248    JMI_ARR(STACK, R1_0_r, R1_0_ra, temp_1_a, 1, 1)
    253     jmi_real_t i1_0i;
    254     jmi_real_t i2_1i;
    255     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 2)
    256     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 2)
     249    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 2, 1)
     250    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 2, 1)
     251    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 2, 1)
    257252    if (y_a == NULL) {
    258253        JMI_ARRAY_INIT_1(STACK, R1_0_r, R1_0_ra, y_an, 1, 1, 1)
     
    265260    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    266261    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((1) - (1));
    267     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     262    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    268263        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    269264        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((1) - (1));
    270         for (i2_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i2_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    271             jmi_array_ref_1(jmi_array_rec_1(y_a, i1_0i)->x, i2_1i) = jmi_array_val_1(jmi_array_rec_1(temp_1_a, i1_0i)->x, i2_1i);
     265        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     266            jmi_array_ref_1(jmi_array_rec_1(y_a, jmi_array_val_1(_for_loop_variables_r1, 2))->x, jmi_array_val_1(_for_loop_variables_r1, 2)) = jmi_array_val_1(jmi_array_rec_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 2))->x, jmi_array_val_1(_for_loop_variables_r1, 2));
    272267        }
    273268    }
     
    312307    JMI_ARR(STACK, R2_1_r, R2_1_ra, temp_1_a, 1, 1)
    313308    JMI_ARR(STACK, R1_0_r, R1_0_ra, temp_2_a, 1, 1)
    314     jmi_real_t i1_0i;
    315     jmi_real_t i2_1i;
    316     jmi_real_t i3_2i;
    317     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 3)
    318     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 3)
     309    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 3, 1)
     310    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 3, 1)
     311    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 3, 1)
    319312    if (y_a == NULL) {
    320313        JMI_ARRAY_INIT_1(STACK, R2_1_r, R2_1_ra, y_an, 1, 1, 1)
     
    331324    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    332325    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((1) - (1));
    333     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     326    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    334327        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    335328        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((1) - (1));
    336         for (i2_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i2_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     329        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    337330            jmi_array_ref_1(_for_loop_variables_i2, 3) = 0;
    338331            jmi_array_ref_1(_for_loop_variables_i1, 3) = floor((1) - (1));
    339             for (i3_2i = 1; jmi_array_val_1(_for_loop_variables_i2, 3) <= jmi_array_val_1(_for_loop_variables_i1, 3); i3_2i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 3)))) {
    340                 jmi_array_ref_1(jmi_array_rec_1(jmi_array_rec_1(y_a, i1_0i)->r1, i2_1i)->x, i3_2i) = jmi_array_val_1(jmi_array_rec_1(jmi_array_rec_1(temp_1_a, i1_0i)->r1, i2_1i)->x, i3_2i);
     332            for (jmi_array_ref_1(_for_loop_variables_r1, 3) = 1; jmi_array_val_1(_for_loop_variables_i2, 3) <= jmi_array_val_1(_for_loop_variables_i1, 3); jmi_array_ref_1(_for_loop_variables_r1, 3) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 3)))) {
     333                jmi_array_ref_1(jmi_array_rec_1(jmi_array_rec_1(y_a, jmi_array_val_1(_for_loop_variables_r1, 3))->r1, jmi_array_val_1(_for_loop_variables_r1, 3))->x, jmi_array_val_1(_for_loop_variables_r1, 3)) = jmi_array_val_1(jmi_array_rec_1(jmi_array_rec_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 3))->r1, jmi_array_val_1(_for_loop_variables_r1, 3))->x, jmi_array_val_1(_for_loop_variables_r1, 3));
    341334            }
    342335        }
  • branches/dev-cw-2719/Compiler/ModelicaCBackEnd/test/modelica/CCodeGenExternalTests.mo

    r14175 r14199  
    22292229    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, Awork_a, -1, 2)
    22302230    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, work_a, -1, 1)
    2231     jmi_real_t i1_0i;
    2232     jmi_real_t i2_1i;
    22332231    JMI_DEF(STR_EXT, tmp_1)
    22342232    JMI_DEF(STR_EXT, tmp_2)
     
    22422240    JMI_DEF(INT_EXT, tmp_10)
    22432241    extern void dgeev_(const char*, const char*, int*, double*, int*, double*, double*, double*, int*, double*, int*, double*, int*, int*);
    2244     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 2)
    2245     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 2)
     2242    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 2, 1)
     2243    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 2, 1)
     2244    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 2, 1)
    22462245    if (eigenReal_a == NULL) {
    22472246        JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, eigenReal_an, jmi_array_size(A_a, 0), 1, jmi_array_size(A_a, 0))
     
    22622261    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    22632262    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(A_a, 0)) - (1));
    2264     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     2263    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    22652264        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    22662265        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((jmi_array_size(A_a, 0)) - (1));
    2267         for (i2_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i2_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    2268             jmi_array_ref_2(Awork_a, i1_0i, i2_1i) = jmi_array_val_2(A_a, i1_0i, i2_1i);
     2266        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     2267            jmi_array_ref_2(Awork_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2)) = jmi_array_val_2(A_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2));
    22692268        }
    22702269    }
  • branches/dev-cw-2719/Compiler/ModelicaCBackEnd/test/modelica/CCodeGenGlobalsTests.mo

    r14175 r14199  
    10421042    JMI_DYNAMIC_INIT()
    10431043    JMI_DEF(REA, y_v)
    1044     jmi_real_t i_0i;
     1044    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    10451045    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    10461046    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    10481048    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    10491049    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    1050     for (i_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    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])\");
     1050    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     1051        y_v = JMI_POW_FUNCTION(\"CCodeGenGlobalsTests.GlobalVariables.GlobalConstantForPowInt1.f\", y_v, jmi_array_val_1(JMI_GLOBAL(CCodeGenGlobalsTests_GlobalVariables_GlobalConstantForPowInt1_f_c), jmi_array_val_1(_for_loop_variables_r1, 1)), \"y ^ global(CCodeGenGlobalsTests.GlobalVariables.GlobalConstantForPowInt1.f.c[i])\");
    10521052    }
    10531053    JMI_RET(GEN, y_o, y_v)
  • branches/dev-cw-2719/Compiler/ModelicaCBackEnd/test/modelica/CCodeGenLiteralTests.mo

    r14175 r14199  
    5858    JMI_DEF(INT, y_v)
    5959    JMI_DEF(INT, temp_1_v)
    60     jmi_real_t i1_0i;
     60    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    6161    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    6262    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    6464    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    6565    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(x_a, 0)) - (1));
    66     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    67         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));
     66    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     67        temp_1_v = COND_EXP_EQ(COND_EXP_GT(temp_1_v, jmi_array_val_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 1)), JMI_TRUE, JMI_FALSE), JMI_TRUE, temp_1_v, jmi_array_val_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 1)));
    6868    }
    6969    y_v = temp_1_v;
  • branches/dev-cw-2719/Compiler/ModelicaCBackEnd/test/modelica/CCodeGenTests.mo

    r14175 r14199  
    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_real_t i2_1i;
    912     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 2)
    913     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 2)
     910    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 2, 1)
     911    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 2, 1)
     912    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 2, 1)
    914913    if (y_a == NULL) {
    915914        JMI_ARRAY_INIT_2(STACK, jmi_real_t, jmi_array_t, y_an, 1, 2, 1, 1)
     
    919918    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    920919    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((1) - (1));
    921     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     920    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    922921        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    923922        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((1) - (1));
    924         for (i2_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i2_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    925             jmi_array_ref_2(temp_1_a, i1_0i, i2_1i) = jmi_array_val_2(x_a, i2_1i, i1_0i);
     923        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     924            jmi_array_ref_2(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2)) = jmi_array_val_2(x_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2));
    926925        }
    927926    }
     
    936935    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 1, 2)
    937936    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_2_a, 1, 1)
    938     jmi_real_t i1_2i;
    939     jmi_real_t i1_3i;
    940     jmi_real_t i2_4i;
    941     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 2)
    942     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 2)
     937    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 2, 1)
     938    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 2, 1)
     939    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 2, 1)
    943940    if (y_a == NULL) {
    944941        JMI_ARRAY_INIT_2(STACK, jmi_real_t, jmi_array_t, y_an, 1, 2, 1, 1)
     
    950947    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    951948    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((1) - (1));
    952     for (i1_2i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_2i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    953         jmi_array_ref_2(temp_1_a, 1, i1_2i) = jmi_array_val_1(temp_2_a, i1_2i);
     949    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     950        jmi_array_ref_2(temp_1_a, 1, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(temp_2_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    954951    }
    955952    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    956953    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((1) - (1));
    957     for (i1_3i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_3i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     954    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    958955        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    959956        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((1) - (1));
    960         for (i2_4i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i2_4i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    961             jmi_array_ref_2(y_a, i1_3i, i2_4i) = jmi_array_val_2(temp_1_a, i1_3i, i2_4i);
     957        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     958            jmi_array_ref_2(y_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2)) = jmi_array_val_2(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2));
    962959        }
    963960    }
     
    970967    JMI_DEF(REA, y_v)
    971968    JMI_DEF(REA, temp_1_v)
    972     jmi_real_t i1_5i;
    973     jmi_real_t i2_6i;
    974     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 2)
    975     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 2)
     969    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 2, 1)
     970    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 2, 1)
     971    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 2, 1)
    976972    temp_1_v = 0.0;
    977973    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    978974    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(x_a, 0)) - (1));
    979     for (i1_5i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_5i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     975    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    980976        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    981977        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((jmi_array_size(x_a, 1)) - (1));
    982         for (i2_6i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i2_6i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    983             temp_1_v = temp_1_v + jmi_array_val_2(x_a, i1_5i, i2_6i);
     978        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     979            temp_1_v = temp_1_v + jmi_array_val_2(x_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2));
    984980        }
    985981    }
     
    29412937    JMI_DYNAMIC_INIT()
    29422938    JMI_ARR(STACK, jmi_real_t, jmi_array_t, y_an, 2, 1)
    2943     jmi_real_t i1_0i;
     2939    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    29442940    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    29452941    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    29502946    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    29512947    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    2952     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    2953         jmi_array_ref_1(y_a, i1_0i) = jmi_array_val_1(x_a, i1_0i);
     2948    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     2949        jmi_array_ref_1(y_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    29542950    }
    29552951    JMI_DYNAMIC_FREE()
     
    30143010    JMI_ARR(STACK, jmi_real_t, jmi_array_t, y_an, 2, 1)
    30153011    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 2, 1)
    3016     jmi_real_t i1_0i;
    3017     jmi_real_t i1_1i;
     3012    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    30183013    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    30193014    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    30313026    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    30323027    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    3033     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    3034         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);
     3028    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     3029        jmi_array_ref_1(dx_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = - jmi_array_val_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 1)) + jmi_array_val_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    30353030    }
    30363031    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    30373032    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    3038     for (i1_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    3039         jmi_array_ref_1(y_a, i1_1i) = 2 * jmi_array_val_1(x_a, i1_1i);
     3033    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     3034        jmi_array_ref_1(y_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = 2 * jmi_array_val_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    30403035    }
    30413036    JMI_DYNAMIC_FREE()
     
    31073102    JMI_ARR(STACK, jmi_real_t, jmi_array_t, y_an, 2, 1)
    31083103    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 2, 1)
    3109     jmi_real_t i1_0i;
    3110     jmi_real_t i1_1i;
     3104    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    31113105    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    31123106    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    31243118    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    31253119    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    3126     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    3127         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);
     3120    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     3121        jmi_array_ref_1(dx_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = - jmi_array_val_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 1)) + jmi_array_val_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    31283122    }
    31293123    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    31303124    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    3131     for (i1_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    3132         jmi_array_ref_1(y_a, i1_1i) = 2 * jmi_array_val_1(x_a, i1_1i);
     3125    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     3126        jmi_array_ref_1(y_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = 2 * jmi_array_val_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    31333127    }
    31343128    JMI_DYNAMIC_FREE()
     
    33293323    JMI_DYNAMIC_INIT()
    33303324    JMI_ARR(STACK, jmi_real_t, jmi_array_t, y_an, 2, 1)
    3331     jmi_real_t i_0i;
     3325    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    33323326    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    33333327    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    33383332    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    33393333    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    3340     for (i_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    3341         jmi_array_ref_1(y_a, i_0i) = jmi_array_val_1(x_a, 1) + jmi_array_val_1(x_a, 2);
     3334    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     3335        jmi_array_ref_1(y_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(x_a, 1) + jmi_array_val_1(x_a, 2);
    33423336    }
    33433337    JMI_DYNAMIC_FREE()
     
    36793673    JMI_ARR(STACK, jmi_real_t, jmi_array_t, tmp_2, 2, 1)
    36803674    JMI_ARR(STACK, jmi_real_t, jmi_array_t, tmp_3, 2, 1)
    3681     jmi_real_t i1_0i;
     3675    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    36823676    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    36833677    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    37023696    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    37033697    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((func_CCodeGenTests_FuncWithArray_g_exp1(tmp_3)) - (1));
    3704     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    3705         jmi_array_ref_1(y_a, i1_0i) = jmi_array_val_1(temp_1_a, i1_0i);
     3698    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     3699        jmi_array_ref_1(y_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    37063700    }
    37073701    JMI_DYNAMIC_FREE()
     
    37143708    JMI_DEF(REA, temp_1_v)
    37153709    JMI_DEF(REA, temp_2_v)
    3716     jmi_real_t i1_1i;
    3717     jmi_real_t i1_2i;
     3710    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    37183711    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    37193712    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    37213714    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    37223715    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(x_a, 0)) - (1));
    3723     for (i1_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    3724         temp_1_v = temp_1_v + jmi_array_val_1(x_a, i1_1i);
     3716    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     3717        temp_1_v = temp_1_v + jmi_array_val_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    37253718    }
    37263719    temp_2_v = 0.0;
    37273720    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    37283721    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(x_a, 0)) - (1));
    3729     for (i1_2i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_2i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    3730         temp_2_v = temp_2_v + jmi_array_val_1(x_a, i1_2i);
     3722    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     3723        temp_2_v = temp_2_v + jmi_array_val_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    37313724    }
    37323725    n_v = floor(JMI_DIVIDE_FUNCTION(\"CCodeGenTests.FuncWithArray.g\", temp_1_v, temp_2_v, \"temp_1 / temp_2\"));
     
    37743767    JMI_DEF(REA, o_v)
    37753768    JMI_DEF(REA, x_v)
    3776     jmi_real_t i_0i;
     3769    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    37773770    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    37783771    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    37813774    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    37823775    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((3) - (1));
    3783     for (i_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    3784         x_v = x_v + i_0i;
     3776    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     3777        x_v = x_v + jmi_array_val_1(_for_loop_variables_r1, 1);
    37853778    }
    37863779    JMI_RET(GEN, o_o, o_v)
     
    38243817    JMI_DEF(REA, x_v)
    38253818    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 3, 1)
    3826     jmi_real_t i_0i;
     3819    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    38273820    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    38283821    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    38343827    jmi_array_ref_1(temp_1_a, 3) = 5;
    38353828    for (jmi_array_ref_1(_for_loop_variables_i1, 1) = 0; jmi_array_val_1(_for_loop_variables_i1, 1) < jmi_array_size(temp_1_a, 0); (jmi_array_ref_1(_for_loop_variables_i1, 1))++) {
    3836         i_0i = jmi_array_val_1(temp_1_a, jmi_array_val_1(_for_loop_variables_i1, 1));
    3837         x_v = x_v + i_0i;
     3829        jmi_array_ref_1(_for_loop_variables_r1, 1) = jmi_array_val_1(temp_1_a, jmi_array_val_1(_for_loop_variables_i1, 1));
     3830        x_v = x_v + jmi_array_val_1(_for_loop_variables_r1, 1);
    38383831    }
    38393832    JMI_RET(GEN, o_o, o_v)
     
    38763869    JMI_DEF(REA, o_v)
    38773870    JMI_DEF(REA, x_v)
    3878     jmi_real_t i_0i;
     3871    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    38793872    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    38803873    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    38833876    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    38843877    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor(((1) - (3)) / (-1));
    3885     for (i_0i = 3; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i_0i = 3 + (-1) * (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    3886         x_v = x_v + i_0i;
     3878    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 3; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 3 + (-1) * (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     3879        x_v = x_v + jmi_array_val_1(_for_loop_variables_r1, 1);
    38873880    }
    38883881    JMI_RET(GEN, o_o, o_v)
     
    39263919    JMI_DEF(REA, o_v)
    39273920    JMI_DEF(REA, x_v)
    3928     jmi_real_t i_0i;
     3921    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    39293922    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    39303923    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    39333926    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    39343927    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor(((1) - (3)) / (i_v));
    3935     for (i_0i = 3; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i_0i = 3 + (i_v) * (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    3936         x_v = x_v + i_0i;
     3928    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 3; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 3 + (i_v) * (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     3929        x_v = x_v + jmi_array_val_1(_for_loop_variables_r1, 1);
    39373930    }
    39383931    JMI_RET(GEN, o_o, o_v)
     
    39893982    JMI_DEF(INT, i_v)
    39903983    JMI_DEF(INT, j_v)
    3991     jmi_real_t i_0i;
    3992     jmi_real_t j_1i;
    3993     jmi_real_t i_2i;
    3994     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 2)
    3995     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 2)
     3984    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 2, 1)
     3985    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 2, 1)
     3986    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 2, 1)
    39963987    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    39973988    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((5) - (1));
    3998     for (i_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    3999         y_v = y_v + jmi_array_val_1(u_a, i_0i);
     3989    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     3990        y_v = y_v + jmi_array_val_1(u_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    40003991        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    40013992        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((4) - (1));
    4002         for (j_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); j_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    4003             y_v = y_v + jmi_array_val_1(u_a, i_0i);
     3993        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     3994            y_v = y_v + jmi_array_val_1(u_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    40043995        }
    40053996    }
    40063997    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    40073998    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((3) - (1));
    4008     for (i_2i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i_2i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    4009         y_v = y_v + jmi_array_val_1(u_a, i_2i);
     3999    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     4000        y_v = y_v + jmi_array_val_1(u_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    40104001    }
    40114002    JMI_RET(GEN, y_o, y_v)
     
    40474038    JMI_DYNAMIC_INIT()
    40484039    JMI_DEF(REA, x_v)
    4049     jmi_real_t v_0i;
     4040    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    40504041    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    40514042    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
    40524043    x_v = 0;
    40534044    for (jmi_array_ref_1(_for_loop_variables_i1, 1) = 0; jmi_array_val_1(_for_loop_variables_i1, 1) < jmi_array_size(y_a, 0); (jmi_array_ref_1(_for_loop_variables_i1, 1))++) {
    4054         v_0i = jmi_array_val_1(y_a, jmi_array_val_1(_for_loop_variables_i1, 1));
    4055         x_v = x_v + v_0i;
     4045        jmi_array_ref_1(_for_loop_variables_r1, 1) = jmi_array_val_1(y_a, jmi_array_val_1(_for_loop_variables_i1, 1));
     4046        x_v = x_v + jmi_array_val_1(_for_loop_variables_r1, 1);
    40564047    }
    40574048    JMI_RET(GEN, x_o, x_v)
     
    40934084    JMI_DYNAMIC_INIT()
    40944085    JMI_DEF(REA, x_v)
    4095     jmi_real_t i_0i;
     4086    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    40964087    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    40974088    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    40994090    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    41004091    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((n_v) - (1));
    4101     for (i_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    4102         x_v = x_v + i_0i;
     4092    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     4093        x_v = x_v + jmi_array_val_1(_for_loop_variables_r1, 1);
    41034094    }
    41044095    JMI_RET(GEN, x_o, x_v)
     
    41414132    JMI_DEF(REA, x_v)
    41424133    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_1_a, -1, 1)
    4143     jmi_real_t i1_0i;
    4144     jmi_real_t i_1i;
     4134    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    41454135    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    41464136    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    41494139    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    41504140    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((JMI_MAX_EQUATION(n_v, 0.0)) - (1));
    4151     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    4152         jmi_array_ref_1(temp_1_a, i1_0i) = (1.0 * (i1_0i) * (i1_0i));
     4141    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     4142        jmi_array_ref_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = (1.0 * (jmi_array_val_1(_for_loop_variables_r1, 1)) * (jmi_array_val_1(_for_loop_variables_r1, 1)));
    41534143    }
    41544144    for (jmi_array_ref_1(_for_loop_variables_i1, 1) = 0; jmi_array_val_1(_for_loop_variables_i1, 1) < jmi_array_size(temp_1_a, 0); (jmi_array_ref_1(_for_loop_variables_i1, 1))++) {
    4155         i_1i = jmi_array_val_1(temp_1_a, jmi_array_val_1(_for_loop_variables_i1, 1));
    4156         x_v = x_v + i_1i;
     4145        jmi_array_ref_1(_for_loop_variables_r1, 1) = jmi_array_val_1(temp_1_a, jmi_array_val_1(_for_loop_variables_i1, 1));
     4146        x_v = x_v + jmi_array_val_1(_for_loop_variables_r1, 1);
    41574147    }
    41584148    JMI_RET(GEN, x_o, x_v)
     
    41964186    JMI_DEF(REA, y_v)
    41974187    JMI_DEF(INT, step_v)
    4198     jmi_real_t i_0i;
     4188    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    41994189    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    42004190    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    42034193    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    42044194    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor(((10) - (1)) / (step_v));
    4205     for (i_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i_0i = 1 + (step_v) * (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    4206         y_v = y_v + i_0i;
     4195    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (step_v) * (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     4196        y_v = y_v + jmi_array_val_1(_for_loop_variables_r1, 1);
    42074197    }
    42084198    JMI_RET(GEN, y_o, y_v)
     
    42524242    JMI_DEF(REA, out_v)
    42534243    JMI_DEF(REA, temp_1_v)
    4254     jmi_real_t i1_0i;
     4244    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    42554245    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    42564246    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    42584248    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    42594249    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((3) - (1));
    4260     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    4261         temp_1_v = temp_1_v + jmi_array_val_1(inp_a, i1_0i);
     4250    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     4251        temp_1_v = temp_1_v + jmi_array_val_1(inp_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    42624252    }
    42634253    out_v = temp_1_v;
     
    43144304    JMI_DEF(REA, out_v)
    43154305    JMI_DEF(REA, temp_1_v)
    4316     jmi_real_t i1_0i;
     4306    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    43174307    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    43184308    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    43204310    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    43214311    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((3) - (1));
    4322     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    4323         temp_1_v = temp_1_v + jmi_array_val_1(inp_a, i1_0i);
     4312    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     4313        temp_1_v = temp_1_v + jmi_array_val_1(inp_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    43244314    }
    43254315    out_v = temp_1_v;
     
    43764366    JMI_DEF(REA, out_v)
    43774367    JMI_DEF(REA, temp_1_v)
    4378     jmi_real_t i1_0i;
     4368    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    43794369    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    43804370    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    43824372    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    43834373    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((3) - (1));
    4384     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    4385         temp_1_v = temp_1_v + jmi_array_val_1(inp_a, i1_0i);
     4374    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     4375        temp_1_v = temp_1_v + jmi_array_val_1(inp_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    43864376    }
    43874377    out_v = temp_1_v;
     
    44584448    JMI_DEF(REA, out_v)
    44594449    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 3, 1)
    4460     jmi_real_t i1_0i;
     4450    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    44614451    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    44624452    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    44654455    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    44664456    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((3) - (1));
    4467     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    4468         jmi_array_ref_1(temp_1_a, i1_0i) = i1_0i;
     4457    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     4458        jmi_array_ref_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(_for_loop_variables_r1, 1);
    44694459    }
    44704460    out_v = func_CCodeGenTests_CArrayInput4_f2_exp1(temp_1_a);
     
    44844474    JMI_DEF(REA, out_v)
    44854475    JMI_DEF(REA, temp_1_v)
    4486     jmi_real_t i1_1i;
     4476    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    44874477    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    44884478    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    44904480    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    44914481    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((3) - (1));
    4492     for (i1_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    4493         temp_1_v = temp_1_v + jmi_array_val_1(inp_a, i1_1i);
     4482    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     4483        temp_1_v = temp_1_v + jmi_array_val_1(inp_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    44944484    }
    44954485    out_v = temp_1_v;
     
    45474537    JMI_DEF(REA, t_v)
    45484538    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 3, 1)
    4549     jmi_real_t i1_0i;
     4539    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    45504540    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    45514541    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    45544544    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    45554545    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((3) - (1));
    4556     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    4557         jmi_array_ref_1(temp_1_a, i1_0i) = i1_0i;
     4546    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     4547        jmi_array_ref_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(_for_loop_variables_r1, 1);
    45584548    }
    45594549    func_CCodeGenTests_CArrayInput5_f2_def1(temp_1_a, &out_v, &t_v);
     
    45754565    JMI_DEF(REA, temp_1_v)
    45764566    JMI_DEF(REA, temp_2_v)
    4577     jmi_real_t i1_1i;
    4578     jmi_real_t i1_2i;
     4567    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    45794568    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    45804569    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    45824571    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    45834572    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((3) - (1));
    4584     for (i1_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    4585         temp_1_v = temp_1_v + jmi_array_val_1(inp_a, i1_1i);
     4573    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     4574        temp_1_v = temp_1_v + jmi_array_val_1(inp_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    45864575    }
    45874576    out1_v = temp_1_v;
     
    45894578    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    45904579    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((3) - (1));
    4591     for (i1_2i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_2i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    4592         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));
     4580    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     4581        temp_2_v = COND_EXP_EQ(COND_EXP_GT(temp_2_v, jmi_array_val_1(inp_a, jmi_array_val_1(_for_loop_variables_r1, 1)), JMI_TRUE, JMI_FALSE), JMI_TRUE, temp_2_v, jmi_array_val_1(inp_a, jmi_array_val_1(_for_loop_variables_r1, 1)));
    45934582    }
    45944583    out2_v = temp_2_v;
     
    46534642    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_2_a, -1, 1)
    46544643    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_3_a, -1, 1)
    4655     jmi_real_t i1_0i;
    4656     jmi_real_t i1_1i;
    4657     jmi_real_t i1_2i;
     4644    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    46584645    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    46594646    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    46654652    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    46664653    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((JMI_MAX_EQUATION(floor(2.0 - (i_v + 1.0)) + 1.0, 0.0)) - (1));
    4667     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    4668         jmi_array_ref_1(temp_1_a, i1_0i) = i_v + 1 + (i1_0i - 1);
     4654    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     4655        jmi_array_ref_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = i_v + 1 + (jmi_array_val_1(_for_loop_variables_r1, 1) - 1);
    46694656    }
    46704657    if (COND_EXP_LT(func_CCodeGenTests_CArrayInput6_f2_exp1(temp_1_a), 4, JMI_TRUE, JMI_FALSE)) {
     
    46754662        jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    46764663        jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((JMI_MAX_EQUATION(floor(6.0 - (i_v + 5.0)) + 1.0, 0.0)) - (1));
    4677         for (i1_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    4678             jmi_array_ref_1(temp_2_a, i1_1i) = i_v + 5 + (i1_1i - 1);
     4664        for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     4665            jmi_array_ref_1(temp_2_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = i_v + 5 + (jmi_array_val_1(_for_loop_variables_r1, 1) - 1);
    46794666        }
    46804667        out_v = func_CCodeGenTests_CArrayInput6_f2_exp1(temp_2_a);
     
    46864673        jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    46874674        jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((JMI_MAX_EQUATION(floor(8.0 - (i_v + 7.0)) + 1.0, 0.0)) - (1));
    4688         for (i1_2i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_2i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    4689             jmi_array_ref_1(temp_3_a, i1_2i) = i_v + 7 + (i1_2i - 1);
     4675        for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     4676            jmi_array_ref_1(temp_3_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = i_v + 7 + (jmi_array_val_1(_for_loop_variables_r1, 1) - 1);
    46904677        }
    46914678        out_v = func_CCodeGenTests_CArrayInput6_f2_exp1(temp_3_a);
     
    47064693    JMI_DEF(REA, out_v)
    47074694    JMI_DEF(REA, temp_1_v)
    4708     jmi_real_t i1_3i;
     4695    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    47094696    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    47104697    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    47124699    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    47134700    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    4714     for (i1_3i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_3i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    4715         temp_1_v = temp_1_v + jmi_array_val_1(inp_a, i1_3i);
     4701    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     4702        temp_1_v = temp_1_v + jmi_array_val_1(inp_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    47164703    }
    47174704    out_v = temp_1_v;
     
    47694756    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 3, 1)
    47704757    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_2_a, 3, 1)
    4771     jmi_real_t i1_0i;
    4772     jmi_real_t i1_1i;
    4773     jmi_real_t i1_2i;
     4758    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    47744759    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    47754760    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    47784763    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    47794764    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((3) - (1));
    4780     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    4781         jmi_array_ref_1(temp_1_a, i1_0i) = i1_0i;
     4765    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     4766        jmi_array_ref_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(_for_loop_variables_r1, 1);
    47824767    }
    47834768    while (COND_EXP_LT(func_CCodeGenTests_CArrayInput7_f2_exp1(temp_1_a), 2, JMI_TRUE, JMI_FALSE)) {
     
    47854770        jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    47864771        jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((3) - (1));
    4787         for (i1_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    4788             jmi_array_ref_1(temp_2_a, i1_1i) = 4 + (i1_1i - 1);
     4772        for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     4773            jmi_array_ref_1(temp_2_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = 4 + (jmi_array_val_1(_for_loop_variables_r1, 1) - 1);
    47894774        }
    47904775        out_v = func_CCodeGenTests_CArrayInput7_f2_exp1(temp_2_a);
     
    47924777        jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    47934778        jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((3) - (1));
    4794         for (i1_2i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_2i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    4795             jmi_array_ref_1(temp_1_a, i1_2i) = i1_2i;
     4779        for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     4780            jmi_array_ref_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(_for_loop_variables_r1, 1);
    47964781        }
    47974782    }
     
    48114796    JMI_DEF(REA, out_v)
    48124797    JMI_DEF(REA, temp_1_v)
    4813     jmi_real_t i1_3i;
     4798    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    48144799    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    48154800    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    48174802    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    48184803    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((3) - (1));
    4819     for (i1_3i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_3i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    4820         temp_1_v = temp_1_v + jmi_array_val_1(inp_a, i1_3i);
     4804    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     4805        temp_1_v = temp_1_v + jmi_array_val_1(inp_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    48214806    }
    48224807    out_v = temp_1_v;
     
    48764861    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_3_a, 3, 1)
    48774862    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_4_a, 3, 1)
    4878     jmi_real_t i1_0i;
    4879     jmi_real_t i1_1i;
    4880     jmi_real_t i_2i;
    4881     jmi_real_t i1_3i;
    4882     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 2)
    4883     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 2)
     4863    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 2, 1)
     4864    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 2, 1)
     4865    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 2, 1)
    48844866    out_v = 1.0;
    48854867    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_1_a, 2, 1, 2)
     
    48874869    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    48884870    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((3) - (1));
    4889     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    4890         jmi_array_ref_1(temp_2_a, i1_0i) = i1_0i;
     4871    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     4872        jmi_array_ref_1(temp_2_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(_for_loop_variables_r1, 1);
    48914873    }
    48924874    jmi_array_ref_1(temp_1_a, 1) = func_CCodeGenTests_CArrayInput8_f2_exp1(temp_2_a);
     
    48944876    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    48954877    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((3) - (1));
    4896     for (i1_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    4897         jmi_array_ref_1(temp_3_a, i1_1i) = 4 + (i1_1i - 1);
     4878    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     4879        jmi_array_ref_1(temp_3_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = 4 + (jmi_array_val_1(_for_loop_variables_r1, 1) - 1);
    48984880    }
    48994881    jmi_array_ref_1(temp_1_a, 2) = func_CCodeGenTests_CArrayInput8_f2_exp1(temp_3_a);
    49004882    for (jmi_array_ref_1(_for_loop_variables_i1, 1) = 0; jmi_array_val_1(_for_loop_variables_i1, 1) < jmi_array_size(temp_1_a, 0); (jmi_array_ref_1(_for_loop_variables_i1, 1))++) {
    4901         i_2i = jmi_array_val_1(temp_1_a, jmi_array_val_1(_for_loop_variables_i1, 1));
     4883        jmi_array_ref_1(_for_loop_variables_r1, 1) = jmi_array_val_1(temp_1_a, jmi_array_val_1(_for_loop_variables_i1, 1));
    49024884        JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_4_a, 3, 1, 3)
    49034885        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    49044886        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((3) - (1));
    4905         for (i1_3i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i1_3i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    4906             jmi_array_ref_1(temp_4_a, i1_3i) = 7 + (i1_3i - 1);
     4887        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     4888            jmi_array_ref_1(temp_4_a, jmi_array_val_1(_for_loop_variables_r1, 2)) = 7 + (jmi_array_val_1(_for_loop_variables_r1, 2) - 1);
    49074889        }
    49084890        out_v = func_CCodeGenTests_CArrayInput8_f2_exp1(temp_4_a);
     
    49234905    JMI_DEF(REA, out_v)
    49244906    JMI_DEF(REA, temp_1_v)
    4925     jmi_real_t i1_4i;
     4907    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    49264908    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    49274909    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    49294911    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    49304912    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((3) - (1));
    4931     for (i1_4i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_4i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    4932         temp_1_v = temp_1_v + jmi_array_val_1(inp_a, i1_4i);
     4913    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     4914        temp_1_v = temp_1_v + jmi_array_val_1(inp_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    49334915    }
    49344916    out_v = temp_1_v;
     
    49764958    JMI_ARR(STACK, jmi_real_t, jmi_array_t, o_an, 2, 1)
    49774959    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 2, 1)
    4978     jmi_real_t i1_0i;
     4960    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    49794961    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    49804962    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    49884970    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    49894971    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    4990     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    4991         jmi_array_ref_1(o_a, i1_0i) = jmi_array_val_1(temp_1_a, i1_0i);
     4972    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     4973        jmi_array_ref_1(o_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    49924974    }
    49934975    JMI_DYNAMIC_FREE()
     
    50355017    JMI_ARR(STACK, jmi_real_t, jmi_array_t, o_an, 2, 1)
    50365018    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 2, 1)
    5037     jmi_real_t i1_0i;
     5019    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    50385020    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    50395021    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    50475029    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    50485030    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    5049     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    5050         jmi_array_ref_1(o_a, i1_0i) = jmi_array_val_1(temp_1_a, i1_0i);
     5031    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5032        jmi_array_ref_1(o_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    50515033    }
    50525034    JMI_DYNAMIC_FREE()
     
    51065088    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_3_a, 2, 1)
    51075089    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_4_a, 2, 1)
    5108     jmi_real_t i1_0i;
     5090    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    51095091    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    51105092    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    51185100    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    51195101    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    5120     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    5121         temp_2_v = temp_2_v + jmi_array_val_1(temp_3_a, i1_0i) * jmi_array_val_1(temp_4_a, i1_0i);
     5102    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5103        temp_2_v = temp_2_v + jmi_array_val_1(temp_3_a, jmi_array_val_1(_for_loop_variables_r1, 1)) * jmi_array_val_1(temp_4_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    51225104    }
    51235105    temp_1_v = temp_2_v;
     
    51385120    JMI_ARR(STACK, jmi_real_t, jmi_array_t, o_an, 2, 1)
    51395121    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 2, 1)
    5140     jmi_real_t i1_1i;
     5122    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    51415123    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    51425124    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    51505132    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    51515133    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    5152     for (i1_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    5153         jmi_array_ref_1(o_a, i1_1i) = jmi_array_val_1(temp_1_a, i1_1i);
     5134    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5135        jmi_array_ref_1(o_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    51545136    }
    51555137    JMI_DYNAMIC_FREE()
     
    52225204    JMI_DEF(REA, o2_v)
    52235205    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 2, 1)
    5224     jmi_real_t i1_0i;
     5206    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    52255207    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    52265208    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    52345216    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    52355217    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    5236     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    5237         jmi_array_ref_1(o1_a, i1_0i) = jmi_array_val_1(temp_1_a, i1_0i);
     5218    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5219        jmi_array_ref_1(o1_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    52385220    }
    52395221    o2_v = 3;
     
    53095291    JMI_ARR(STACK, jmi_real_t, jmi_array_t, o1_an, 2, 1)
    53105292    JMI_DEF(REA, o2_v)
    5311     jmi_real_t i1_0i;
     5293    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    53125294    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    53135295    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    53185300    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    53195301    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    5320     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    5321         jmi_array_ref_1(o1_a, i1_0i) = jmi_array_val_1(i_a, i1_0i);
     5302    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5303        jmi_array_ref_1(o1_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(i_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    53225304    }
    53235305    o2_v = 3;
     
    53795361    JMI_DYNAMIC_INIT()
    53805362    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, o_an, -1, 1)
    5381     jmi_real_t i1_0i;
     5363    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    53825364    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    53835365    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    53885370    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    53895371    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(a_a, 0)) - (1));
    5390     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    5391         jmi_array_ref_1(o_a, i1_0i) = jmi_array_val_1(a_a, i1_0i) + jmi_array_val_1(b_a, i1_0i);
     5372    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5373        jmi_array_ref_1(o_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(a_a, jmi_array_val_1(_for_loop_variables_r1, 1)) + jmi_array_val_1(b_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    53925374    }
    53935375    JMI_DYNAMIC_FREE()
     
    54255407    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_4_a, 2, 1)
    54265408    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_5_a, 2, 1)
    5427     jmi_real_t i3_0i;
    5428     jmi_real_t i3_1i;
    5429     jmi_real_t i1_2i;
    5430     jmi_real_t i2_3i;
    5431     jmi_real_t i3_4i;
    5432     jmi_real_t i1_5i;
    5433     jmi_real_t i2_6i;
    5434     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 3)
    5435     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 3)
     5409    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 3, 1)
     5410    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 3, 1)
     5411    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 3, 1)
    54365412    if (y_a == NULL) {
    54375413        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)
     
    54455421    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    54465422    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    5447     for (i3_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i3_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    5448         jmi_array_ref_2(temp_3_a, 1, i3_0i) = jmi_array_val_1(temp_4_a, i3_0i);
     5423    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5424        jmi_array_ref_2(temp_3_a, 1, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(temp_4_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    54495425    }
    54505426    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_5_a, 2, 1, 2)
     
    54535429    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    54545430    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    5455     for (i3_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i3_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    5456         jmi_array_ref_2(temp_3_a, 2, i3_1i) = jmi_array_val_1(temp_5_a, i3_1i);
     5431    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5432        jmi_array_ref_2(temp_3_a, 2, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(temp_5_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    54575433    }
    54585434    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    54595435    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(x_a, 0)) - (1));
    5460     for (i1_2i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_2i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5436    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    54615437        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    54625438        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((2) - (1));
    5463         for (i2_3i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i2_3i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     5439        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    54645440            temp_2_v = 0.0;
    54655441            jmi_array_ref_1(_for_loop_variables_i2, 3) = 0;
    54665442            jmi_array_ref_1(_for_loop_variables_i1, 3) = floor((2) - (1));
    5467             for (i3_4i = 1; jmi_array_val_1(_for_loop_variables_i2, 3) <= jmi_array_val_1(_for_loop_variables_i1, 3); i3_4i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 3)))) {
    5468                 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);
     5443            for (jmi_array_ref_1(_for_loop_variables_r1, 3) = 1; jmi_array_val_1(_for_loop_variables_i2, 3) <= jmi_array_val_1(_for_loop_variables_i1, 3); jmi_array_ref_1(_for_loop_variables_r1, 3) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 3)))) {
     5444                temp_2_v = temp_2_v + jmi_array_val_2(x_a, jmi_array_val_1(_for_loop_variables_r1, 3), jmi_array_val_1(_for_loop_variables_r1, 3)) * jmi_array_val_2(temp_3_a, jmi_array_val_1(_for_loop_variables_r1, 3), jmi_array_val_1(_for_loop_variables_r1, 3));
    54695445            }
    5470             jmi_array_ref_2(temp_1_a, i1_2i, i2_3i) = temp_2_v;
     5446            jmi_array_ref_2(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 3), jmi_array_val_1(_for_loop_variables_r1, 3)) = temp_2_v;
    54715447        }
    54725448    }
    54735449    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    54745450    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(x_a, 0)) - (1));
    5475     for (i1_5i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_5i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5451    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    54765452        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    54775453        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((2) - (1));
    5478         for (i2_6i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i2_6i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    5479             jmi_array_ref_2(y_a, i1_5i, i2_6i) = jmi_array_val_2(temp_1_a, i1_5i, i2_6i);
     5454        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     5455            jmi_array_ref_2(y_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2)) = jmi_array_val_2(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2));
    54805456        }
    54815457    }
     
    55435519    JMI_DEF(REA, y3_v)
    55445520    JMI_DEF(REA, temp_1_v)
    5545     jmi_real_t i1_0i;
     5521    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    55465522    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    55475523    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    55495525    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    55505526    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(x3_a, 0)) - (1));
    5551     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    5552         temp_1_v = temp_1_v + jmi_array_val_1(x3_a, i1_0i);
     5527    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5528        temp_1_v = temp_1_v + jmi_array_val_1(x3_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    55535529    }
    55545530    y3_v = temp_1_v;
     
    55675543    JMI_DYNAMIC_INIT()
    55685544    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, y2_an, -1, 1)
    5569     jmi_real_t i1_1i;
     5545    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    55705546    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    55715547    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    55765552    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    55775553    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(x2_a, 0)) - (1));
    5578     for (i1_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    5579         jmi_array_ref_1(y2_a, i1_1i) = jmi_array_val_1(x2_a, i1_1i);
     5554    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5555        jmi_array_ref_1(y2_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(x2_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    55805556    }
    55815557    JMI_DYNAMIC_FREE()
     
    56245600    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_3_a, -1, 1)
    56255601    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_4_a, -1, 1)
    5626     jmi_real_t i1_0i;
    5627     jmi_real_t i1_1i;
    5628     jmi_real_t i1_2i;
     5602    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    56295603    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    56305604    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    56445618    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    56455619    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((3) - (1));
    5646     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    5647         jmi_array_ref_1(o_a, jmi_array_ref_1(temp_1_a, i1_0i)) = jmi_array_val_1(temp_2_a, i1_0i);
     5620    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5621        jmi_array_ref_1(o_a, jmi_array_ref_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1))) = jmi_array_val_1(temp_2_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    56485622    }
    56495623    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))
    56505624    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    56515625    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(i_a, 0)) - (1));
    5652     for (i1_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    5653         jmi_array_ref_1(temp_3_a, i1_1i) = jmi_array_val_1(o_a, jmi_array_val_1(i_a, i1_1i));
     5626    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5627        jmi_array_ref_1(temp_3_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(o_a, jmi_array_val_1(i_a, jmi_array_val_1(_for_loop_variables_r1, 1)));
    56545628    }
    56555629    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))
     
    56575631    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    56585632    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(i_a, 0)) - (1));
    5659     for (i1_2i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_2i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    5660         jmi_array_ref_1(o_a, jmi_array_ref_1(i_a, i1_2i)) = jmi_array_val_1(temp_4_a, i1_2i);
     5633    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5634        jmi_array_ref_1(o_a, jmi_array_ref_1(i_a, jmi_array_val_1(_for_loop_variables_r1, 1))) = jmi_array_val_1(temp_4_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    56615635    }
    56625636    JMI_RET(GEN, dummy_o, dummy_v)
     
    56695643    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, o_an, -1, 1)
    56705644    JMI_DEF(REA, dummy_v)
    5671     jmi_real_t i1_3i;
     5645    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    56725646    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    56735647    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    56795653    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    56805654    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(i_a, 0)) - (1));
    5681     for (i1_3i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_3i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    5682         jmi_array_ref_1(o_a, i1_3i) = jmi_array_val_1(i_a, i1_3i);
     5655    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5656        jmi_array_ref_1(o_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(i_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    56835657    }
    56845658    JMI_RET(GEN, dummy_o, dummy_v)
     
    57155689    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_1_a, -1, 2)
    57165690    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_2_a, -1, 2)
    5717     jmi_real_t i5_0i;
    5718     jmi_real_t i6_1i;
    5719     jmi_real_t i3_2i;
    5720     jmi_real_t i4_3i;
    5721     jmi_real_t i3_4i;
    5722     jmi_real_t i4_5i;
    5723     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 2)
    5724     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 2)
     5691    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 2, 1)
     5692    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 2, 1)
     5693    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 2, 1)
    57255694    if (y_a == NULL) {
    57265695        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))
     
    57315700    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    57325701    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(i1_a, 0)) - (1));
    5733     for (i5_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i5_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5702    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    57345703        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    57355704        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((jmi_array_size(i2_a, 0)) - (1));
    5736         for (i6_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i6_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    5737             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));
     5705        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     5706            jmi_array_ref_2(temp_2_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2)) = jmi_array_val_2(x_a, jmi_array_val_1(i1_a, jmi_array_val_1(_for_loop_variables_r1, 2)), jmi_array_val_1(i2_a, jmi_array_val_1(_for_loop_variables_r1, 2)));
    57385707        }
    57395708    }
    57405709    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    57415710    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(i1_a, 0)) - (1));
    5742     for (i3_2i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i3_2i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5711    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    57435712        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    57445713        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((jmi_array_size(i2_a, 0)) - (1));
    5745         for (i4_3i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i4_3i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    5746             jmi_array_ref_2(temp_1_a, i3_2i, i4_3i) = jmi_array_val_2(temp_2_a, i3_2i, i4_3i);
     5714        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     5715            jmi_array_ref_2(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2)) = jmi_array_val_2(temp_2_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2));
    57475716        }
    57485717    }
    57495718    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    57505719    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(i1_a, 0)) - (1));
    5751     for (i3_4i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i3_4i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5720    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    57525721        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    57535722        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((jmi_array_size(i1_a, 0)) - (1));
    5754         for (i4_5i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i4_5i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    5755             jmi_array_ref_2(y_a, i3_4i, i4_5i) = jmi_array_val_2(temp_1_a, i4_5i, i3_4i);
     5723        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     5724            jmi_array_ref_2(y_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2)) = jmi_array_val_2(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2));
    57565725        }
    57575726    }
     
    57885757    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_1_a, -1, 2)
    57895758    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_2_a, -1, 2)
    5790     jmi_real_t i5_0i;
    5791     jmi_real_t i6_1i;
    5792     jmi_real_t i3_2i;
    5793     jmi_real_t i4_3i;
    5794     jmi_real_t i3_4i;
    5795     jmi_real_t i4_5i;
    5796     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 2)
    5797     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 2)
     5759    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 2, 1)
     5760    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 2, 1)
     5761    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 2, 1)
    57985762    if (y_a == NULL) {
    57995763        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))
     
    58045768    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    58055769    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(i1_a, 0)) - (1));
    5806     for (i5_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i5_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5770    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    58075771        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    58085772        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((jmi_array_size(i2_a, 0)) - (1));
    5809         for (i6_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i6_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    5810             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));
     5773        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     5774            jmi_array_ref_2(temp_2_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2)) = jmi_array_val_2(x_a, jmi_array_val_1(i1_a, jmi_array_val_1(_for_loop_variables_r1, 2)), jmi_array_val_1(i2_a, jmi_array_val_1(_for_loop_variables_r1, 2)));
    58115775        }
    58125776    }
    58135777    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    58145778    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(i1_a, 0)) - (1));
    5815     for (i3_2i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i3_2i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5779    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    58165780        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    58175781        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((jmi_array_size(i2_a, 0)) - (1));
    5818         for (i4_3i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i4_3i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    5819             jmi_array_ref_2(temp_1_a, i3_2i, i4_3i) = jmi_array_val_2(temp_2_a, i3_2i, i4_3i);
     5782        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     5783            jmi_array_ref_2(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2)) = jmi_array_val_2(temp_2_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2));
    58205784        }
    58215785    }
    58225786    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    58235787    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(i1_a, 0) * 2 - 2) - (1));
    5824     for (i3_4i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i3_4i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5788    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    58255789        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    58265790        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((jmi_array_size(i1_a, 0)) - (1));
    5827         for (i4_5i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i4_5i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    5828             jmi_array_ref_2(y_a, i3_4i, i4_5i) = jmi_array_val_2(temp_1_a, i4_5i, i3_4i);
     5791        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     5792            jmi_array_ref_2(y_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2)) = jmi_array_val_2(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2));
    58295793        }
    58305794    }
     
    58725836    JMI_ARR(STACK, R2_0_r, R2_0_ra, temp_2_a, 1, 1)
    58735837    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_3_a, 1, 1)
    5874     jmi_real_t i_0i;
    5875     jmi_real_t i1_1i;
    5876     jmi_real_t i2_2i;
    5877     jmi_real_t i2_3i;
    5878     jmi_real_t i3_4i;
    5879     jmi_real_t i1_5i;
    5880     jmi_real_t i2_6i;
    5881     jmi_real_t i3_7i;
    5882     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 4)
    5883     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 4)
     5838    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 4, 1)
     5839    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 4, 1)
     5840    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 4, 1)
    58845841    if (o_a == NULL) {
    58855842        JMI_ARRAY_INIT_2(HEAP, R1_1_r, R1_1_ra, o_an, m_v * m_v, 2, m_v, m_v)
     
    58965853    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    58975854    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((m_v) - (1));
    5898     for (i_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5855    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    58995856        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))
    59005857        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    59015858        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((JMI_MAX_EQUATION(m_v, 0.0)) - (1));
    5902         for (i1_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i1_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     5859        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    59035860            JMI_ARRAY_INIT_1(STACK, R2_0_r, R2_0_ra, temp_2_a, 1, 1, 1)
    59045861            JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, temp_3_a, 1, 1, 1)
    5905             jmi_array_ref_1(temp_3_a, 1) = i_0i * i1_1i;
     5862            jmi_array_ref_1(temp_3_a, 1) = jmi_array_val_1(_for_loop_variables_r1, 2) * jmi_array_val_1(_for_loop_variables_r1, 2);
    59065863            JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, jmi_array_rec_1(temp_2_a, 1)->y, 1, 1, 1)
    59075864            jmi_array_ref_1(_for_loop_variables_i2, 3) = 0;
    59085865            jmi_array_ref_1(_for_loop_variables_i1, 3) = floor((1) - (1));
    5909             for (i2_2i = 1; jmi_array_val_1(_for_loop_variables_i2, 3) <= jmi_array_val_1(_for_loop_variables_i1, 3); i2_2i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 3)))) {
    5910                 jmi_array_ref_1(jmi_array_rec_1(temp_2_a, 1)->y, i2_2i) = jmi_array_val_1(temp_3_a, i2_2i);
     5866            for (jmi_array_ref_1(_for_loop_variables_r1, 3) = 1; jmi_array_val_1(_for_loop_variables_i2, 3) <= jmi_array_val_1(_for_loop_variables_i1, 3); jmi_array_ref_1(_for_loop_variables_r1, 3) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 3)))) {
     5867                jmi_array_ref_1(jmi_array_rec_1(temp_2_a, 1)->y, jmi_array_val_1(_for_loop_variables_r1, 3)) = jmi_array_val_1(temp_3_a, jmi_array_val_1(_for_loop_variables_r1, 3));
    59115868            }
    5912             JMI_ARRAY_INIT_1(HEAP, R2_0_r, R2_0_ra, jmi_array_rec_1(temp_1_a, i1_1i)->x, 1, 1, 1)
     5869            JMI_ARRAY_INIT_1(HEAP, R2_0_r, R2_0_ra, jmi_array_rec_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 2))->x, 1, 1, 1)
    59135870            jmi_array_ref_1(_for_loop_variables_i2, 3) = 0;
    59145871            jmi_array_ref_1(_for_loop_variables_i1, 3) = floor((1) - (1));
    5915             for (i2_3i = 1; jmi_array_val_1(_for_loop_variables_i2, 3) <= jmi_array_val_1(_for_loop_variables_i1, 3); i2_3i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 3)))) {
    5916                 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)
     5872            for (jmi_array_ref_1(_for_loop_variables_r1, 3) = 1; jmi_array_val_1(_for_loop_variables_i2, 3) <= jmi_array_val_1(_for_loop_variables_i1, 3); jmi_array_ref_1(_for_loop_variables_r1, 3) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 3)))) {
     5873                JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, jmi_array_rec_1(jmi_array_rec_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 2))->x, jmi_array_val_1(_for_loop_variables_r1, 3))->y, 1, 1, 1)
    59175874                jmi_array_ref_1(_for_loop_variables_i2, 4) = 0;
    59185875                jmi_array_ref_1(_for_loop_variables_i1, 4) = floor((1) - (1));
    5919                 for (i3_4i = 1; jmi_array_val_1(_for_loop_variables_i2, 4) <= jmi_array_val_1(_for_loop_variables_i1, 4); i3_4i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 4)))) {
    5920                     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);
     5876                for (jmi_array_ref_1(_for_loop_variables_r1, 4) = 1; jmi_array_val_1(_for_loop_variables_i2, 4) <= jmi_array_val_1(_for_loop_variables_i1, 4); jmi_array_ref_1(_for_loop_variables_r1, 4) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 4)))) {
     5877                    jmi_array_ref_1(jmi_array_rec_1(jmi_array_rec_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 2))->x, jmi_array_val_1(_for_loop_variables_r1, 3))->y, jmi_array_val_1(_for_loop_variables_r1, 4)) = jmi_array_val_1(jmi_array_rec_1(temp_2_a, jmi_array_val_1(_for_loop_variables_r1, 3))->y, jmi_array_val_1(_for_loop_variables_r1, 4));
    59215878                }
    59225879            }
     
    59245881        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    59255882        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((m_v) - (1));
    5926         for (i1_5i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i1_5i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     5883        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    59275884            jmi_array_ref_1(_for_loop_variables_i2, 3) = 0;
    59285885            jmi_array_ref_1(_for_loop_variables_i1, 3) = floor((1) - (1));
    5929             for (i2_6i = 1; jmi_array_val_1(_for_loop_variables_i2, 3) <= jmi_array_val_1(_for_loop_variables_i1, 3); i2_6i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 3)))) {
     5886            for (jmi_array_ref_1(_for_loop_variables_r1, 3) = 1; jmi_array_val_1(_for_loop_variables_i2, 3) <= jmi_array_val_1(_for_loop_variables_i1, 3); jmi_array_ref_1(_for_loop_variables_r1, 3) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 3)))) {
    59305887                jmi_array_ref_1(_for_loop_variables_i2, 4) = 0;
    59315888                jmi_array_ref_1(_for_loop_variables_i1, 4) = floor((1) - (1));
    5932                 for (i3_7i = 1; jmi_array_val_1(_for_loop_variables_i2, 4) <= jmi_array_val_1(_for_loop_variables_i1, 4); i3_7i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 4)))) {
    5933                     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);
     5889                for (jmi_array_ref_1(_for_loop_variables_r1, 4) = 1; jmi_array_val_1(_for_loop_variables_i2, 4) <= jmi_array_val_1(_for_loop_variables_i1, 4); jmi_array_ref_1(_for_loop_variables_r1, 4) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 4)))) {
     5890                    jmi_array_ref_1(jmi_array_rec_1(jmi_array_rec_2(o_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 4))->x, jmi_array_val_1(_for_loop_variables_r1, 4))->y, jmi_array_val_1(_for_loop_variables_r1, 4)) = jmi_array_val_1(jmi_array_rec_1(jmi_array_rec_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 4))->x, jmi_array_val_1(_for_loop_variables_r1, 4))->y, jmi_array_val_1(_for_loop_variables_r1, 4));
    59345891                }
    59355892            }
     
    59705927    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, u_an, -1, 1)
    59715928    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_1_a, -1, 1)
    5972     jmi_real_t i1_0i;
    5973     jmi_real_t i1_1i;
     5929    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    59745930    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    59755931    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    59815937    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    59825938    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(a_a, 0)) - (1));
    5983     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    5984         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);
     5939    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5940        jmi_array_ref_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(a_a, jmi_array_val_1(_for_loop_variables_r1, 1)) + jmi_array_val_1(b_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    59855941    }
    59865942    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    59875943    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(a_a, 0)) - (1));
    5988     for (i1_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    5989         jmi_array_ref_1(u_a, i1_1i) = jmi_array_val_1(a_a, i1_1i) * func_CCodeGenTests_CUnknownArray8_l_exp1(temp_1_a);
     5944    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5945        jmi_array_ref_1(u_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(a_a, jmi_array_val_1(_for_loop_variables_r1, 1)) * func_CCodeGenTests_CUnknownArray8_l_exp1(temp_1_a);
    59905946    }
    59915947    JMI_DYNAMIC_FREE()
     
    59975953    JMI_DEF(REA, y_v)
    59985954    JMI_DEF(REA, temp_1_v)
    5999     jmi_real_t i1_2i;
     5955    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    60005956    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    60015957    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    60035959    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    60045960    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(x_a, 0)) - (1));
    6005     for (i1_2i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_2i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    6006         temp_1_v = temp_1_v + jmi_array_val_1(x_a, i1_2i);
     5961    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     5962        temp_1_v = temp_1_v + jmi_array_val_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    60075963    }
    60085964    y_v = temp_1_v;
     
    60425998    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, ab_an, -1, 1)
    60435999    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, ba_an, -1, 1)
    6044     jmi_real_t i1_0i;
    6045     jmi_real_t i1_1i;
     6000    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    60466001    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    60476002    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    60566011    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    60576012    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((n_v) - (1));
    6058     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    6059         jmi_array_ref_1(ba_a, i1_0i) = 1;
     6013    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     6014        jmi_array_ref_1(ba_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = 1;
    60606015    }
    60616016    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    60626017    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(ba_a, 0)) - (1));
    6063     for (i1_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    6064         jmi_array_ref_1(ab_a, i1_1i) = jmi_array_val_1(ba_a, i1_1i);
     6018    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     6019        jmi_array_ref_1(ab_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(ba_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    60656020    }
    60666021    JMI_DYNAMIC_FREE()
     
    61426097    JMI_ARR(STACK, jmi_real_t, jmi_array_t, tmp_1, 2, 1)
    61436098    JMI_DEF(REA, x_v)
    6144     jmi_real_t i1_0i;
    61456099    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, tmp_1, 2, 1, 2)
    61466100    r_v->x = tmp_1;
     6101    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    61476102    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    61486103    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
    61496104    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    61506105    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    6151     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    6152         jmi_array_ref_1(r_v->x, i1_0i) = i1_0i;
     6106    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     6107        jmi_array_ref_1(r_v->x, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(_for_loop_variables_r1, 1);
    61536108    }
    61546109    x_v = jmi_array_val_1(r_v->x, 1);
     
    61926147    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, y_an, -1, 1)
    61936148    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_1_a, -1, 1)
    6194     jmi_real_t i_0i;
    6195     jmi_real_t i1_1i;
    6196     jmi_real_t i1_2i;
    6197     jmi_real_t i1_3i;
    6198     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 2)
    6199     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 2)
     6149    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 2, 1)
     6150    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 2, 1)
     6151    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 2, 1)
    62006152    if (y_a == NULL) {
    62016153        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)
     
    62046156    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    62056157    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(x_a, 0)) - (1));
    6206     for (i_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    6207         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))
     6158    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     6159        JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, temp_1_a, (jmi_array_size(x_a, 0) + JMI_MAX_EQUATION(jmi_array_val_1(_for_loop_variables_r1, 1), 0.0)), 1, jmi_array_size(x_a, 0) + JMI_MAX_EQUATION(jmi_array_val_1(_for_loop_variables_r1, 1), 0.0))
    62086160        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    62096161        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((jmi_array_size(x_a, 0)) - (1));
    6210         for (i1_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i1_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    6211             jmi_array_ref_1(temp_1_a, i1_1i) = jmi_array_val_1(x_a, i1_1i);
     6162        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     6163            jmi_array_ref_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 2)) = jmi_array_val_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 2));
    62126164        }
    62136165        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    6214         jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((JMI_MAX_EQUATION(i_0i, 0.0)) - (1));
    6215         for (i1_2i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i1_2i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    6216             jmi_array_ref_1(temp_1_a, i1_2i + jmi_array_size(x_a, 0)) = i1_2i;
     6166        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((JMI_MAX_EQUATION(jmi_array_val_1(_for_loop_variables_r1, 1), 0.0)) - (1));
     6167        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     6168            jmi_array_ref_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 2) + jmi_array_size(x_a, 0)) = jmi_array_val_1(_for_loop_variables_r1, 2);
    62176169        }
    62186170        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    62196171        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((jmi_array_size(x_a, 0) * 2) - (1));
    6220         for (i1_3i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i1_3i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    6221             jmi_array_ref_1(y_a, i1_3i) = jmi_array_val_1(temp_1_a, i1_3i);
     6172        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     6173            jmi_array_ref_1(y_a, jmi_array_val_1(_for_loop_variables_r1, 2)) = jmi_array_val_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 2));
    62226174        }
    62236175    }
     
    65416493    JMI_ARR(STACK, jmi_real_t, jmi_array_t, tmp_1, 2, 1)
    65426494    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 2, 1)
    6543     jmi_real_t i1_0i;
    65446495    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, tmp_1, 2, 1, 2)
    65456496    x_v->a = tmp_1;
     6497    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    65466498    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    65476499    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    65516503    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    65526504    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    6553     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    6554         jmi_array_ref_1(x_v->a, i1_0i) = jmi_array_val_1(temp_1_a, i1_0i);
     6505    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     6506        jmi_array_ref_1(x_v->a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    65556507    }
    65566508    o_v = jmi_array_val_1(x_v->a, 1);
     
    66106562    JMI_ARR(STACK, B_0_r, B_0_ra, temp_3_a, 2, 1)
    66116563    JMI_ARR(STACK, B_0_r, B_0_ra, temp_4_a, 2, 1)
    6612     jmi_real_t i1_0i;
    6613     jmi_real_t i2_1i;
    6614     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 2)
    6615     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 2)
     6564    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 2, 1)
     6565    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 2, 1)
     6566    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 2, 1)
    66166567    JMI_ARRAY_INIT_1(STACK, A_1_r, A_1_ra, x_a, 3, 1, 3)
    66176568    JMI_ARRAY_INIT_1(STACK, B_0_r, B_0_ra, tmp_1, 2, 1, 2)
     
    66396590    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    66406591    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((3) - (1));
    6641     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    6642         jmi_array_rec_1(x_a, i1_0i)->a = jmi_array_rec_1(temp_1_a, i1_0i)->a;
     6592    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     6593        jmi_array_rec_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 1))->a = jmi_array_rec_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1))->a;
    66436594        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    66446595        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((2) - (1));
    6645         for (i2_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i2_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    6646             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;
     6596        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     6597            jmi_array_rec_1(jmi_array_rec_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 1))->b, jmi_array_val_1(_for_loop_variables_r1, 2))->c = jmi_array_rec_1(jmi_array_rec_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1))->b, jmi_array_val_1(_for_loop_variables_r1, 2))->c;
    66476598        }
    66486599    }
     
    68046755    JMI_ARR(STACK, jmi_real_t, jmi_array_t, tmp_1, 2, 1)
    68056756    JMI_ARR(STACK, jmi_real_t, jmi_array_t, temp_1_a, 2, 1)
    6806     jmi_real_t i1_0i;
    68076757    if (x_v == NULL) {
    68086758        JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, tmp_1, 2, 1, 2)
     
    68106760        x_v = x_vn;
    68116761    }
     6762    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    68126763    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    68136764    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    68176768    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    68186769    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    6819     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    6820         jmi_array_ref_1(x_v->a, i1_0i) = jmi_array_val_1(temp_1_a, i1_0i);
     6770    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     6771        jmi_array_ref_1(x_v->a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    68216772    }
    68226773    JMI_DYNAMIC_FREE()
     
    68796830    JMI_ARR(STACK, B_0_r, B_0_ra, temp_3_a, 2, 1)
    68806831    JMI_ARR(STACK, B_0_r, B_0_ra, temp_4_a, 2, 1)
    6881     jmi_real_t i1_0i;
    6882     jmi_real_t i2_1i;
    6883     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 2)
    6884     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 2)
     6832    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 2, 1)
     6833    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 2, 1)
     6834    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 2, 1)
    68856835    if (x_a == NULL) {
    68866836        JMI_ARRAY_INIT_1(STACK, A_1_r, A_1_ra, x_an, 3, 1, 3)
     
    69116861    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    69126862    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((3) - (1));
    6913     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    6914         jmi_array_rec_1(x_a, i1_0i)->a = jmi_array_rec_1(temp_1_a, i1_0i)->a;
     6863    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     6864        jmi_array_rec_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 1))->a = jmi_array_rec_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1))->a;
    69156865        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    69166866        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((2) - (1));
    6917         for (i2_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i2_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    6918             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;
     6867        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     6868            jmi_array_rec_1(jmi_array_rec_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 1))->b, jmi_array_val_1(_for_loop_variables_r1, 2))->c = jmi_array_rec_1(jmi_array_rec_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1))->b, jmi_array_val_1(_for_loop_variables_r1, 2))->c;
    69196869        }
    69206870    }
     
    71647114    JMI_DYNAMIC_INIT()
    71657115    JMI_DEF(REA, o_v)
    7166     jmi_real_t i1_0i;
     7116    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    71677117    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    71687118    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
    71697119    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    71707120    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((3) - (1));
    7171     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    7172         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) {
     7121    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     7122        if (COND_EXP_EQ(2.0, jmi_array_size(jmi_array_rec_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 1))->b, 0), JMI_TRUE, JMI_FALSE) == JMI_FALSE) {
    71737123            jmi_assert_failed(\"Mismatching sizes in function 'CCodeGenTests.CRecordDecl16.f', component 'x[i1].b', dimension '1'\", JMI_ASSERT_ERROR);
    71747124        }
     
    1380113751    JMI_DEF(INT, ldb_v)
    1380213752    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, ipiv_a, -1, 1)
    13803     jmi_real_t i1_0i;
    13804     jmi_real_t i1_1i;
    13805     jmi_real_t i2_2i;
    1380613753    JMI_DEF(INT_EXT, tmp_1)
    1380713754    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, tmp_2, -1, 2)
     
    1381113758    JMI_DEF(INT_EXT, tmp_6)
    1381213759    extern void dgesv_(int*, int*, double*, int*, int*, double*, int*, int*);
    13813     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 2)
    13814     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 2)
     13760    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 2, 1)
     13761    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 2, 1)
     13762    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 2, 1)
    1381513763    if (x_a == NULL) {
    1381613764        JMI_ARRAY_INIT_1(HEAP, jmi_real_t, jmi_array_t, x_an, jmi_array_size(A_a, 0), 1, jmi_array_size(A_a, 0))
     
    1381913767    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    1382013768    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(A_a, 0)) - (1));
    13821     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    13822         jmi_array_ref_1(x_a, i1_0i) = jmi_array_val_1(b_a, i1_0i);
     13769    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     13770        jmi_array_ref_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_1(b_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    1382313771    }
    1382413772    JMI_ARRAY_INIT_2(HEAP, jmi_real_t, jmi_array_t, Awork_a, jmi_array_size(A_a, 0) * jmi_array_size(A_a, 0), 2, jmi_array_size(A_a, 0), jmi_array_size(A_a, 0))
    1382513773    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    1382613774    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(A_a, 0)) - (1));
    13827     for (i1_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     13775    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    1382813776        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    1382913777        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((jmi_array_size(A_a, 0)) - (1));
    13830         for (i2_2i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i2_2i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    13831             jmi_array_ref_2(Awork_a, i1_1i, i2_2i) = jmi_array_val_2(A_a, i1_1i, i2_2i);
     13778        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     13779            jmi_array_ref_2(Awork_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2)) = jmi_array_val_2(A_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2));
    1383213780        }
    1383313781    }
     
    1389913847    JMI_DEF(INT, ldb_v)
    1390013848    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, ipiv_a, -1, 1)
    13901     jmi_real_t i1_0i;
    13902     jmi_real_t i2_1i;
    13903     jmi_real_t i1_2i;
    13904     jmi_real_t i2_3i;
    1390513849    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, tmp_1, -1, 2)
    1390613850    JMI_DEF(INT_EXT, tmp_2)
     
    1391013854    JMI_DEF(INT_EXT, tmp_6)
    1391113855    extern void dgesv_(int*, int*, double*, int*, int*, double*, int*, int*);
    13912     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 2)
    13913     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 2)
     13856    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 2, 1)
     13857    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 2, 1)
     13858    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 2, 1)
    1391413859    if (X_a == NULL) {
    1391513860        JMI_ARRAY_INIT_2(HEAP, jmi_real_t, jmi_array_t, X_an, jmi_array_size(A_a, 0) * jmi_array_size(B_a, 1), 2, jmi_array_size(A_a, 0), jmi_array_size(B_a, 1))
     
    1391813863    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    1391913864    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(A_a, 0)) - (1));
    13920     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     13865    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    1392113866        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    1392213867        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((jmi_array_size(B_a, 1)) - (1));
    13923         for (i2_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i2_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    13924             jmi_array_ref_2(X_a, i1_0i, i2_1i) = jmi_array_val_2(B_a, i1_0i, i2_1i);
     13868        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     13869            jmi_array_ref_2(X_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2)) = jmi_array_val_2(B_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2));
    1392513870        }
    1392613871    }
     
    1392813873    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    1392913874    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(A_a, 0)) - (1));
    13930     for (i1_2i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_2i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     13875    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    1393113876        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    1393213877        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((jmi_array_size(A_a, 0)) - (1));
    13933         for (i2_3i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i2_3i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    13934             jmi_array_ref_2(Awork_a, i1_2i, i2_3i) = jmi_array_val_2(A_a, i1_2i, i2_3i);
     13878        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     13879            jmi_array_ref_2(Awork_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2)) = jmi_array_val_2(A_a, jmi_array_val_1(_for_loop_variables_r1, 2), jmi_array_val_1(_for_loop_variables_r1, 2));
    1393513880        }
    1393613881    }
     
    1623816183    JMI_ARR(STACK, jmi_string_t, jmi_string_array_t, s_a, 2, 1)
    1623916184    JMI_ARR(STACK, jmi_string_t, jmi_string_array_t, temp_1_a, 2, 1)
    16240     jmi_real_t i1_0i;
    1624116185    JMI_ARR(STACK, jmi_string_t, jmi_string_array_t, tmp_1, 2, 1)
     16186    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    1624216187    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    1624316188    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    1624916194    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    1625016195    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((2) - (1));
    16251     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    16252         JMI_ASG(STR, jmi_array_ref_1(s_a, i1_0i), jmi_array_val_1(temp_1_a, i1_0i))
     16196    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     16197        JMI_ASG(STR, jmi_array_ref_1(s_a, jmi_array_val_1(_for_loop_variables_r1, 1)), jmi_array_val_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1)))
    1625316198    }
    1625416199    JMI_ARRAY_INIT_1(STACK, jmi_string_t, jmi_string_array_t, tmp_1, 2, 1, 2)
     
    1626816213    JMI_DYNAMIC_INIT()
    1626916214    JMI_ARR(HEAP, jmi_string_t, jmi_string_array_t, o_a, -1, 1)
    16270     jmi_real_t i1_1i;
     16215    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    1627116216    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    1627216217    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    1627416219    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    1627516220    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(s_a, 0)) - (1));
    16276     for (i1_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    16277         JMI_ASG(STR, jmi_array_ref_1(o_a, i1_1i), jmi_array_val_1(s_a, i1_1i))
     16221    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     16222        JMI_ASG(STR, jmi_array_ref_1(o_a, jmi_array_val_1(_for_loop_variables_r1, 1)), jmi_array_val_1(s_a, jmi_array_val_1(_for_loop_variables_r1, 1)))
    1627816223    }
    1627916224    JMI_RET(STR_ARR, o_o, o_a)
     
    1631916264    JMI_ARR(HEAP, jmi_string_t, jmi_string_array_t, s_a, -1, 1)
    1632016265    JMI_ARR(HEAP, jmi_string_t, jmi_string_array_t, temp_1_a, -1, 1)
    16321     jmi_real_t i1_0i;
    16322     jmi_real_t i1_1i;
    1632316266    JMI_ARR(HEAP, jmi_string_t, jmi_string_array_t, tmp_1, -1, 1)
     16267    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    1632416268    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    1632516269    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    1632916273    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    1633016274    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((JMI_MAX_EQUATION(n_v, 0.0)) - (1));
    16331     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    16332         JMI_ASG(STR, jmi_array_ref_1(temp_1_a, i1_0i), \"str\")
     16275    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     16276        JMI_ASG(STR, jmi_array_ref_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1)), \"str\")
    1633316277    }
    1633416278    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    1633516279    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((n_v) - (1));
    16336     for (i1_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    16337         JMI_ASG(STR, jmi_array_ref_1(s_a, i1_1i), jmi_array_val_1(temp_1_a, i1_1i))
     16280    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     16281        JMI_ASG(STR, jmi_array_ref_1(s_a, jmi_array_val_1(_for_loop_variables_r1, 1)), jmi_array_val_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 1)))
    1633816282    }
    1633916283    JMI_ARRAY_INIT_1(HEAP, jmi_string_t, jmi_string_array_t, tmp_1, n_v, 1, n_v)
     
    1635316297    JMI_DYNAMIC_INIT()
    1635416298    JMI_ARR(HEAP, jmi_string_t, jmi_string_array_t, o_a, -1, 1)
    16355     jmi_real_t i1_2i;
     16299    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    1635616300    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    1635716301    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    1635916303    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    1636016304    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(s_a, 0)) - (1));
    16361     for (i1_2i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_2i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    16362         JMI_ASG(STR, jmi_array_ref_1(o_a, i1_2i), jmi_array_val_1(s_a, i1_2i))
     16305    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     16306        JMI_ASG(STR, jmi_array_ref_1(o_a, jmi_array_val_1(_for_loop_variables_r1, 1)), jmi_array_val_1(s_a, jmi_array_val_1(_for_loop_variables_r1, 1)))
    1636316307    }
    1636416308    JMI_RET(STR_ARR, o_o, o_a)
     
    1812818072    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_3_a, -1, 1)
    1812918073    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, temp_4_a, -1, 1)
    18130     jmi_real_t i2_0i;
    18131     jmi_real_t i2_1i;
    18132     jmi_real_t i2_2i;
    18133     jmi_real_t i1_3i;
     18074    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    1813418075    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    1813518076    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    1813718078    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    1813818079    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(x_a, 0)) - (1));
    18139     for (i2_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i2_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    18140         jmi_array_ref_1(temp_2_a, i2_0i) = jmi_array_val_2(x_a, i2_0i, 1);
     18080    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     18081        jmi_array_ref_1(temp_2_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_2(x_a, jmi_array_val_1(_for_loop_variables_r1, 1), 1);
    1814118082    }
    1814218083    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))
    1814318084    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    1814418085    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(x_a, 0)) - (1));
    18145     for (i2_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i2_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    18146         jmi_array_ref_1(temp_3_a, i2_1i) = jmi_array_val_2(x_a, i2_1i, 1);
     18086    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     18087        jmi_array_ref_1(temp_3_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_2(x_a, jmi_array_val_1(_for_loop_variables_r1, 1), 1);
    1814718088    }
    1814818089    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))
    1814918090    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    1815018091    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(x_a, 0)) - (1));
    18151     for (i2_2i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i2_2i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    18152         jmi_array_ref_1(temp_3_a, i2_2i) = jmi_array_val_2(x_a, i2_2i, 1);
     18092    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     18093        jmi_array_ref_1(temp_3_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = jmi_array_val_2(x_a, jmi_array_val_1(_for_loop_variables_r1, 1), 1);
    1815318094    }
    1815418095    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))
     
    1815718098    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    1815818099    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((func_CCodeGenTests_FuncInitOrder_g_exp2(temp_3_a)) - (1));
    18159     for (i1_3i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_3i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    18160         temp_1_v = temp_1_v + jmi_array_val_1(temp_4_a, i1_3i);
     18100    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     18101        temp_1_v = temp_1_v + jmi_array_val_1(temp_4_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    1816118102    }
    1816218103    y_v = temp_1_v;
     
    1817518116    JMI_DYNAMIC_INIT()
    1817618117    JMI_ARR(HEAP, jmi_real_t, jmi_array_t, y_an, -1, 1)
    18177     jmi_real_t i1_4i;
     18118    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    1817818119    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    1817918120    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    1818718128    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    1818818129    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((func_CCodeGenTests_FuncInitOrder_g_exp2(x_a)) - (1));
    18189     for (i1_4i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_4i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    18190         jmi_array_ref_1(y_a, i1_4i) = 0;
     18130    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     18131        jmi_array_ref_1(y_a, jmi_array_val_1(_for_loop_variables_r1, 1)) = 0;
    1819118132    }
    1819218133    JMI_DYNAMIC_FREE()
     
    1819818139    JMI_DEF(INT, y_v)
    1819918140    JMI_DEF(REA, temp_1_v)
    18200     jmi_real_t i1_5i;
     18141    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    1820118142    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    1820218143    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    1820418145    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    1820518146    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(x_a, 0)) - (1));
    18206     for (i1_5i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_5i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    18207         temp_1_v = temp_1_v + jmi_array_val_1(x_a, i1_5i);
     18147    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     18148        temp_1_v = temp_1_v + jmi_array_val_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 1));
    1820818149    }
    1820918150    y_v = floor(temp_1_v);
  • branches/dev-cw-2719/Compiler/ModelicaMiddleEnd/test/modelica/Differentiation.mo

    r14175 r14199  
    31113111    JMI_DYNAMIC_INIT()
    31123112    JMI_ARR(STACK, R_0_r, R_0_ra, y_an, 1, 1)
    3113     jmi_real_t i1_0i;
     3113    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    31143114    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    31153115    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    31203120    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    31213121    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((1) - (1));
    3122     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    3123         jmi_array_rec_1(y_a, i1_0i)->x = jmi_array_rec_1(x_a, i1_0i)->x;
     3122    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     3123        jmi_array_rec_1(y_a, jmi_array_val_1(_for_loop_variables_r1, 1))->x = jmi_array_rec_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 1))->x;
    31243124    }
    31253125    JMI_DYNAMIC_FREE()
     
    31313131    JMI_ARR(STACK, R_0_r, R_0_ra, _der_y_an, 1, 1)
    31323132    JMI_ARR(STACK, R_0_r, R_0_ra, y_a, 1, 1)
    3133     jmi_real_t i1_1i;
     3133    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 1, 1)
    31343134    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 1)
    31353135    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 1)
     
    31413141    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    31423142    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((1) - (1));
    3143     for (i1_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    3144         jmi_array_rec_1(_der_y_a, i1_1i)->x = jmi_array_rec_1(_der_x_a, i1_1i)->x;
    3145         jmi_array_rec_1(y_a, i1_1i)->x = jmi_array_rec_1(x_a, i1_1i)->x;
     3143    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     3144        jmi_array_rec_1(_der_y_a, jmi_array_val_1(_for_loop_variables_r1, 1))->x = jmi_array_rec_1(_der_x_a, jmi_array_val_1(_for_loop_variables_r1, 1))->x;
     3145        jmi_array_rec_1(y_a, jmi_array_val_1(_for_loop_variables_r1, 1))->x = jmi_array_rec_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 1))->x;
    31463146    }
    31473147    JMI_DYNAMIC_FREE()
     
    31913191    JMI_DEF(REA, y_v)
    31923192    JMI_ARR(STACK, R_0_r, R_0_ra, temp_1_a, 1, 1)
    3193     jmi_real_t i1_0i;
    3194     jmi_real_t i2_1i;
    3195     jmi_real_t i1_2i;
    3196     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 2)
    3197     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 2)
     3193    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 2, 1)
     3194    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 2, 1)
     3195    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 2, 1)
    31983196    JMI_ARRAY_INIT_1(STACK, R_0_r, R_0_ra, rt_a, 1, 1, 1)
    31993197    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, tmp_1, 1, 1, 1)
     
    32033201    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    32043202    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((1) - (1));
    3205     for (i1_0i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_0i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     3203    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    32063204        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    32073205        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((1) - (1));
    3208         for (i2_1i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i2_1i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    3209             jmi_array_ref_1(jmi_array_rec_1(rt_a, i1_0i)->x, i2_1i) = jmi_array_val_1(jmi_array_rec_1(temp_1_a, i1_0i)->x, i2_1i);
     3206        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     3207            jmi_array_ref_1(jmi_array_rec_1(rt_a, jmi_array_val_1(_for_loop_variables_r1, 2))->x, jmi_array_val_1(_for_loop_variables_r1, 2)) = jmi_array_val_1(jmi_array_rec_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 2))->x, jmi_array_val_1(_for_loop_variables_r1, 2));
    32103208        }
    32113209    }
     
    32133211    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    32143212    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(r_a, 0)) - (1));
    3215     for (i1_2i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_2i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    3216         if (COND_EXP_EQ(1.0, jmi_array_size(jmi_array_rec_1(r_a, i1_2i)->x, 0), JMI_TRUE, JMI_FALSE) == JMI_FALSE) {
     3213    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     3214        if (COND_EXP_EQ(1.0, jmi_array_size(jmi_array_rec_1(r_a, jmi_array_val_1(_for_loop_variables_r1, 1))->x, 0), JMI_TRUE, JMI_FALSE) == JMI_FALSE) {
    32173215            jmi_assert_failed(\"Mismatching sizes in function 'Differentiation.AlgorithmDifferentiation.RecordArrayTemp1.e', component 'r[i1].x', dimension '1'\", JMI_ASSERT_ERROR);
    32183216        }
     
    32333231    JMI_ARR(STACK, R_0_r, R_0_ra, y_an, 1, 1)
    32343232    JMI_ARR(STACK, jmi_real_t, jmi_array_t, tmp_1, 1, 1)
    3235     jmi_real_t i1_3i;
    3236     jmi_real_t i1_4i;
    3237     jmi_real_t i2_5i;
    3238     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 2)
    3239     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 2)
     3233    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 2, 1)
     3234    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 2, 1)
     3235    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 2, 1)
    32403236    if (y_a == NULL) {
    32413237        JMI_ARRAY_INIT_1(STACK, R_0_r, R_0_ra, y_an, 1, 1, 1)
     
    32463242    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    32473243    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((1) - (1));
    3248     for (i1_3i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_3i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    3249         if (COND_EXP_EQ(1.0, jmi_array_size(jmi_array_rec_1(x_a, i1_3i)->x, 0), JMI_TRUE, JMI_FALSE) == JMI_FALSE) {
     3244    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     3245        if (COND_EXP_EQ(1.0, jmi_array_size(jmi_array_rec_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 1))->x, 0), JMI_TRUE, JMI_FALSE) == JMI_FALSE) {
    32503246            jmi_assert_failed(\"Mismatching sizes in function 'Differentiation.AlgorithmDifferentiation.RecordArrayTemp1.F', component 'x[i1].x', dimension '1'\", JMI_ASSERT_ERROR);
    32513247        }
     
    32533249    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    32543250    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((1) - (1));
    3255     for (i1_4i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_4i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     3251    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    32563252        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    32573253        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((1) - (1));
    3258         for (i2_5i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i2_5i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    3259             jmi_array_ref_1(jmi_array_rec_1(y_a, i1_4i)->x, i2_5i) = jmi_array_val_1(jmi_array_rec_1(x_a, i1_4i)->x, i2_5i);
     3254        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     3255            jmi_array_ref_1(jmi_array_rec_1(y_a, jmi_array_val_1(_for_loop_variables_r1, 2))->x, jmi_array_val_1(_for_loop_variables_r1, 2)) = jmi_array_val_1(jmi_array_rec_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 2))->x, jmi_array_val_1(_for_loop_variables_r1, 2));
    32603256        }
    32613257    }
     
    32743270    JMI_ARR(STACK, R_0_r, R_0_ra, temp_1_a, 1, 1)
    32753271    JMI_ARR(STACK, R_0_r, R_0_ra, _der_temp_1_a, 1, 1)
    3276     jmi_real_t i1_6i;
    3277     jmi_real_t i2_7i;
    3278     jmi_real_t i1_8i;
    3279     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 2)
    3280     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 2)
     3272    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 2, 1)
     3273    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 2, 1)
     3274    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 2, 1)
    32813275    JMI_ARRAY_INIT_1(STACK, R_0_r, R_0_ra, rt_a, 1, 1, 1)
    32823276    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, tmp_1, 1, 1, 1)
     
    32913285    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    32923286    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((1) - (1));
    3293     for (i1_6i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_6i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     3287    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    32943288        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    32953289        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((1) - (1));
    3296         for (i2_7i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i2_7i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    3297             jmi_array_ref_1(jmi_array_rec_1(_der_rt_a, i1_6i)->x, i2_7i) = jmi_array_val_1(jmi_array_rec_1(_der_temp_1_a, i1_6i)->x, i2_7i);
    3298             jmi_array_ref_1(jmi_array_rec_1(rt_a, i1_6i)->x, i2_7i) = jmi_array_val_1(jmi_array_rec_1(temp_1_a, i1_6i)->x, i2_7i);
     3290        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     3291            jmi_array_ref_1(jmi_array_rec_1(_der_rt_a, jmi_array_val_1(_for_loop_variables_r1, 2))->x, jmi_array_val_1(_for_loop_variables_r1, 2)) = jmi_array_val_1(jmi_array_rec_1(_der_temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 2))->x, jmi_array_val_1(_for_loop_variables_r1, 2));
     3292            jmi_array_ref_1(jmi_array_rec_1(rt_a, jmi_array_val_1(_for_loop_variables_r1, 2))->x, jmi_array_val_1(_for_loop_variables_r1, 2)) = jmi_array_val_1(jmi_array_rec_1(temp_1_a, jmi_array_val_1(_for_loop_variables_r1, 2))->x, jmi_array_val_1(_for_loop_variables_r1, 2));
    32993293        }
    33003294    }
     
    33033297    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    33043298    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((jmi_array_size(r_a, 0)) - (1));
    3305     for (i1_8i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_8i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    3306         if (COND_EXP_EQ(1.0, jmi_array_size(jmi_array_rec_1(r_a, i1_8i)->x, 0), JMI_TRUE, JMI_FALSE) == JMI_FALSE) {
     3299    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     3300        if (COND_EXP_EQ(1.0, jmi_array_size(jmi_array_rec_1(r_a, jmi_array_val_1(_for_loop_variables_r1, 1))->x, 0), JMI_TRUE, JMI_FALSE) == JMI_FALSE) {
    33073301            jmi_assert_failed(\"Mismatching sizes in function 'Differentiation.AlgorithmDifferentiation.RecordArrayTemp1.e', component 'r[i1].x', dimension '1'\", JMI_ASSERT_ERROR);
    33083302        }
     
    33253319    JMI_ARR(STACK, R_0_r, R_0_ra, y_a, 1, 1)
    33263320    JMI_ARR(STACK, jmi_real_t, jmi_array_t, tmp_2, 1, 1)
    3327     jmi_real_t i1_9i;
    3328     jmi_real_t i1_10i;
    3329     jmi_real_t i2_11i;
    3330     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 1, 2)
    3331     JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 1, 2)
     3321    JMI_ARR(STACK, jmi_real_t, jmi_array_t, _for_loop_variables_r1, 2, 1)
     3322    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i1, 2, 1)
     3323    JMI_ARR(STACK, jmi_int_t, jmi_int_array_t, _for_loop_variables_i2, 2, 1)
    33323324    JMI_ARRAY_INIT_1(STACK, R_0_r, R_0_ra, y_a, 1, 1, 1)
    33333325    JMI_ARRAY_INIT_1(STACK, jmi_real_t, jmi_array_t, tmp_2, 1, 1, 1)
     
    33413333    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    33423334    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((1) - (1));
    3343     for (i1_9i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_9i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    3344         if (COND_EXP_EQ(1.0, jmi_array_size(jmi_array_rec_1(x_a, i1_9i)->x, 0), JMI_TRUE, JMI_FALSE) == JMI_FALSE) {
     3335    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     3336        if (COND_EXP_EQ(1.0, jmi_array_size(jmi_array_rec_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 1))->x, 0), JMI_TRUE, JMI_FALSE) == JMI_FALSE) {
    33453337            jmi_assert_failed(\"Mismatching sizes in function 'Differentiation.AlgorithmDifferentiation.RecordArrayTemp1.F', component 'x[i1].x', dimension '1'\", JMI_ASSERT_ERROR);
    33463338        }
     
    33483340    jmi_array_ref_1(_for_loop_variables_i2, 1) = 0;
    33493341    jmi_array_ref_1(_for_loop_variables_i1, 1) = floor((1) - (1));
    3350     for (i1_10i = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); i1_10i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
     3342    for (jmi_array_ref_1(_for_loop_variables_r1, 1) = 1; jmi_array_val_1(_for_loop_variables_i2, 1) <= jmi_array_val_1(_for_loop_variables_i1, 1); jmi_array_ref_1(_for_loop_variables_r1, 1) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 1)))) {
    33513343        jmi_array_ref_1(_for_loop_variables_i2, 2) = 0;
    33523344        jmi_array_ref_1(_for_loop_variables_i1, 2) = floor((1) - (1));
    3353         for (i2_11i = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); i2_11i = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
    3354             jmi_array_ref_1(jmi_array_rec_1(_der_y_a, i1_10i)->x, i2_11i) = jmi_array_val_1(jmi_array_rec_1(_der_x_a, i1_10i)->x, i2_11i);
    3355             jmi_array_ref_1(jmi_array_rec_1(y_a, i1_10i)->x, i2_11i) = jmi_array_val_1(jmi_array_rec_1(x_a, i1_10i)->x, i2_11i);
     3345        for (jmi_array_ref_1(_for_loop_variables_r1, 2) = 1; jmi_array_val_1(_for_loop_variables_i2, 2) <= jmi_array_val_1(_for_loop_variables_i1, 2); jmi_array_ref_1(_for_loop_variables_r1, 2) = 1 + (++(jmi_array_ref_1(_for_loop_variables_i2, 2)))) {
     3346            jmi_array_ref_1(jmi_array_rec_1(_der_y_a, jmi_array_val_1(_for_loop_variables_r1, 2))->x, jmi_array_val_1(_for_loop_variables_r1, 2)) = jmi_array_val_1(jmi_array_rec_1(_der_x_a, jmi_array_val_1(_for_loop_variables_r1, 2))->x, jmi_array_val_1(_for_loop_variables_r1, 2));
     3347            jmi_array_ref_1(jmi_array_rec_1(y_a, jmi_array_val_1(_for_loop_variables_r1, 2))->x, jmi_array_val_1(_for_loop_variables_r1, 2)) = jmi_array_val_1(jmi_array_rec_1(x_a, jmi_array_val_1(_for_loop_variables_r1, 2))->x, jmi_array_val_1(_for_loop_variables_r1, 2));
    33563348        }
    33573349    }
Note: See TracChangeset for help on using the changeset viewer.