Skip to content

Instantly share code, notes, and snippets.

Created July 31, 2017 01:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/956058e86319b398e286a36f4805a4a7 to your computer and use it in GitHub Desktop.
Save anonymous/956058e86319b398e286a36f4805a4a7 to your computer and use it in GitHub Desktop.
Variables:
#self#::#test
f::Base.#sin
nx::Int64
x::StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}
u::Array{Float64,1}
u0::ANY
lI::Int64
X::Array{Float64,1}
z@_9::Int64
b@_10::Bool
#temp#@_11::Int64
z@_12::Int64
b@_13::Bool
#temp#@_14::Int64
Body:
begin
x::StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}} = $(Expr(:invoke, MethodInstance for linspace(::Float64, ::Float64, ::Int64), :(Main.linspace), 0.0, 1.0, :(nx))) # line 33:
u::Array{Float64,1} = $(Expr(:invoke, MethodInstance for init(::Function, ::StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}), :(Main.init), :(f), :(x))) # line 34:
SSAValue(0) = (Base.sub_int)(nx::Int64, 1)::Int64
SSAValue(1) = $(Expr(:new, UnitRange{Int64}, 1, :((Base.select_value)((Base.sle_int)(1, SSAValue(0))::Bool, SSAValue(0), (Base.sub_int)(1, 1)::Int64)::Int64)))
$(Expr(:inbounds, false))
# meta: location array.jl getindex 526
SSAValue(2) = (Core.tuple)(SSAValue(1))::Tuple{UnitRange{Int64}}
# meta: location abstractarray.jl checkbounds 362
SSAValue(4) = (Core.getfield)(SSAValue(2), 1)::UnitRange{Int64}
# meta: location abstractarray.jl checkbounds 347
# meta: location abstractarray.jl linearindices 99
# meta: location abstractarray.jl indices1 71
# meta: location abstractarray.jl indices 64
SSAValue(7) = (Base.arraysize)(u::Array{Float64,1}, 1)::Int64
# meta: pop location
# meta: pop location
# meta: pop location
SSAValue(11) = (Base.select_value)((Base.slt_int)(SSAValue(7), 0)::Bool, 0, SSAValue(7))::Int64
# meta: location abstractarray.jl checkindex 459
SSAValue(10) = (Core.getfield)(SSAValue(4), :start)::Int64
SSAValue(9) = (Core.getfield)(SSAValue(4), :stop)::Int64
# meta: pop location
# meta: pop location
SSAValue(3) = (Base.or_int)((Base.slt_int)((Core.getfield)(SSAValue(4), :stop)::Int64, (Core.getfield)(SSAValue(4), :start)::Int64)::Bool, (Base.and_int)((Base.and_int)((Base.sle_int)(1, SSAValue(10))::Bool, (Base.sle_int)(SSAValue(10), SSAValue(11))::Bool)::Bool, (Base.and_int)((Base.sle_int)(1, SSAValue(9))::Bool, (Base.sle_int)(SSAValue(9), SSAValue(11))::Bool)::Bool)::Bool)::Bool
unless SSAValue(3) goto 29
goto 31
29:
$(Expr(:invoke, MethodInstance for throw_boundserror(::Array{Float64,1}, ::Tuple{UnitRange{Int64}}), :(Base.throw_boundserror), :(u), SSAValue(2)))
31:
# meta: pop location # line 527:
# meta: location range.jl length 393
# meta: location checked.jl checked_sub 221
SSAValue(12) = (Base.Checked.checked_ssub_int)((Core.getfield)(SSAValue(1), :stop)::Int64, (Core.getfield)(SSAValue(1), :start)::Int64)::Tuple{Int64,Bool}
SSAValue(15) = (Base.getfield)(SSAValue(12), 1)::Int64
SSAValue(17) = (Base.getfield)(SSAValue(12), 2)::Bool # line 222:
unless SSAValue(17) goto 42
(Base.Checked.throw)($(QuoteNode(OverflowError())))::UNION{}
42:
# meta: pop location
# meta: location checked.jl checked_add 164
SSAValue(19) = (Base.Checked.checked_sadd_int)(SSAValue(15), 1)::Tuple{Int64,Bool}
SSAValue(22) = (Base.getfield)(SSAValue(19), 1)::Int64
SSAValue(24) = (Base.getfield)(SSAValue(19), 2)::Bool # line 165:
unless SSAValue(24) goto 51
(Base.Checked.throw)($(QuoteNode(OverflowError())))::UNION{}
51:
# meta: pop location
# meta: pop location # line 528:
X::Array{Float64,1} = $(Expr(:foreigncall, :(:jl_alloc_array_1d), Array{Float64,1}, svec(Any, Int64), Array{Float64,1}, 0, SSAValue(22), 0)) # line 529:
unless (Base.slt_int)(0, SSAValue(22))::Bool goto 60 # line 530:
$(Expr(:invoke, MethodInstance for unsafe_copy!(::Array{Float64,1}, ::Int64, ::Array{Float64,1}, ::Int64, ::Int64), :(Base.unsafe_copy!), :(X), 1, :(u), :((Core.getfield)(SSAValue(1), :start)::Int64), SSAValue(22)))
60:
# meta: pop location
$(Expr(:inbounds, :pop)) # line 35:
return X::Array{Float64,1}
end::Array{Float64,1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment