Guest User

Untitled

a guest
Apr 25th, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Julia 2.66 KB | None | 0 0
  1. Variables:
  2.   #self#::#primesum
  3.   limit::Int64
  4.   #46::##46#47
  5.   i::Core.Box
  6.   multiples_of_i::Any
  7.   #temp#@_6::Int64
  8.   is_prime_num::BitArray{1}
  9.   psum::Any
  10.   J::Any
  11.   #temp#@_10::Any
  12.  
  13. Body:
  14.   begin
  15.       is_prime_num::BitArray{1} = $(Expr(:invoke, MethodInstance for BitArray{1}(::Int64), :(Main.BitVector), :(limit))) # line 8:
  16.       $(Expr(:invoke, MethodInstance for fill!(::BitArray{1}, ::Bool), :(Base.Broadcast.fill!), :(is_prime_num), true)) # line 10:
  17.       psum::Any = 0 # line 11:
  18.       SSAValue(7) = (Base.select_value)((Base.sle_int)(2, limit::Int64)::Bool, limit::Int64, (Base.sub_int)(2, 1)::Int64)::Int64
  19.       #temp#@_6::Int64 = 2
  20.       9:
  21.       unless (Base.not_int)((#temp#@_6::Int64 === (Base.add_int)(SSAValue(7), 1)::Int64)::Bool)::Bool goto 41
  22.       NewvarNode(:(#46::##46#47))
  23.       i::Core.Box = $(Expr(:new, :(Core.Box)))
  24.       NewvarNode(:(multiples_of_i::Any))
  25.      SSAValue(8) = #temp#@_6::Int64
  26.       SSAValue(9) = (Base.add_int)(#temp#@_6::Int64, 1)::Int64
  27.       SSAValue(2) = SSAValue(8)
  28.       (Core.setfield!)(i::Core.Box, :contents, SSAValue(2))::Int64
  29.       #temp#@_6::Int64 = SSAValue(9) # line 12:
  30.       unless (Main.getindex)(is_prime_num::BitArray{1}, (Core.getfield)(i::Core.Box, :contents)::Any)::Any goto 39 # line 13:
  31.       psum::Any = (psum::Any + (Core.getfield)(i::Core.Box, :contents)::Any)::Any # line 14:
  32.       #46::##46#47 = $(Expr(:new, :(Main.##46#47), :(i)))
  33.       SSAValue(4) = (Main.colon)(2, (limit::Int64 ÷ (Core.getfield)(i::Core.Box, :contents)::Any)::Any)::Any
  34.       SSAValue(5) = (Base.Generator)(#46::##46#47, SSAValue(4))::Base.Generator{_,##46#47} where _
  35.       multiples_of_i::Any = (Base.collect)(SSAValue(5))::Any # line 15:
  36.       # meta: location broadcast.jl dotview 537
  37.       $(Expr(:inbounds, false))
  38.       # meta: location subarray.jl view 112
  39.       J::Any = (Base.to_indices)(is_prime_num::BitArray{1}, (Core.tuple)(multiples_of_i::Any)::Tuple{Any})::Any # line 113:
  40.       (Core._apply)(Base.checkbounds, (Core.tuple)(is_prime_num::BitArray{1})::Tuple{BitArray{1}}, J::Any)::Any
  41.       # meta: pop location
  42.       $(Expr(:inbounds, :pop))
  43.       # meta: pop location
  44.       (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 _}
  45.       39:
  46.       goto 9
  47.       41:  # line 18:
  48.       return psum::Any
  49.   end::Any
Add Comment
Please, Sign In to add comment