Skip to content

Commit

Permalink
Fixed failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anutosh491 authored and certik committed Aug 13, 2023
1 parent 3ac806b commit a1b9a8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions integration_tests/symbolics_08.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
def basic_new_stack(x: CPtr) -> None:
pass

@ccall(header="symengine/cwrapper.h", c_shared_lib="symengine", c_shared_lib_path=f"{os.environ['CONDA_PREFIX']}/lib")
def basic_free_stack(x: CPtr) -> None:
pass

@ccall(header="symengine/cwrapper.h", c_shared_lib="symengine", c_shared_lib_path=f"{os.environ['CONDA_PREFIX']}/lib")
def basic_const_pi(x: CPtr) -> None:
pass
Expand All @@ -22,5 +26,6 @@ def main0():
s: str = basic_str(x)
print(s)
assert s == "pi"
basic_free_stack(x)

main0()
1 change: 1 addition & 0 deletions src/libasr/pass/replace_symbolic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ class ReplaceSymbolicVisitor : public PassUtils::PassVisitor<ReplaceSymbolicVisi

xx.n_body = func_body.size();
xx.m_body = func_body.p;
symbolic_vars.clear();
}

void visit_Variable(const ASR::Variable_t& x) {
Expand Down

0 comments on commit a1b9a8b

Please sign in to comment.