def compute_memory_extents(context, builder, lower, upper, data):
 data_ptr_as_int = builder.ptrtoint(data, lower.type)
 start = builder.add(data_ptr_as_int, lower)
 end = builder.add(data_ptr_as_int, upper)
 return (start, end)

def compute_memory_extents ( context , builder , lower , upper , data ) : data_ptr_as_int = builder . ptrtoint ( data , lower . type ) start = builder . add ( data_ptr_as_int , lower ) end = builder . add ( data_ptr_as_int , upper ) return ( start , end )
given [lower .