We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61ffba8 commit 46df3e5Copy full SHA for 46df3e5
src/libasr/pass/replace_symbolic.cpp
@@ -792,6 +792,7 @@ class ReplaceSymbolicVisitor : public PassUtils::PassVisitor<ReplaceSymbolicVisi
792
print_tmp.push_back(function_call);
793
} else if (ASR::is_a<ASR::Cast_t>(*val)) {
794
ASR::Cast_t* cast_t = ASR::down_cast<ASR::Cast_t>(val);
795
+ if(cast_t->m_kind != ASR::cast_kindType::IntegerToSymbolicExpression) return;
796
ASR::symbol_t *var_sym = nullptr;
797
this->visit_Cast(*cast_t);
798
var_sym = current_scope->get_symbol(symengine_stack.pop());
0 commit comments