Changeset 9620


Ignore:
Timestamp:
Feb 7, 2017 9:53:31 AM (3 years ago)
Author:
Zimon Kuhs
Message:

#5284

Added the 'lazy' attribute to the equations that had 'nta' removed in r9610.

Location:
trunk/Compiler
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/ModelicaFlatTree/src/jastadd/FlatUtil.jrag

    r9610 r9620  
    21562156        }
    21572157    }
    2158    
     2158
    21592159    public class FClass {
    21602160        public <V extends FDynamicResolver> V dynamicResolver(V res) {
     
    21632163        }
    21642164    }
    2165    
    2166     syn Opt FClass.getFDynamicResolverOpt() = new DynamicOpt();
    2167     syn Opt FIndexReductionResolver.getFVariableOpt() = new DynamicOpt();
    2168     syn Opt FIndexReductionResolver.getFAbstractEquationOpt() = new DynamicOpt();
    2169    
     2165
     2166    syn lazy Opt FClass.getFDynamicResolverOpt() = new DynamicOpt();
     2167    syn lazy Opt FIndexReductionResolver.getFVariableOpt() = new DynamicOpt();
     2168    syn lazy Opt FIndexReductionResolver.getFAbstractEquationOpt() = new DynamicOpt();
     2169
    21702170    /**
    21712171     * Dynamic resolver used during index reduction to handle differentiated
     
    21732173     */
    21742174    public class FIndexReductionResolver {
    2175        
     2175
    21762176        private final Map<String, FVariable> lookupMap = new HashMap<String, FVariable>();
    21772177        /**
  • trunk/Compiler/ModelicaFrontEnd/src/jastadd/instance/InstanceTree.jrag

    r9610 r9620  
    938938    eq InstPrimitive.getInstClassDeclList() = new List();
    939939
    940     syn List<InstComponentDecl> InstRecordConstructor.getInstComponentDeclList() {
     940    syn lazy List<InstComponentDecl> InstRecordConstructor.getInstComponentDeclList() {
    941941        InstClassDecl rec = getRecord().myInstClassDecl().actualInstClass();
    942942        List<InstComponentDecl> l = new List<InstComponentDecl>();
     
    946946    }
    947947
    948     syn List<InstExtends> InstRecordConstructor.getInstExtendsList() {
     948    syn lazy List<InstExtends> InstRecordConstructor.getInstExtendsList() {
    949949        InstClassDecl rec = getRecord().myInstClassDecl().actualInstClass();
    950950        List l = new List();
     
    955955    }
    956956
    957     syn List<InstModification> InstRecordConstructor.getInstModificationList() {
     957    syn lazy List<InstModification> InstRecordConstructor.getInstModificationList() {
    958958        List<InstModification> res = new List<InstModification>();
    959959        for (InstFunctionArgument ifa : getArgs()) {
  • trunk/Compiler/ModelicaMiddleEnd/src/jastadd/TransformCanonical.jrag

    r9610 r9620  
    10981098    eq FIfWhenClause.getFStatement().needsIndicatorInit()  = true;
    10991099    eq FWhileStmt.getWhileStmt().needsIndicatorInit()      = true;
    1100    
    1101     /**
    1102     * A reference to the FVariable set as indicator for a FRelExp
    1103     * Only used in algorithms
    1104     */
    1105     syn Opt<FIdUseExp> FRelExp.getIndicatorOpt() = new Opt<FIdUseExp>();
    1106    
     1100
     1101    /**
     1102    * A reference to the FVariable set as indicator for a FRelExp
     1103    * Only used in algorithms
     1104    */
     1105    syn lazy Opt<FIdUseExp> FRelExp.getIndicatorOpt() = new Opt<FIdUseExp>();
     1106
    11071107    /**
    11081108     * Creates an indicator for this FRelExp
Note: See TracChangeset for help on using the changeset viewer.