Changeset af746cc for src/GenPoly
- Timestamp:
- Apr 15, 2024, 12:03:53 PM (4 months ago)
- Branches:
- master
- Children:
- dc58e5d
- Parents:
- d9bad51
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Lvalue.cpp
rd9bad51 raf746cc 133 133 return func->linkage == ast::Linkage::Intrinsic 134 134 && lvalueFunctions.count( func->name ); 135 }136 }137 return false;138 }139 140 bool isGeneratedInstrinct( ast::Expr const * expr ) {141 if ( auto app = dynamic_cast<ast::ApplicationExpr const *>( expr ) ) {142 if ( app->args.size() == 2 && ast::getFunction( app )->name == "?[?]" ) {143 auto param_1 = dynamic_cast<ast::VariableExpr const *>(app->args.front().get());144 if ( param_1 ) {145 auto param_1_as_obj = param_1->var.as<ast::ObjectDecl>();146 return ( param_1_as_obj->name.find( "values_") != std::string::npos147 || param_1_as_obj->name.find( "labels_" ) != std::string::npos );148 }149 135 } 150 136 } … … 176 162 ast::ApplicationExpr const * expr ) { 177 163 178 if ( skip == SkipInProgress || !isIntrinsicReference( expr ) || isGeneratedInstrinct( expr )) {164 if ( skip == SkipInProgress || !isIntrinsicReference( expr ) ) { 179 165 return expr; 180 166 }
Note: See TracChangeset
for help on using the changeset viewer.