

def _print_Indexed(self, expr):
    (array, idx) = self.func_arg_map[expr.base]
    offset = int(expr.indices[0].evalf())
    array_ptr = self.builder.gep(array, [ll.Constant(ll.IntType(32), offset)])
    fp_array_ptr = self.builder.bitcast(array_ptr, ll.PointerType(self.fp_type))
    value = self.builder.load(fp_array_ptr)
    return value

dataset/ETHPy150Open sympy/sympy/sympy/printing/llvmjitcode.py LLVMJitCallbackPrinter._print_Indexed/original