Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Variables:
- #self#::#primesum
- limit::Int64
- #46::##46#47
- i::Core.Box
- multiples_of_i::Any
- #temp#@_6::Int64
- is_prime_num::BitArray{1}
- psum::Any
- J::Any
- #temp#@_10::Any
- Body:
- begin
- is_prime_num::BitArray{1} = $(Expr(:invoke, MethodInstance for BitArray{1}(::Int64), :(Main.BitVector), :(limit))) # line 8:
- $(Expr(:invoke, MethodInstance for fill!(::BitArray{1}, ::Bool), :(Base.Broadcast.fill!), :(is_prime_num), true)) # line 10:
- psum::Any = 0 # line 11:
- SSAValue(7) = (Base.select_value)((Base.sle_int)(2, limit::Int64)::Bool, limit::Int64, (Base.sub_int)(2, 1)::Int64)::Int64
- #temp#@_6::Int64 = 2
- 9:
- unless (Base.not_int)((#temp#@_6::Int64 === (Base.add_int)(SSAValue(7), 1)::Int64)::Bool)::Bool goto 41
- NewvarNode(:(#46::##46#47))
- i::Core.Box = $(Expr(:new, :(Core.Box)))
- NewvarNode(:(multiples_of_i::Any))
- SSAValue(8) = #temp#@_6::Int64
- SSAValue(9) = (Base.add_int)(#temp#@_6::Int64, 1)::Int64
- SSAValue(2) = SSAValue(8)
- (Core.setfield!)(i::Core.Box, :contents, SSAValue(2))::Int64
- #temp#@_6::Int64 = SSAValue(9) # line 12:
- unless (Main.getindex)(is_prime_num::BitArray{1}, (Core.getfield)(i::Core.Box, :contents)::Any)::Any goto 39 # line 13:
- psum::Any = (psum::Any + (Core.getfield)(i::Core.Box, :contents)::Any)::Any # line 14:
- #46::##46#47 = $(Expr(:new, :(Main.##46#47), :(i)))
- SSAValue(4) = (Main.colon)(2, (limit::Int64 ÷ (Core.getfield)(i::Core.Box, :contents)::Any)::Any)::Any
- SSAValue(5) = (Base.Generator)(#46::##46#47, SSAValue(4))::Base.Generator{_,##46#47} where _
- multiples_of_i::Any = (Base.collect)(SSAValue(5))::Any # line 15:
- # meta: location broadcast.jl dotview 537
- $(Expr(:inbounds, false))
- # meta: location subarray.jl view 112
- J::Any = (Base.to_indices)(is_prime_num::BitArray{1}, (Core.tuple)(multiples_of_i::Any)::Tuple{Any})::Any # line 113:
- (Core._apply)(Base.checkbounds, (Core.tuple)(is_prime_num::BitArray{1})::Tuple{BitArray{1}}, J::Any)::Any
- # meta: pop location
- $(Expr(:inbounds, :pop))
- # meta: pop location
- (Base.broadcast!)(Base.identity, (Core._apply)(Base.unsafe_view, (Core.tuple)((Base._maybe_reshape_parent)(is_prime_num::BitArray{1}, (Core._apply)(Base.index_ndims, J::Any)::Tuple)::Any)::Tuple{Any}, J::Any)::Union{SubArray{_,_,_,_,false} where _ where _ where _ where _, SubArray{_,_,_,_,true} where _ where _ where _ where _}, false)::Union{SubArray{_,_,_,_,false} where _ where _ where _ where _, SubArray{_,_,_,_,true} where _ where _ where _ where _}
- 39:
- goto 9
- 41: # line 18:
- return psum::Any
- end::Any
Add Comment
Please, Sign In to add comment