

def _print_Symbol(self, s):
    val = self.tmp_var.get(s)
    if val:
        return val
    (array, idx) = self.func_arg_map.get(s, [None, 0])
    if (not array):
        raise LookupError(('Symbol not found: %s' % s))
    array_ptr = self.builder.gep(array, [ll.Constant(ll.IntType(32), idx)])
    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_Symbol/original