Skip to content

Commit 46df3e5

Browse files
anutosh491certik
authored andcommitted
fixed failing tests
1 parent 61ffba8 commit 46df3e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libasr/pass/replace_symbolic.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,7 @@ class ReplaceSymbolicVisitor : public PassUtils::PassVisitor<ReplaceSymbolicVisi
792792
print_tmp.push_back(function_call);
793793
} else if (ASR::is_a<ASR::Cast_t>(*val)) {
794794
ASR::Cast_t* cast_t = ASR::down_cast<ASR::Cast_t>(val);
795+
if(cast_t->m_kind != ASR::cast_kindType::IntegerToSymbolicExpression) return;
795796
ASR::symbol_t *var_sym = nullptr;
796797
this->visit_Cast(*cast_t);
797798
var_sym = current_scope->get_symbol(symengine_stack.pop());

0 commit comments

Comments
 (0)