Create a gist now

Instantly share code, notes, and snippets.

let # /home/jamie/imp/src/Query.jl, line 340:
local index_2 = index($(Expr(:escape, :playlist)),[2,1])
local index_2_2 = index_2[2]
local index_2_1 = index_2[1]
local lo_2_0 = 1
local hi_2_0 = 1 + length(index_2_2)
local index_3 = index($(Expr(:escape, :playlist_track)),[1,2])
local index_3_1 = index_3[1]
local index_3_2 = index_3[2]
local lo_3_0 = 1
local hi_3_0 = 1 + length(index_3_1)
local index_4 = index($(Expr(:escape, :track)),[1,2,3])
local index_4_1 = index_4[1]
local index_4_2 = index_4[2]
local index_4_3 = index_4[3]
local lo_4_0 = 1
local hi_4_0 = 1 + length(index_4_1)
local index_5 = index($(Expr(:escape, :album)),[1,3])
local index_5_1 = index_5[1]
local index_5_3 = index_5[3]
local lo_5_0 = 1
local hi_5_0 = 1 + length(index_5_1)
local index_6 = index($(Expr(:escape, :artist)),[1,2])
local index_6_1 = index_6[1]
local index_6_2 = index_6[2]
local lo_6_0 = 1
local hi_6_0 = 1 + length(index_6_1) # /home/jamie/imp/src/Query.jl, line 341:
local results_1 = Vector{$(Expr(:escape, :String))}()
local results_2 = Vector{$(Expr(:escape, :String))}() # /home/jamie/imp/src/Query.jl, line 342:
let # /home/jamie/imp/src/Query.jl, line 343:
local $(Expr(:escape, Symbol("##constant#2737")))
local $(Expr(:escape, :playlist_id))
local $(Expr(:escape, :track_id))
local $(Expr(:escape, :track_name))
local $(Expr(:escape, :album_id))
local $(Expr(:escape, :artist_id))
local $(Expr(:escape, :artist_name)) # /home/jamie/imp/src/Query.jl, line 344:
let # /home/jamie/imp/src/Query.jl, line 318:
$(Expr(:escape, Symbol("##constant#2737"))) = $(Expr(:escape, "Heavy Metal Classic")) # /home/jamie/imp/src/Query.jl, line 319:
begin # /home/jamie/imp/src/Query.jl, line 33:
(lo_2_1,c) = gallop(index_2_2,$(Expr(:escape, Symbol("##constant#2737"))),lo_2_0,hi_2_0,0) # /home/jamie/imp/src/Query.jl, line 34:
if c == 0 # /home/jamie/imp/src/Query.jl, line 35:
(hi_2_1,_) = gallop(index_2_2,$(Expr(:escape, Symbol("##constant#2737"))),lo_2_1 + 1,hi_2_0,1) # /home/jamie/imp/src/Query.jl, line 36:
begin # /home/jamie/imp/src/Query.jl, line 48:
begin # /home/jamie/imp/src/Query.jl, line 49:
lo_2_2 = lo_2_1
lo_3_1 = lo_3_0 # /home/jamie/imp/src/Query.jl, line 50:
total = 1 # /home/jamie/imp/src/Query.jl, line 51:
while true # /home/jamie/imp/src/Query.jl, line 52:
if total == 2 # /home/jamie/imp/src/Query.jl, line 53:
(hi_2_2,_) = gallop(index_2_1,index_2_1[lo_2_2],lo_2_2 + 1,hi_2_1,1)
(hi_3_1,_) = gallop(index_3_1,index_3_1[lo_3_1],lo_3_1 + 1,hi_3_0,1) # /home/jamie/imp/src/Query.jl, line 54:
$(Expr(:escape, :playlist_id)) = index_2_1[lo_2_2] # /home/jamie/imp/src/Query.jl, line 55:
begin # /home/jamie/imp/src/Query.jl, line 48:
begin # /home/jamie/imp/src/Query.jl, line 49:
lo_3_2 = lo_3_1
lo_4_1 = lo_4_0 # /home/jamie/imp/src/Query.jl, line 50:
total = 1 # /home/jamie/imp/src/Query.jl, line 51:
while true # /home/jamie/imp/src/Query.jl, line 52:
if total == 2 # /home/jamie/imp/src/Query.jl, line 53:
(hi_3_2,_) = gallop(index_3_2,index_3_2[lo_3_2],lo_3_2 + 1,hi_3_1,1)
(hi_4_1,_) = gallop(index_4_1,index_4_1[lo_4_1],lo_4_1 + 1,hi_4_0,1) # /home/jamie/imp/src/Query.jl, line 54:
$(Expr(:escape, :track_id)) = index_3_2[lo_3_2] # /home/jamie/imp/src/Query.jl, line 55:
begin # /home/jamie/imp/src/Query.jl, line 48:
begin # /home/jamie/imp/src/Query.jl, line 49:
lo_4_2 = lo_4_1 # /home/jamie/imp/src/Query.jl, line 50:
total = 1 # /home/jamie/imp/src/Query.jl, line 51:
while true # /home/jamie/imp/src/Query.jl, line 52:
if total == 1 # /home/jamie/imp/src/Query.jl, line 53:
(hi_4_2,_) = gallop(index_4_2,index_4_2[lo_4_2],lo_4_2 + 1,hi_4_1,1) # /home/jamie/imp/src/Query.jl, line 54:
$(Expr(:escape, :track_name)) = index_4_2[lo_4_2] # /home/jamie/imp/src/Query.jl, line 55:
begin # /home/jamie/imp/src/Query.jl, line 48:
begin # /home/jamie/imp/src/Query.jl, line 49:
lo_4_3 = lo_4_2
lo_5_1 = lo_5_0 # /home/jamie/imp/src/Query.jl, line 50:
total = 1 # /home/jamie/imp/src/Query.jl, line 51:
while true # /home/jamie/imp/src/Query.jl, line 52:
if total == 2 # /home/jamie/imp/src/Query.jl, line 53:
(hi_4_3,_) = gallop(index_4_3,index_4_3[lo_4_3],lo_4_3 + 1,hi_4_2,1)
(hi_5_1,_) = gallop(index_5_1,index_5_1[lo_5_1],lo_5_1 + 1,hi_5_0,1) # /home/jamie/imp/src/Query.jl, line 54:
$(Expr(:escape, :album_id)) = index_4_3[lo_4_3] # /home/jamie/imp/src/Query.jl, line 55:
begin # /home/jamie/imp/src/Query.jl, line 48:
begin # /home/jamie/imp/src/Query.jl, line 49:
lo_5_2 = lo_5_1
lo_6_1 = lo_6_0 # /home/jamie/imp/src/Query.jl, line 50:
total = 1 # /home/jamie/imp/src/Query.jl, line 51:
while true # /home/jamie/imp/src/Query.jl, line 52:
if total == 2 # /home/jamie/imp/src/Query.jl, line 53:
(hi_5_2,_) = gallop(index_5_3,index_5_3[lo_5_2],lo_5_2 + 1,hi_5_1,1)
(hi_6_1,_) = gallop(index_6_1,index_6_1[lo_6_1],lo_6_1 + 1,hi_6_0,1) # /home/jamie/imp/src/Query.jl, line 54:
$(Expr(:escape, :artist_id)) = index_5_3[lo_5_2] # /home/jamie/imp/src/Query.jl, line 55:
begin # /home/jamie/imp/src/Query.jl, line 48:
begin # /home/jamie/imp/src/Query.jl, line 49:
lo_6_2 = lo_6_1 # /home/jamie/imp/src/Query.jl, line 50:
total = 1 # /home/jamie/imp/src/Query.jl, line 51:
while true # /home/jamie/imp/src/Query.jl, line 52:
if total == 1 # /home/jamie/imp/src/Query.jl, line 53:
(hi_6_2,_) = gallop(index_6_2,index_6_2[lo_6_2],lo_6_2 + 1,hi_6_1,1) # /home/jamie/imp/src/Query.jl, line 54:
$(Expr(:escape, :artist_name)) = index_6_2[lo_6_2] # /home/jamie/imp/src/Query.jl, line 55:
begin # /home/jamie/imp/src/Query.jl, line 302:
need_more_results = true # /home/jamie/imp/src/Query.jl, line 303:
begin # /home/jamie/imp/src/Query.jl, line 285:
push!(results_1,$(Expr(:escape, :track_name)))
push!(results_2,$(Expr(:escape, :artist_name))) # /home/jamie/imp/src/Query.jl, line 287:
need_more_results = false
end
end # /home/jamie/imp/src/Query.jl, line 56:
lo_6_2 = hi_6_2 # /home/jamie/imp/src/Query.jl, line 57:
if lo_6_2 >= hi_6_1 # /home/jamie/imp/src/Query.jl, line 57:
break
end # /home/jamie/imp/src/Query.jl, line 58:
total = 1
end # /home/jamie/imp/src/Query.jl, line 60:
begin # /home/jamie/imp/src/Query.jl, line 61:
if total < 1 # /home/jamie/imp/src/Query.jl, line 62:
(lo_6_2,c) = gallop(index_6_2,index_6_2[lo_6_2],lo_6_2,hi_6_1,0) # /home/jamie/imp/src/Query.jl, line 63:
total = if c == 0
total + 1
else
1
end # /home/jamie/imp/src/Query.jl, line 64:
if lo_6_2 >= hi_6_1 # /home/jamie/imp/src/Query.jl, line 64:
break
end
end
end
end
end
end # /home/jamie/imp/src/Query.jl, line 56:
lo_5_2 = hi_5_2
lo_6_1 = hi_6_1 # /home/jamie/imp/src/Query.jl, line 57:
if lo_5_2 >= hi_5_1 # /home/jamie/imp/src/Query.jl, line 57:
break
end
if lo_6_1 >= hi_6_0 # /home/jamie/imp/src/Query.jl, line 57:
break
end # /home/jamie/imp/src/Query.jl, line 58:
total = 1
end # /home/jamie/imp/src/Query.jl, line 60:
begin # /home/jamie/imp/src/Query.jl, line 61:
if total < 2 # /home/jamie/imp/src/Query.jl, line 62:
(lo_5_2,c) = gallop(index_5_3,index_6_1[lo_6_1],lo_5_2,hi_5_1,0) # /home/jamie/imp/src/Query.jl, line 63:
total = if c == 0
total + 1
else
1
end # /home/jamie/imp/src/Query.jl, line 64:
if lo_5_2 >= hi_5_1 # /home/jamie/imp/src/Query.jl, line 64:
break
end
end
end
begin # /home/jamie/imp/src/Query.jl, line 61:
if total < 2 # /home/jamie/imp/src/Query.jl, line 62:
(lo_6_1,c) = gallop(index_6_1,index_5_3[lo_5_2],lo_6_1,hi_6_0,0) # /home/jamie/imp/src/Query.jl, line 63:
total = if c == 0
total + 1
else
1
end # /home/jamie/imp/src/Query.jl, line 64:
if lo_6_1 >= hi_6_0 # /home/jamie/imp/src/Query.jl, line 64:
break
end
end
end
end
end
end # /home/jamie/imp/src/Query.jl, line 56:
lo_4_3 = hi_4_3
lo_5_1 = hi_5_1 # /home/jamie/imp/src/Query.jl, line 57:
if lo_4_3 >= hi_4_2 # /home/jamie/imp/src/Query.jl, line 57:
break
end
if lo_5_1 >= hi_5_0 # /home/jamie/imp/src/Query.jl, line 57:
break
end # /home/jamie/imp/src/Query.jl, line 58:
total = 1
end # /home/jamie/imp/src/Query.jl, line 60:
begin # /home/jamie/imp/src/Query.jl, line 61:
if total < 2 # /home/jamie/imp/src/Query.jl, line 62:
(lo_4_3,c) = gallop(index_4_3,index_5_1[lo_5_1],lo_4_3,hi_4_2,0) # /home/jamie/imp/src/Query.jl, line 63:
total = if c == 0
total + 1
else
1
end # /home/jamie/imp/src/Query.jl, line 64:
if lo_4_3 >= hi_4_2 # /home/jamie/imp/src/Query.jl, line 64:
break
end
end
end
begin # /home/jamie/imp/src/Query.jl, line 61:
if total < 2 # /home/jamie/imp/src/Query.jl, line 62:
(lo_5_1,c) = gallop(index_5_1,index_4_3[lo_4_3],lo_5_1,hi_5_0,0) # /home/jamie/imp/src/Query.jl, line 63:
total = if c == 0
total + 1
else
1
end # /home/jamie/imp/src/Query.jl, line 64:
if lo_5_1 >= hi_5_0 # /home/jamie/imp/src/Query.jl, line 64:
break
end
end
end
end
end
end # /home/jamie/imp/src/Query.jl, line 56:
lo_4_2 = hi_4_2 # /home/jamie/imp/src/Query.jl, line 57:
if lo_4_2 >= hi_4_1 # /home/jamie/imp/src/Query.jl, line 57:
break
end # /home/jamie/imp/src/Query.jl, line 58:
total = 1
end # /home/jamie/imp/src/Query.jl, line 60:
begin # /home/jamie/imp/src/Query.jl, line 61:
if total < 1 # /home/jamie/imp/src/Query.jl, line 62:
(lo_4_2,c) = gallop(index_4_2,index_4_2[lo_4_2],lo_4_2,hi_4_1,0) # /home/jamie/imp/src/Query.jl, line 63:
total = if c == 0
total + 1
else
1
end # /home/jamie/imp/src/Query.jl, line 64:
if lo_4_2 >= hi_4_1 # /home/jamie/imp/src/Query.jl, line 64:
break
end
end
end
end
end
end # /home/jamie/imp/src/Query.jl, line 56:
lo_3_2 = hi_3_2
lo_4_1 = hi_4_1 # /home/jamie/imp/src/Query.jl, line 57:
if lo_3_2 >= hi_3_1 # /home/jamie/imp/src/Query.jl, line 57:
break
end
if lo_4_1 >= hi_4_0 # /home/jamie/imp/src/Query.jl, line 57:
break
end # /home/jamie/imp/src/Query.jl, line 58:
total = 1
end # /home/jamie/imp/src/Query.jl, line 60:
begin # /home/jamie/imp/src/Query.jl, line 61:
if total < 2 # /home/jamie/imp/src/Query.jl, line 62:
(lo_3_2,c) = gallop(index_3_2,index_4_1[lo_4_1],lo_3_2,hi_3_1,0) # /home/jamie/imp/src/Query.jl, line 63:
total = if c == 0
total + 1
else
1
end # /home/jamie/imp/src/Query.jl, line 64:
if lo_3_2 >= hi_3_1 # /home/jamie/imp/src/Query.jl, line 64:
break
end
end
end
begin # /home/jamie/imp/src/Query.jl, line 61:
if total < 2 # /home/jamie/imp/src/Query.jl, line 62:
(lo_4_1,c) = gallop(index_4_1,index_3_2[lo_3_2],lo_4_1,hi_4_0,0) # /home/jamie/imp/src/Query.jl, line 63:
total = if c == 0
total + 1
else
1
end # /home/jamie/imp/src/Query.jl, line 64:
if lo_4_1 >= hi_4_0 # /home/jamie/imp/src/Query.jl, line 64:
break
end
end
end
end
end
end # /home/jamie/imp/src/Query.jl, line 56:
lo_2_2 = hi_2_2
lo_3_1 = hi_3_1 # /home/jamie/imp/src/Query.jl, line 57:
if lo_2_2 >= hi_2_1 # /home/jamie/imp/src/Query.jl, line 57:
break
end
if lo_3_1 >= hi_3_0 # /home/jamie/imp/src/Query.jl, line 57:
break
end # /home/jamie/imp/src/Query.jl, line 58:
total = 1
end # /home/jamie/imp/src/Query.jl, line 60:
begin # /home/jamie/imp/src/Query.jl, line 61:
if total < 2 # /home/jamie/imp/src/Query.jl, line 62:
(lo_2_2,c) = gallop(index_2_1,index_3_1[lo_3_1],lo_2_2,hi_2_1,0) # /home/jamie/imp/src/Query.jl, line 63:
total = if c == 0
total + 1
else
1
end # /home/jamie/imp/src/Query.jl, line 64:
if lo_2_2 >= hi_2_1 # /home/jamie/imp/src/Query.jl, line 64:
break
end
end
end
begin # /home/jamie/imp/src/Query.jl, line 61:
if total < 2 # /home/jamie/imp/src/Query.jl, line 62:
(lo_3_1,c) = gallop(index_3_1,index_2_1[lo_2_2],lo_3_1,hi_3_0,0) # /home/jamie/imp/src/Query.jl, line 63:
total = if c == 0
total + 1
else
1
end # /home/jamie/imp/src/Query.jl, line 64:
if lo_3_1 >= hi_3_0 # /home/jamie/imp/src/Query.jl, line 64:
break
end
end
end
end
end
end
end
end
end
end # /home/jamie/imp/src/Query.jl, line 346:
Relation(tuple(results_1,results_2),2)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment