EnzymeAD / EnzymeAD/Reactant.jl
Incorrect macro implement for missing else with new variables
- Dominant language
- Julia
- Stars
- 370
- Forks
- 74
- Avg merge
- 18h 47m
- Merged PRs (30d)
- 30
Description
```julia
@macroexpand @trace if x > 2
d = 1
end
```
```julia
quote
#= /mnt/software/lux/Reactant.jl/lib/ReactantCore/src/ReactantCore.jl:260 =#
if any(ReactantCore.is_traced, (d, x))
#= /mnt/software/lux/Reactant.jl/lib/ReactantCore/src/ReactantCore.jl:261 =#
begin
#= /mnt/software/lux/Reactant.jl/lib/ReactantCore/src/ReactantCore.jl:242 =#
var"##true_branch#295" = ((var"##true_branch#295d",)->begin
#= /mnt/software/lux/Reactant.jl/lib/ReactantCore/src/ReactantCore.jl:213 =#
#= /mnt/software/lux/Reactant.jl/lib/ReactantCore/src/ReactantCore.jl:214 =#
begin
#= REPL[16]:2 =#
var"##true_branch#295d" = 1
end
#= /mnt/software/lux/Reactant.jl/lib/ReactantCore/src/ReactantCore.jl:215 =#
begin
end
#= /mnt/software/lux/Reactant.jl/lib/ReactantCore/src/ReactantCore.jl:216 =#
return (var"##true_branch#295d",)
end)
#= /mnt/software/lux/Reactant.jl/lib/ReactantCore/src/ReactantCore.jl:243 =#
var"##false_branch#296" = ((var"##false_branch#296d",)->begin
#= /mnt/software/lux/Reactant.jl/lib/ReactantCore/src/ReactantCore.jl:231 =#
#= /mnt/software/lux/Reactant.jl/lib/ReactantCore/src/ReactantCore.jl:232 =#
begin
var"##false_branch#296d" = var"##false_branch#296d"
end
#= /mnt/software/lux/Reactant.jl/lib/ReactantCore/src/ReactantCore.jl:233 =#
begin
end
#= /mnt/software/lux/Reactant.jl/lib/ReactantCore/src/ReactantCore.jl:234 =#
return (var"##false_branch#296d",)
end)
#= /mnt/software/lux/Reactant.jl/lib/ReactantCore/src/ReactantCore.jl:244 =#
(d,) = (ReactantCore.traced_if)(x > 2, var"##true_branch#295", var"##false_branch#296", (d,))
end
else
#= /mnt/software/lux/Reactant.jl/lib/ReactantCore/src/ReactantCore.jl:263 =#
if x > 2
#= REPL[16]:2 =#
d = 1
end
end
end
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.