@@ -532,6 +532,10 @@ constant DebugFlag DEBUG_DAEMODE = DEBUG_FLAG(178, "debugDAEmode", false,
532532 Util . gettext("Dump debug output for the DAEmode." ));
533533constant DebugFlag NF_SCALARIZE = DEBUG_FLAG (179 , "nfScalarize" , true ,
534534 Util . gettext("Run scalarization in NF, default true." ));
535+ constant DebugFlag NF_EVAL_CONST_ARG_FUNCS = DEBUG_FLAG (180 , "nfEvalConstArgFuncs" , false ,
536+ Util . gettext("Evaluate all functions with constant arguments in the new frontend." ));
537+ constant DebugFlag NF_EXPAND_OPERATIONS = DEBUG_FLAG (181 , "nfExpandOperations" , true ,
538+ Util . gettext("Expand all unary/binary operations to scalar expressions in the new frontend." ));
535539
536540// This is a list of all debug flags, to keep track of which flags are used. A
537541// flag can not be used unless it's in this list, and the list is checked at
@@ -717,7 +721,9 @@ constant list<DebugFlag> allDebugFlags = {
717721 OLD_FE_UNITCHECK ,
718722 EXEC_STAT_EXTRA_GC ,
719723 DEBUG_DAEMODE ,
720- NF_SCALARIZE
724+ NF_SCALARIZE ,
725+ NF_EVAL_CONST_ARG_FUNCS ,
726+ NF_EXPAND_OPERATIONS
721727};
722728
723729public
@@ -1413,31 +1419,31 @@ constant ConfigFlag IGNORE_REPLACEABLE = CONFIG_FLAG(117, "ignoreReplaceable",
14131419 NONE (), EXTERNAL (), BOOL_FLAG (false ), NONE (),
14141420 Util . gettext("Sets whether to ignore replaceability or not when redeclaring." ));
14151421
1416- constant ConfigFlag LABELED_REDUCTION = CONFIG_FLAG (118 ,
1422+ constant ConfigFlag LABELED_REDUCTION = CONFIG_FLAG (118 ,
14171423 "labeledReduction" , NONE (), INTERNAL (), BOOL_FLAG (false ), NONE (),
14181424 Util . gettext("Turns on labeling and reduce terms to do whole process of reduction." ));
14191425
1420- constant ConfigFlag DISABLE_EXTRA_LABELING = CONFIG_FLAG (119 ,
1426+ constant ConfigFlag DISABLE_EXTRA_LABELING = CONFIG_FLAG (119 ,
14211427 "disableExtraLabeling" , NONE (), INTERNAL (), BOOL_FLAG (false ), NONE (),
14221428 Util . gettext("Disable adding extra label into the whole experssion with more than one term and +,- operations." ));
14231429
1424- constant ConfigFlag LOAD_MSL_MODEL = CONFIG_FLAG (120 ,
1430+ constant ConfigFlag LOAD_MSL_MODEL = CONFIG_FLAG (120 ,
14251431 "loadMSLModel" , NONE (), INTERNAL (), BOOL_FLAG (false ), NONE (),
14261432 Util . gettext("Used to know loadFile doesn't need to be called in cpp-runtime (for labeled model reduction)." ));
14271433
1428- constant ConfigFlag Load_PACKAGE_FILE = CONFIG_FLAG (121 ,
1434+ constant ConfigFlag Load_PACKAGE_FILE = CONFIG_FLAG (121 ,
14291435 "loadPackageFile" , NONE (), INTERNAL (), BOOL_FLAG (false ), NONE (),
14301436 Util . gettext("used when the outside name is different with the inside name of the packge, in cpp-runtime (for labeled model reduction)." ));
14311437
1432- constant ConfigFlag BUILDING_FMU = CONFIG_FLAG (122 ,
1438+ constant ConfigFlag BUILDING_FMU = CONFIG_FLAG (122 ,
14331439 "" , NONE (), INTERNAL (), BOOL_FLAG (false ), NONE (),
14341440 Util . gettext("Is true when building an FMU (so the compiler can look for URIs to package as FMI resources)." ));
14351441
1436- constant ConfigFlag BUILDING_MODEL = CONFIG_FLAG (123 ,
1442+ constant ConfigFlag BUILDING_MODEL = CONFIG_FLAG (123 ,
14371443 "" , NONE (), INTERNAL (), BOOL_FLAG (false ), NONE (),
14381444 Util . gettext("Is true when building a model (as opposed to running a Modelica script)." ));
14391445
1440- constant ConfigFlag POST_OPT_MODULES_DAE = CONFIG_FLAG (124 , "postOptModulesDAE" ,
1446+ constant ConfigFlag POST_OPT_MODULES_DAE = CONFIG_FLAG (124 , "postOptModulesDAE" ,
14411447 NONE (), EXTERNAL (), STRING_LIST_FLAG ({
14421448 "lateInlineFunction" ,
14431449 "wrapFunctionCalls" ,
@@ -1454,15 +1460,15 @@ constant ConfigFlag IGNORE_REPLACEABLE = CONFIG_FLAG(117, "ignoreReplaceable",
14541460 }),NONE (),
14551461 Util . gettext("Sets the optimization modules for the DAEmode in the back end. See --help=optmodules for more info." ));
14561462
1457- constant ConfigFlag EVAL_LOOP_LIMIT = CONFIG_FLAG (125 ,
1458- "evalLoopLimit" , NONE (), EXTERNAL (), INT_FLAG (100000 ), NONE (),
1459- Util . gettext("The loop iteration limit used when evaluating constant function calls." ));
1463+ constant ConfigFlag EVAL_LOOP_LIMIT = CONFIG_FLAG (125 ,
1464+ "evalLoopLimit" , NONE (), EXTERNAL (), INT_FLAG (100000 ), NONE (),
1465+ Util . gettext("The loop iteration limit used when evaluating constant function calls." ));
14601466
1461- constant ConfigFlag EVAL_RECURSION_LIMIT = CONFIG_FLAG (126 ,
1462- "evalRecursionLimit" , NONE (), EXTERNAL (), INT_FLAG (256 ), NONE (),
1463- Util . gettext("The recursion limit used when evaluating constant function calls." ));
1467+ constant ConfigFlag EVAL_RECURSION_LIMIT = CONFIG_FLAG (126 ,
1468+ "evalRecursionLimit" , NONE (), EXTERNAL (), INT_FLAG (256 ), NONE (),
1469+ Util . gettext("The recursion limit used when evaluating constant function calls." ));
14641470
1465- constant ConfigFlag SINGLE_INSTANCE_AGLSOLVER = CONFIG_FLAG (127 , "singleInstanceAglSolver" ,
1471+ constant ConfigFlag SINGLE_INSTANCE_AGLSOLVER = CONFIG_FLAG (127 , "singleInstanceAglSolver" ,
14661472 NONE (), EXTERNAL (), BOOL_FLAG (false ), NONE (),
14671473 Util . gettext("Sets to instantiate only one algebraic loop solver all algebraic loops" ));
14681474
0 commit comments