@@ -8,7 +8,7 @@ export toexpr, Assignment, (←), Let, Func, DestructuredArgs, LiteralExpr,
8
8
9
9
import .. SymbolicUtils
10
10
import .. SymbolicUtils. Rewriters
11
- import SymbolicUtils: @matchable , BasicSymbolic, Sym , Term, iscall, operation, arguments, issym,
11
+ import SymbolicUtils: @matchable , BasicSymbolic, _Sym , Term, iscall, operation, arguments, issym,
12
12
isconst, symtype, sorted_arguments, metadata, isterm, term, maketerm
13
13
import SymbolicIndexingInterface: symbolic_type, NotSymbolic
14
14
683
683
684
684
# ## Common subexprssion evaluation
685
685
686
- @inline newsym (:: Type{T} ) where T = Sym {T} ( gensym (" cse" ))
686
+ @inline newsym (:: Type{T} ) where T = _Sym (T, gensym (" cse" ))
687
687
688
688
function _cse! (mem, expr)
689
689
iscall (expr) || return expr
@@ -747,7 +747,7 @@ function cse_block!(assignments, counter, names, name, state, x)
747
747
if haskey (names, x)
748
748
return names[x]
749
749
else
750
- sym = Sym { symtype(x)} ( Symbol (name, counter[]))
750
+ sym = _Sym ( symtype (x), Symbol (name, counter[]))
751
751
names[x] = sym
752
752
push! (assignments, sym ← x)
753
753
counter[] += 1
0 commit comments