after_merge
stringlengths
28
79.6k
before_merge
stringlengths
20
79.6k
url
stringlengths
38
71
full_traceback
stringlengths
43
922k
traceback_type
stringclasses
555 values
def get_parfor_reductions(parfor, parfor_params, reductions=None, names=None): """get variables that are accumulated using inplace_binop inside the parfor and need to be passed as reduction parameters to gufunc. """ if reductions is None: reductions = {} if names is None: names = [] ...
def get_parfor_reductions(parfor): """get variables that are accumulated using inplace_binop inside the parfor and need to be passed as reduction parameters to gufunc. """ last_label = max(parfor.loop_body.keys()) reductions = {} names = [] parfor_params = get_parfor_params(parfor) for b...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def parfor_defs(parfor, use_set=None, def_set=None): """list variables written in this parfor by recursively calling compute_use_defs() on body and combining block defs. """ if use_set is None: use_set = set() if def_set is None: def_set = set() blocks = wrap_parfor_blocks(parfor...
def parfor_defs(parfor): """list variables written in this parfor by recursively calling compute_use_defs() on body and combining block defs. """ all_defs = set() # index variables are sematically defined here for l in parfor.loop_nests: all_defs.add(l.index_variable.name) # all def...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def maximize_fusion(blocks): call_table, _ = get_call_table(blocks) for block in blocks.values(): order_changed = True while order_changed: order_changed = False i = 0 while i < len(block.body) - 2: stmt = block.body[i] next_stm...
def maximize_fusion(blocks): for block in blocks.values(): order_changed = True while order_changed: order_changed = False i = 0 while i < len(block.body) - 2: stmt = block.body[i] next_stmt = block.body[i + 1] # swa...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def try_fuse(parfor1, parfor2): """try to fuse parfors and return a fused parfor, otherwise return None""" dprint("try_fuse trying to fuse \n", parfor1, "\n", parfor2) # fusion of parfors with different dimensions not supported yet if len(parfor1.loop_nests) != len(parfor2.loop_nests): dprint("...
def try_fuse(parfor1, parfor2): """try to fuse parfors and return a fused parfor, otherwise return None""" dprint("try_fuse trying to fuse \n", parfor1, "\n", parfor2) # fusion of parfors with different dimensions not supported yet if len(parfor1.loop_nests) != len(parfor1.loop_nests): dprint("...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def remove_dead_parfor(parfor, lives, arg_aliases, alias_map, typemap): # remove dead get/sets in last block # FIXME: I think that "in the last block" is not sufficient in general. We might need to # remove from any block. last_label = max(parfor.loop_body.keys()) last_block = parfor.loop_body[last...
def remove_dead_parfor(parfor, lives, args): # remove dead get/sets in last block # FIXME: I think that "in the last block" is not sufficient in general. We might need to # remove from any block. last_label = max(parfor.loop_body.keys()) last_block = parfor.loop_body[last_label] # save array v...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def remove_dead_parfor_recursive(parfor, lives, arg_aliases, alias_map, typemap): """create a dummy function from parfor and call remove dead recursively""" blocks = parfor.loop_body.copy() # shallow copy is enough first_body_block = min(blocks.keys()) assert first_body_block > 0 # we are using 0 for ...
def remove_dead_parfor_recursive(parfor, lives, args): """create a dummy function from parfor and call remove dead recursively""" blocks = parfor.loop_body.copy() # shallow copy is enough first_body_block = min(blocks.keys()) assert first_body_block > 0 # we are using 0 for init block here last_la...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def wrap_parfor_blocks(parfor): """wrap parfor blocks for analysis/optimization like CFG""" blocks = parfor.loop_body.copy() # shallow copy is enough first_body_block = min(blocks.keys()) assert first_body_block > 0 # we are using 0 for init block here last_label = max(blocks.keys()) loc = blo...
def wrap_parfor_blocks(parfor): """wrap parfor blocks for analysis/optimization like CFG""" blocks = parfor.loop_body.copy() # shallow copy is enough first_body_block = min(blocks.keys()) assert first_body_block > 0 # we are using 0 for init block here last_label = max(blocks.keys()) loc = blo...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def unwrap_parfor_blocks(parfor, blocks=None): """ unwrap parfor blocks after analysis/optimization. Allows changes to the parfor loop. """ if blocks is not None: # make sure init block isn't removed assert 0 in blocks # update loop body blocks blocks.pop(0) p...
def unwrap_parfor_blocks(parfor): last_label = max(parfor.loop_body.keys()) parfor.init_block.body.pop() # remove dummy jump parfor.loop_body[last_label].body.pop() # remove dummy return return
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def get_copies_parfor(parfor, typemap): """find copies generated/killed by parfor""" blocks = wrap_parfor_blocks(parfor) in_copies_parfor, out_copies_parfor = copy_propagate(blocks, typemap) in_gen_copies, in_extra_kill = get_block_copies(blocks, typemap) unwrap_parfor_blocks(parfor) # parfor's...
def get_copies_parfor(parfor, typemap): """find copies generated/killed by parfor""" blocks = wrap_parfor_blocks(parfor) in_copies_parfor, out_copies_parfor = copy_propagate(blocks, typemap) in_gen_copies, in_extra_kill = get_block_copies(blocks, typemap) unwrap_parfor_blocks(parfor) # parfor's...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def get_parfor_call_table(parfor, call_table=None, reverse_call_table=None): if call_table is None: call_table = {} if reverse_call_table is None: reverse_call_table = {} blocks = wrap_parfor_blocks(parfor) call_table, reverse_call_table = get_call_table( blocks, call_table, reve...
def get_parfor_call_table(parfor, call_table={}, reverse_call_table={}): blocks = wrap_parfor_blocks(parfor) call_table, reverse_call_table = get_call_table( blocks, call_table, reverse_call_table ) unwrap_parfor_blocks(parfor) return call_table, reverse_call_table
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def get_parfor_tuple_table(parfor, tuple_table=None): if tuple_table is None: tuple_table = {} blocks = wrap_parfor_blocks(parfor) tuple_table = ir_utils.get_tuple_table(blocks, tuple_table) unwrap_parfor_blocks(parfor) return tuple_table
def get_parfor_tuple_table(parfor, tuple_table={}): blocks = wrap_parfor_blocks(parfor) tuple_table = ir_utils.get_tuple_table(blocks, tuple_table) unwrap_parfor_blocks(parfor) return tuple_table
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def _exec_command(command, use_shell=None, use_tee=None, **env): """ Internal workhorse for exec_command(). Code from https://github.com/numpy/numpy/pull/7862 """ if use_shell is None: use_shell = os.name == "posix" if use_tee is None: use_tee = os.name == "posix" executable...
def _exec_command(command, use_shell=None, use_tee=None, **env): """ Internal workhorse for exec_command(). Code from https://github.com/numpy/numpy/pull/7862 """ if use_shell is None: use_shell = os.name == "posix" if use_tee is None: use_tee = os.name == "posix" executable...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def match(self, func_ir, block, typemap, calltypes): self.prints = prints = {} self.block = block # Find all assignments with a right-hand print() call for inst in block.find_insts(ir.Assign): if isinstance(inst.value, ir.Expr) and inst.value.op == "call": expr = inst.value ...
def match(self, interp, block, typemap, calltypes): self.prints = prints = {} self.block = block # Find all assignments with a right-hand print() call for inst in block.find_insts(ir.Assign): if isinstance(inst.value, ir.Expr) and inst.value.op == "call": expr = inst.value ...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def match(self, func_ir, block, typemap, calltypes): self.consts = consts = {} self.block = block for inst in block.find_insts(ir.Print): if inst.consts: # Already rewritten continue for idx, var in enumerate(inst.args): try: const = func_i...
def match(self, interp, block, typemap, calltypes): self.consts = consts = {} self.block = block for inst in block.find_insts(ir.Print): if inst.consts: # Already rewritten continue for idx, var in enumerate(inst.args): try: const = interp....
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def match(self, func_ir, block, typemap, calltypes): """ Look for potential macros for expand and store their expansions. """ self.block = block self.rewrites = rewrites = {} for inst in block.body: if isinstance(inst, ir.Assign): rhs = inst.value if ( ...
def match(self, interp, block, typemap, calltypes): """ Look for potential macros for expand and store their expansions. """ self.block = block self.rewrites = rewrites = {} for inst in block.body: if isinstance(inst, ir.Assign): rhs = inst.value if ( ...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def _expand_callable_macro(self, func_ir, call, macro, loc): """ Return the IR expression of expanding the macro call. """ assert macro.callable # Resolve all macro arguments as constants, or fail args = [func_ir.infer_constant(arg.name) for arg in call.args] kws = {} for k, v in call.k...
def _expand_callable_macro(self, interp, call, macro, loc): """ Return the IR expression of expanding the macro call. """ assert macro.callable # Resolve all macro arguments as constants, or fail args = [interp.infer_constant(arg.name) for arg in call.args] kws = {} for k, v in call.kws...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def match(self, func_ir, block, typemap, calltypes): """Overload this method to check an IR block for matching terms in the rewrite. """ return False
def match(self, block, typemap, calltypes): """Overload this method to check an IR block for matching terms in the rewrite. """ return False
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def register(self, kind): """ Decorator adding a subclass of Rewrite to the registry for the given *kind*. """ if kind not in self._kinds: raise KeyError("invalid kind %r" % (kind,)) def do_register(rewrite_cls): if not issubclass(rewrite_cls, Rewrite): raise TypeErr...
def register(self, kind): """ Decorator adding a subclass of Rewrite to the registry for the given *kind*. """ if not kind in self._kinds: raise KeyError("invalid kind %r" % (kind,)) def do_register(rewrite_cls): if not issubclass(rewrite_cls, Rewrite): raise TypeErr...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def apply(self, kind, pipeline, func_ir): """Given a pipeline and a dictionary of basic blocks, exhaustively attempt to apply all registered rewrites to all basic blocks. """ assert kind in self._kinds blocks = func_ir.blocks old_blocks = blocks.copy() for rewrite_cls in self.rewrites[kind]:...
def apply(self, kind, pipeline, interp): """Given a pipeline and a dictionary of basic blocks, exhaustively attempt to apply all registered rewrites to all basic blocks. """ assert kind in self._kinds blocks = interp.blocks old_blocks = blocks.copy() for rewrite_cls in self.rewrites[kind]: ...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def match(self, func_ir, block, typemap, calltypes): self.static_lhs = {} self.static_rhs = {} self.block = block # Find binop expressions with a constant lhs or rhs for expr in block.find_exprs(op="binop"): try: if expr.fn in self.rhs_operators and expr.static_rhs is ir.UNDEFINE...
def match(self, interp, block, typemap, calltypes): self.static_lhs = {} self.static_rhs = {} self.block = block # Find binop expressions with a constant lhs or rhs for expr in block.find_exprs(op="binop"): try: if expr.fn in self.rhs_operators and expr.static_rhs is ir.UNDEFINED...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def match(self, func_ir, block, typemap, calltypes): self.getitems = getitems = {} self.block = block # Detect all getitem expressions and find which ones can be # rewritten for expr in block.find_exprs(op="getitem"): if expr.op == "getitem": try: const = func_ir....
def match(self, interp, block, typemap, calltypes): self.getitems = getitems = {} self.block = block # Detect all getitem expressions and find which ones can be # rewritten for expr in block.find_exprs(op="getitem"): if expr.op == "getitem": try: const = interp.in...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def match(self, func_ir, block, typemap, calltypes): self.setitems = setitems = {} self.block = block # Detect all setitem statements and find which ones can be # rewritten for inst in block.find_insts(ir.SetItem): try: const = func_ir.infer_constant(inst.index) except er...
def match(self, interp, block, typemap, calltypes): self.setitems = setitems = {} self.block = block # Detect all setitem statements and find which ones can be # rewritten for inst in block.find_insts(ir.SetItem): try: const = interp.infer_constant(inst.index) except erro...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def _break_constant(self, const): """ Break down constant exception. """ if isinstance(const, BaseException): return const.__class__, const.args elif self._is_exception_type(const): return const, None else: raise NotImplementedError("unsupported exception constant %r" % (...
def _break_constant(self, interp, const): """ Break down constant exception. """ if isinstance(const, BaseException): return const.__class__, const.args elif self._is_exception_type(const): return const, None else: raise NotImplementedError("unsupported exception constant...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def match(self, func_ir, block, typemap, calltypes): self.raises = raises = {} self.block = block # Detect all raise statements and find which ones can be # rewritten for inst in block.find_insts(ir.Raise): if inst.exception is None: # re-reraise exc_type, exc_args = ...
def match(self, interp, block, typemap, calltypes): self.raises = raises = {} self.block = block # Detect all raise statements and find which ones can be # rewritten for inst in block.find_insts(ir.Raise): if inst.exception is None: # re-reraise exc_type, exc_args = N...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def _partition(A, low, high): mid = (low + high) >> 1 # NOTE: the pattern of swaps below for the pivot choice and the # partitioning gives good results (i.e. regular O(n log n)) # on sorted, reverse-sorted, and uniform arrays. Subtle changes # risk breaking this property. # Use median of three...
def _partition(A, low, high): mid = (low + high) >> 1 # NOTE: the pattern of swaps below for the pivot choice and the # partitioning gives good results (i.e. regular O(n log n)) # on sorted, reverse-sorted, and uniform arrays. Subtle changes # risk breaking this property. # Use median of three...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def enum_eq(context, builder, sig, args): tu, tv = sig.args u, v = args res = context.generic_compare(builder, "==", (tu.dtype, tv.dtype), (u, v)) return impl_ret_untracked(context, builder, sig.return_type, res)
def enum_eq(context, builder, sig, args): tu, tv = sig.args u, v = args res = context.generic_compare(builder, "!=", (tu.dtype, tv.dtype), (u, v)) return impl_ret_untracked(context, builder, sig.return_type, res)
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def _build_array(context, builder, array_ty, input_types, inputs): """Utility function to handle allocation of an implicit output array given the target context, builder, output array type, and a list of _ArrayHelper instances. """ intp_ty = context.get_value_type(types.intp) def make_intp_cons...
def _build_array(context, builder, array_ty, input_types, inputs): """Utility function to handle allocation of an implicit output array given the target context, builder, output array type, and a list of _ArrayHelper instances. """ intp_ty = context.get_value_type(types.intp) def make_intp_cons...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def print_item_impl(context, builder, sig, args): """ Print a single native value by boxing it in a Python object and invoking the Python interpreter's print routine. """ (ty,) = sig.args (val,) = args pyapi = context.get_python_api(builder) env_manager = context.get_env_manager(builder...
def print_item_impl(context, builder, sig, args): """ Print a single native value by boxing it in a Python object and invoking the Python interpreter's print routine. """ (ty,) = sig.args (val,) = args pyapi = context.get_python_api(builder) if context.enable_nrt: context.nrt.i...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def make_range_impl(int_type, range_state_type, range_iter_type): RangeState = cgutils.create_struct_proxy(range_state_type) @lower_builtin(range, int_type) @lower_builtin(prange, int_type) def range1_impl(context, builder, sig, args): """ range(stop: int) -> range object """ ...
def make_range_impl(int_type, range_state_type, range_iter_type): RangeState = cgutils.create_struct_proxy(range_state_type) @lower_builtin(range, int_type) def range1_impl(context, builder, sig, args): """ range(stop: int) -> range object """ [stop] = args state = R...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def range_iter_len(typingctx, val): """ An implementation of len(range_iter) for internal use. """ if isinstance(val, types.RangeIteratorType): val_type = val.yield_type def codegen(context, builder, sig, args): (value,) = args iter_type = range_impl_map[val_type...
def range_iter_len(typingctx, val): """ An implementation of len(range_iter) for internal use. """ if isinstance(val, types.RangeIteratorType): val_type = val.yield_type def codegen(context, builder, sig, args): (value,) = args iter_type = range_impl_map[val_type...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def codegen(context, builder, sig, args): (iterty,) = sig.args (value,) = args intp_t = context.get_value_type(types.intp) iterobj = context.make_helper(builder, iterty, value=value) arrayty = iterty.array_type ary = make_array(arrayty)(context, builder, value=iterobj.array) shape = cgutils....
def codegen(context, builder, sig, args): (value,) = args iter_type = range_impl_map[val_type][1] state = cgutils.create_struct_proxy(iter_type)(context, builder, value) int_type = state.count.type return impl_ret_untracked(context, builder, int_type, builder.load(state.count))
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def refine(self, typeinfer, target_type): # Do not back-propagate to locked variables (e.g. constants) assert target_type.is_precise() typeinfer.add_type(self.src, target_type, unless_locked=True, loc=self.loc)
def refine(self, typeinfer, target_type): # Do not back-propagate to locked variables (e.g. constants) typeinfer.add_type(self.src, target_type, unless_locked=True, loc=self.loc)
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def __call__(self, typeinfer): with new_error_context("typing of argument at {0}", self.loc): typevars = typeinfer.typevars src = typevars[self.src] if not src.defined: return ty = src.getone() if isinstance(ty, types.Omitted): ty = typeinfer.context.r...
def __call__(self, typeinfer): with new_error_context("typing of argument at {0}", self.loc): typevars = typeinfer.typevars src = typevars[self.src] if not src.defined: return ty = src.getone() if isinstance(ty, types.Omitted): ty = typeinfer.context.r...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def __call__(self, typeinfer): with new_error_context("typing of tuple at {0}", self.loc): typevars = typeinfer.typevars tsets = [typevars[i.name].get() for i in self.items] oset = typevars[self.target] for vals in itertools.product(*tsets): if vals and all(vals[0] == v f...
def __call__(self, typeinfer): with new_error_context("typing of tuple at {0}", self.loc): typevars = typeinfer.typevars tsets = [typevars[i.name].get() for i in self.items] oset = typevars[self.target] for vals in itertools.product(*tsets): if vals and all(vals[0] == v f...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def __call__(self, typeinfer): with new_error_context("typing of exhaust iter at {0}", self.loc): typevars = typeinfer.typevars oset = typevars[self.target] for tp in typevars[self.iterator.name].get(): # unpack optional tp = tp.type if isinstance(tp, types.Optional) ...
def __call__(self, typeinfer): with new_error_context("typing of exhaust iter at {0}", self.loc): typevars = typeinfer.typevars oset = typevars[self.target] for tp in typevars[self.iterator.name].get(): # unpack optional tp = tp.type if isinstance(tp, types.Optional) ...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def __call__(self, typeinfer): with new_error_context("typing of pair-first at {0}", self.loc): typevars = typeinfer.typevars oset = typevars[self.target] for tp in typevars[self.pair.name].get(): if not isinstance(tp, types.Pair): # XXX is this an error? ...
def __call__(self, typeinfer): with new_error_context("typing of pair-first at {0}", self.loc): typevars = typeinfer.typevars oset = typevars[self.target] for tp in typevars[self.pair.name].get(): if not isinstance(tp, types.Pair): # XXX is this an error? ...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def __call__(self, typeinfer): with new_error_context("typing of pair-second at {0}", self.loc): typevars = typeinfer.typevars oset = typevars[self.target] for tp in typevars[self.pair.name].get(): if not isinstance(tp, types.Pair): # XXX is this an error? ...
def __call__(self, typeinfer): with new_error_context("typing of pair-second at {0}", self.loc): typevars = typeinfer.typevars oset = typevars[self.target] for tp in typevars[self.pair.name].get(): if not isinstance(tp, types.Pair): # XXX is this an error? ...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def __call__(self, typeinfer): with new_error_context("typing of static-get-item at {0}", self.loc): typevars = typeinfer.typevars oset = typevars[self.target] for ty in typevars[self.value.name].get(): itemty = typeinfer.context.resolve_static_getitem( value=ty, ...
def __call__(self, typeinfer): with new_error_context("typing of static-get-item at {0}", self.loc): typevars = typeinfer.typevars oset = typevars[self.target] for ty in typevars[self.value.name].get(): itemty = typeinfer.context.resolve_static_getitem( value=ty, ...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def resolve(self, typeinfer, typevars, fnty): assert fnty context = typeinfer.context r = fold_arg_vars(typevars, self.args, self.vararg, self.kws) if r is None: # Cannot resolve call type until all argument types are known return pos_args, kw_args = r # Check argument to be pr...
def resolve(self, typeinfer, typevars, fnty): assert fnty context = typeinfer.context r = fold_arg_vars(typevars, self.args, self.vararg, self.kws) if r is None: # Cannot resolve call type until all argument types are known return pos_args, kw_args = r # Resolve call type s...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def __call__(self, typeinfer): with new_error_context("typing of get attribute at {0}", self.loc): typevars = typeinfer.typevars valtys = typevars[self.value.name].get() for ty in valtys: attrty = typeinfer.context.resolve_getattr(ty, self.attr) if attrty is None: ...
def __call__(self, typeinfer): with new_error_context("typing of get attribute at {0}", self.loc): typevars = typeinfer.typevars valtys = typevars[self.value.name].get() for ty in valtys: attrty = typeinfer.context.resolve_getattr(ty, self.attr) if attrty is None: ...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def refine(self, typeinfer, target_type): if isinstance(target_type, types.BoundFunction): recvr = target_type.this assert recvr.is_precise() typeinfer.add_type(self.value.name, recvr, loc=self.loc) source_constraint = typeinfer.refine_map.get(self.value.name) if source_const...
def refine(self, typeinfer, target_type): if isinstance(target_type, types.BoundFunction): recvr = target_type.this typeinfer.add_type(self.value.name, recvr, loc=self.loc) source_constraint = typeinfer.refine_map.get(self.value.name) if source_constraint is not None: sou...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def __call__(self, typeinfer): with new_error_context("typing of setitem at {0}", self.loc): typevars = typeinfer.typevars if not all( typevars[var.name].defined for var in (self.target, self.index, self.value) ): return targetty = typevars[self.target.name].g...
def __call__(self, typeinfer): with new_error_context("typing of setitem at {0}", self.loc): typevars = typeinfer.typevars if not all( typevars[var.name].defined for var in (self.target, self.index, self.value) ): return targetty = typevars[self.target.name].g...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def __init__(self, context, func_ir, warnings): self.context = context # sort based on label, ensure iteration order! self.blocks = OrderedDict() for k in sorted(func_ir.blocks.keys()): self.blocks[k] = func_ir.blocks[k] self.generator_info = func_ir.generator_info self.func_id = func_ir...
def __init__(self, context, func_ir, warnings): self.context = context self.blocks = func_ir.blocks self.generator_info = func_ir.generator_info self.func_id = func_ir.func_id self.func_ir = func_ir self.typevars = TypeVarMap() self.typevars.set_context(context) self.constraints = Const...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def constrain_statement(self, inst): if isinstance(inst, ir.Assign): self.typeof_assign(inst) elif isinstance(inst, ir.SetItem): self.typeof_setitem(inst) elif isinstance(inst, ir.StaticSetItem): self.typeof_static_setitem(inst) elif isinstance(inst, ir.DelItem): self.typ...
def constrain_statement(self, inst): if isinstance(inst, ir.Assign): self.typeof_assign(inst) elif isinstance(inst, ir.SetItem): self.typeof_setitem(inst) elif isinstance(inst, ir.StaticSetItem): self.typeof_static_setitem(inst) elif isinstance(inst, ir.DelItem): self.typ...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def unify(self, typingctx, other): """ Unify this with the *other* Array. """ # If other is array and the ndim matches if isinstance(other, Array) and other.ndim == self.ndim: # If dtype matches or other.dtype is undefined (inferred) if other.dtype == self.dtype or not other.dtype.is...
def unify(self, typingctx, other): """ Unify this with the *other* Array. """ if ( isinstance(other, Array) and other.ndim == self.ndim and other.dtype == self.dtype ): if self.layout == other.layout: layout = self.layout else: layout =...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def generic(self, args, kws): assert not kws ary, idx, val = args if not isinstance(ary, types.Buffer): return if not ary.mutable: raise TypeError("Cannot modify value of type %s" % (ary,)) out = get_array_index_type(ary, idx) if out is None: return idx = out.index ...
def generic(self, args, kws): assert not kws ary, idx, val = args if not isinstance(ary, types.Buffer): return if not ary.mutable: raise TypeError("Cannot modify value of type %s" % (ary,)) out = get_array_index_type(ary, idx) if out is None: return idx = out.index ...
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def generic_expand(self, args, kws): assert not args assert not kws return signature(_expand_integer(self.this.dtype), recvr=self.this)
def generic_expand(self, args, kws): return signature(_expand_integer(self.this.dtype), recvr=self.this)
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def generic_expand_cumulative(self, args, kws): assert not args assert not kws assert isinstance(self.this, types.Array) return_type = types.Array( dtype=_expand_integer(self.this.dtype), ndim=1, layout="C" ) return signature(return_type, recvr=self.this)
def generic_expand_cumulative(self, args, kws): assert isinstance(self.this, types.Array) return_type = types.Array( dtype=_expand_integer(self.this.dtype), ndim=1, layout="C" ) return signature(return_type, recvr=self.this)
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def generic(self, args, kws): (arg,) = args return signature(types.none, *args)
def generic(self, args, kws): (arg,) = args if self.is_accepted_type(arg): return signature(types.none, *args)
https://github.com/numba/numba/issues/25
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-15-3b23f7331ceb> in <module>() ----> 1 @jit(arg_types=[numba.double], ret_type=numba.double) 2 def is_REALLY_five(some_value): 3 for i in range(5): 4...
TypeError
def run(self, fd, iovec, iovcnt): if iovec.symbolic or iovcnt.symbolic: raise angr.errors.SimPosixError("Can't handle symbolic arguments to readv") iovcnt = self.state.solver.eval(iovcnt) res = 0 for element in self.state.mem[iovec].struct.iovec.array(iovcnt).resolved: tmpres = self.inli...
def run(self, fd, iovec, iovcnt): if iovec.symbolic or iovcnt.symbolic: raise angr.errors.SimPosixError("Can't handle symbolic arguments to readv") iovcnt = self.state.solver.eval(iovcnt) res = 0 for element in self.state.mem[iovec].struct.iovec.array(iovcnt).resolved: tmpres = self.inli...
https://github.com/angr/angr/issues/2447
Traceback (most recent call last): File "try.py", line 5, in <module> sm.explore() File "/home/berlinm/.local/lib/python3.7/site-packages/angr/sim_manager.py", line 239, in explore self.run(stash=stash, n=n, **kwargs) File "/home/berlinm/.local/lib/python3.7/site-packages/angr/sim_manager.py", line 261, in run self.ste...
AttributeError
def _indirect_jump_encountered( self, addr: int, cfg_node: CFGNode, irsb: pyvex.IRSB, func_addr: int, stmt_idx: Union[int, str] = DEFAULT_STATEMENT, ) -> Tuple[bool, List[int], Optional[IndirectJump]]: """ Called when we encounter an indirect jump. We will try to resolve this indirect ju...
def _indirect_jump_encountered( self, addr, cfg_node, irsb, func_addr, stmt_idx=DEFAULT_STATEMENT ): """ Called when we encounter an indirect jump. We will try to resolve this indirect jump using timeless (fast) indirect jump resolvers. If it cannot be resolved, we will see if this indirect jump has bee...
https://github.com/angr/angr/issues/2448
import angr p = angr.Project("get") cfg = p.analyses.CFGEmulated() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/manuel/.virtualenvs/angr/lib/python3.8/site-packages/angr/analyses/analysis.py", line 115, in __call__ oself.__init__(*args, **kwargs) File "/home/manuel/.virtualenvs/ang...
IndexError
def _get_successors(self, job): """ Get a collection of successors out of the current job. :param CFGJob job: The CFGJob instance. :return: A collection of successors. :rtype: list """ addr = job.addr sim_successors = job.sim_successors cfg_node = job.cfg_no...
def _get_successors(self, job): """ Get a collection of successors out of the current job. :param CFGJob job: The CFGJob instance. :return: A collection of successors. :rtype: list """ addr = job.addr sim_successors = job.sim_successors cfg_node = job.cfg_no...
https://github.com/angr/angr/issues/2448
import angr p = angr.Project("get") cfg = p.analyses.CFGEmulated() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/manuel/.virtualenvs/angr/lib/python3.8/site-packages/angr/analyses/analysis.py", line 115, in __call__ oself.__init__(*args, **kwargs) File "/home/manuel/.virtualenvs/ang...
IndexError
def _make_returns(self, ail_graph: networkx.DiGraph) -> networkx.DiGraph: """ Work on each return statement and fill in its return expressions. """ if self.function.calling_convention is None: # unknown calling convention. cannot do much about return expressions. return ail_graph #...
def _make_returns(self, ail_graph: networkx.DiGraph): """ Work on each return statement and fill in its return expressions. """ # Block walker def _handle_Return( stmt_idx: int, stmt: ailment.Stmt.Return, block: Optional[ailment.Block] ): # pylint:disable=unused-argument if ( ...
https://github.com/angr/angr/issues/2444
Traceback (most recent call last): File "/home/dnivra/angr-dev/angr-management/angrmanagement/ui/main_window.py", line 496, in decompile_current_function self.workspace.decompile_current_function() File "/home/dnivra/angr-dev/angr-management/angrmanagement/ui/workspace.py", line 265, in decompile_current_function view....
AttributeError
def _analyze_function(self) -> Optional[SimCC]: """ Go over the variable information in variable manager for this function, and return all uninitialized register/stack variables. """ if self._function.is_simprocedure or self._function.is_plt: # we do not analyze SimProcedures or PLT stubs ...
def _analyze_function(self) -> Optional[SimCC]: """ Go over the variable information in variable manager for this function, and return all uninitialized register/stack variables. """ if self._function.is_simprocedure or self._function.is_plt: # we do not analyze SimProcedures or PLT stubs ...
https://github.com/angr/angr/issues/2444
Traceback (most recent call last): File "/home/dnivra/angr-dev/angr-management/angrmanagement/ui/main_window.py", line 496, in decompile_current_function self.workspace.decompile_current_function() File "/home/dnivra/angr-dev/angr-management/angrmanagement/ui/workspace.py", line 265, in decompile_current_function view....
AttributeError
def _args_from_vars(self, variables: List, var_manager): """ Derive function arguments from input variables. :param variables: :param var_manager: The variable manager of this function. :return: """ args = set() if not self.project.arch.call_pushes_ret: ret_addr_offset = 0 ...
def _args_from_vars(self, variables): """ :param list variables: :return: """ args = set() if not self.project.arch.call_pushes_ret: ret_addr_offset = 0 else: ret_addr_offset = self.project.arch.bytes for variable in variables: if isinstance(variable, SimStack...
https://github.com/angr/angr/issues/2444
Traceback (most recent call last): File "/home/dnivra/angr-dev/angr-management/angrmanagement/ui/main_window.py", line 496, in decompile_current_function self.workspace.decompile_current_function() File "/home/dnivra/angr-dev/angr-management/angrmanagement/ui/workspace.py", line 265, in decompile_current_function view....
AttributeError
def _is_sane_register_variable(self, variable: SimRegisterVariable) -> bool: """ Filters all registers that are surly not members of function arguments. This can be seen as a workaround, since VariableRecoveryFast sometimes gives input variables of cc_ndep (which is a VEX-specific register) :-( :pa...
def _is_sane_register_variable(self, variable): """ Filters all registers that are surly not members of function arguments. This can be seen as a workaround, since VariableRecoveryFast sometimes gives input variables of cc_ndep (which is a VEX-specific register) :-( :param SimRegisterVariable varia...
https://github.com/angr/angr/issues/2444
Traceback (most recent call last): File "/home/dnivra/angr-dev/angr-management/angrmanagement/ui/main_window.py", line 496, in decompile_current_function self.workspace.decompile_current_function() File "/home/dnivra/angr-dev/angr-management/angrmanagement/ui/workspace.py", line 265, in decompile_current_function view....
AttributeError
def _create_job_call( self, addr, irsb, cfg_node, stmt_idx, ins_addr, current_function_addr, target_addr, jumpkind, is_syscall=False, ): """ Generate a CFGJob for target address, also adding to _pending_entries if returning to succeeding position (if irsb arg is popul...
def _create_job_call( self, addr, irsb, cfg_node, stmt_idx, ins_addr, current_function_addr, target_addr, jumpkind, is_syscall=False, ): """ Generate a CFGJob for target address, also adding to _pending_entries if returning to succeeding position (if irsb arg is popul...
https://github.com/angr/angr/issues/2444
Traceback (most recent call last): File "/home/dnivra/angr-dev/angr-management/angrmanagement/ui/main_window.py", line 496, in decompile_current_function self.workspace.decompile_current_function() File "/home/dnivra/angr-dev/angr-management/angrmanagement/ui/workspace.py", line 265, in decompile_current_function view....
AttributeError
def blocks(self): """ An iterator of all local blocks in the current function. :return: angr.lifter.Block instances. """ for block_addr, block in self._local_blocks.items(): try: yield self.get_block( block_addr, size=block.size, ...
def blocks(self): """ An iterator of all local blocks in the current function. :return: angr.lifter.Block instances. """ for block_addr, block in self._local_blocks.items(): try: yield self._get_block( block_addr, size=block.size, ...
https://github.com/angr/angr/issues/2444
Traceback (most recent call last): File "/home/dnivra/angr-dev/angr-management/angrmanagement/ui/main_window.py", line 496, in decompile_current_function self.workspace.decompile_current_function() File "/home/dnivra/angr-dev/angr-management/angrmanagement/ui/workspace.py", line 265, in decompile_current_function view....
AttributeError
def subgraph(self, ins_addrs): """ Generate a sub control flow graph of instruction addresses based on self.graph :param iterable ins_addrs: A collection of instruction addresses that should be included in the subgraph. :return networkx.DiGraph: A subgraph. """ # find all basic blocks that inc...
def subgraph(self, ins_addrs): """ Generate a sub control flow graph of instruction addresses based on self.graph :param iterable ins_addrs: A collection of instruction addresses that should be included in the subgraph. :return networkx.DiGraph: A subgraph. """ # find all basic blocks that inc...
https://github.com/angr/angr/issues/2444
Traceback (most recent call last): File "/home/dnivra/angr-dev/angr-management/angrmanagement/ui/main_window.py", line 496, in decompile_current_function self.workspace.decompile_current_function() File "/home/dnivra/angr-dev/angr-management/angrmanagement/ui/workspace.py", line 265, in decompile_current_function view....
AttributeError
def instruction_size(self, insn_addr): """ Get the size of the instruction specified by `insn_addr`. :param int insn_addr: Address of the instruction :return int: Size of the instruction in bytes, or None if the instruction is not found. """ for b in self.blocks: block = self.get_block...
def instruction_size(self, insn_addr): """ Get the size of the instruction specified by `insn_addr`. :param int insn_addr: Address of the instruction :return int: Size of the instruction in bytes, or None if the instruction is not found. """ for b in self.blocks: block = self._get_bloc...
https://github.com/angr/angr/issues/2444
Traceback (most recent call last): File "/home/dnivra/angr-dev/angr-management/angrmanagement/ui/main_window.py", line 496, in decompile_current_function self.workspace.decompile_current_function() File "/home/dnivra/angr-dev/angr-management/angrmanagement/ui/workspace.py", line 265, in decompile_current_function view....
AttributeError
def __init__(self, variable, access_type, location): self.variable = variable self.access_type = access_type self.location: "CodeLocation" = location
def __init__(self, variable, access_type, location): self.variable = variable self.access_type = access_type self.location = location
https://github.com/angr/angr/issues/2444
Traceback (most recent call last): File "/home/dnivra/angr-dev/angr-management/angrmanagement/ui/main_window.py", line 496, in decompile_current_function self.workspace.decompile_current_function() File "/home/dnivra/angr-dev/angr-management/angrmanagement/ui/workspace.py", line 265, in decompile_current_function view....
AttributeError
def get_variables( self, sort=None, collapse_same_ident=False ) -> List[Union[SimStackVariable, SimRegisterVariable]]: """ Get a list of variables. :param str or None sort: Sort of the variable to get. :param collapse_same_ident: Whether variables of the same identifier should be collapsed or no...
def get_variables(self, sort=None, collapse_same_ident=False): """ Get a list of variables. :param str or None sort: Sort of the variable to get. :param collapse_same_ident: Whether variables of the same identifier should be collapsed or not. :return: A list of variables. ...
https://github.com/angr/angr/issues/2444
Traceback (most recent call last): File "/home/dnivra/angr-dev/angr-management/angrmanagement/ui/main_window.py", line 496, in decompile_current_function self.workspace.decompile_current_function() File "/home/dnivra/angr-dev/angr-management/angrmanagement/ui/workspace.py", line 265, in decompile_current_function view....
AttributeError
def _next_code_addr_core(self): """ Call _next_unscanned_addr() first to get the next address that is not scanned. Then check if data locates at that address seems to be code or not. If not, we'll continue to for the next un-scanned address. """ next_addr = self._next_unscanned_addr() if next_a...
def _next_code_addr_core(self): """ Call _next_unscanned_addr() first to get the next address that is not scanned. Then check if data locates at that address seems to be code or not. If not, we'll continue to for the next un-scanned address. """ next_addr = self._next_unscanned_addr() if next_a...
https://github.com/angr/angr/issues/2201
Traceback (most recent call last): File "test.py", line 4, in <module> cfg = proj.analyses.CFGFast(show_progressbar=True) File "/home/angr_fork/angr/analyses/analysis.py", line 115, in __call__ oself.__init__(*args, **kwargs) File "/home/angr_fork/angr/analyses/cfg/cfg_fast.py", line 653, in __init__ self._analyze() Fi...
TypeError
def _next_code_addr(self): while True: try: addr = self._next_code_addr_core() except ContinueScanningNotification: continue if addr is None: return None # if the new address is already occupied if not self._seg_list.is_occupied(addr): ...
def _next_code_addr(self): while True: addr = self._next_code_addr_core() if addr is None: return None # if the new address is already occupied if not self._seg_list.is_occupied(addr): return addr
https://github.com/angr/angr/issues/2201
Traceback (most recent call last): File "test.py", line 4, in <module> cfg = proj.analyses.CFGFast(show_progressbar=True) File "/home/angr_fork/angr/analyses/analysis.py", line 115, in __call__ oself.__init__(*args, **kwargs) File "/home/angr_fork/angr/analyses/cfg/cfg_fast.py", line 653, in __init__ self._analyze() Fi...
TypeError
def _return_from_call(self, from_func, to_node, to_outside=False): self.transition_graph.add_edge( from_func, to_node, type="return", to_outside=to_outside ) for _, _, data in self.transition_graph.in_edges(to_node, data=True): if "type" in data and data["type"] == "fake_return": ...
def _return_from_call(self, from_func, to_node, to_outside=False): self.transition_graph.add_edge( from_func, to_node, type="real_return", to_outside=to_outside ) for _, _, data in self.transition_graph.in_edges(to_node, data=True): if "type" in data and data["type"] == "fake_return": ...
https://github.com/angr/angr/issues/2101
File "angr/angr/angrdb/db.py", line 36, in open_db yield Session File "angr/angr/angrdb/db.py", line 143, in dump KnowledgeBaseSerializer.dump(session, self.project.kb) File "angr/angr/angrdb/serializers/kb.py", line 36, in dump FunctionManagerSerializer.dump(session, db_kb, kb.functions) File "angr/angr/angrdb/seriali...
TypeError
def __repr__(self): return "<XRef %s: %s->%s>" % ( self.type_string, "%#x" % self.ins_addr if self.ins_addr is not None else "%#x[%d]" % (self.block_addr, self.stmt_idx), "%s" % self.dst if self.dst is not None else "%#x" % (self.memory_data.addr), )
def __repr__(self): return "<XRef %s: %s->%s>" % ( XRefType.to_string(self.type), "%#x" % self.ins_addr if self.ins_addr is not None else "%#x[%d]" % (self.block_addr, self.stmt_idx), "%#x" % (self.dst if self.dst is not None else self.memory_data.addr), )
https://github.com/angr/angr/issues/1727
TypeError Traceback (most recent call last) ----> 5 print(p.kb.xrefs.xrefs_by_ins_addr) ~/angr-dev/angr/angr/knowledge_plugins/xrefs/xref.py in __repr__(self) 43 XRefType.to_string(self.type), 44 "%#x" % self.ins_addr if self.ins_addr is not None else "%#...
TypeError
def _handle_CCall(self, expr): if not isinstance(expr.args[0], pyvex.IRExpr.Const): return cond_type_enum = expr.args[0].con.value if self.arch.name in {"X86", "AMD64", "AARCH64"}: if cond_type_enum in EXPECTED_COND_TYPES[self.arch.name]: self._handle_Comparison(expr.args[2], ex...
def _handle_CCall(self, expr): if not isinstance(expr.args[0], pyvex.IRExpr.Const): return cond_type_enum = expr.args[0].con.value if self.arch.name in ("X86", "AMD64"): if cond_type_enum in EXPECTED_COND_TYPES[self.arch.name]: self._handle_Comparison(expr.args[2], expr.args[3])...
https://github.com/angr/angr/issues/1917
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-3-cef6a7e02e93> in <module> ----> 1 cfg = proj.analyses.CFG() ~/Desktop/fuzzing/angr-dev/angr/angr/analyses/analysis.py in __call__(self, *args, **kwarg...
ValueError
def _process_Stmt(self, whitelist=None): if whitelist is not None: # optimize whitelist lookups whitelist = set(whitelist) for stmt_idx, stmt in enumerate(self.block.vex.statements): if whitelist is not None and stmt_idx not in whitelist: continue self.stmt_idx = stm...
def _process_Stmt(self, whitelist=None): if whitelist is not None: # optimize whitelist lookups whitelist = set(whitelist) for stmt_idx, stmt in enumerate(self.block.vex.statements): if whitelist is not None and stmt_idx not in whitelist: continue self.stmt_idx = stm...
https://github.com/angr/angr/issues/1850
<...> DEBUG | 2019-11-25 16:04:47,177 | angr.analyses.cfg.cfg_fast | Function __libc_csu_init ERROR | 2019-11-25 16:04:47,198 | angr.analyses.cfg.cfg_fast | Error collecting XRefs for function __libc_csu_init. Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/angr/analyses/cfg/cfg_fas...
TypeError
def _create_job_call( self, addr, irsb, cfg_node, stmt_idx, ins_addr, current_function_addr, target_addr, jumpkind, is_syscall=False, ): """ Generate a CFGJob for target address, also adding to _pending_entries if returning to succeeding position (if irsb arg is popul...
def _create_job_call( self, addr, irsb, cfg_node, stmt_idx, ins_addr, current_function_addr, target_addr, jumpkind, is_syscall=False, ): """ Generate a CFGJob for target address, also adding to _pending_entries if returning to succeeding position (if irsb arg is popul...
https://github.com/angr/angr/issues/1696
ClaripyZeroDivisionError Traceback (most recent call last) ~/Workspace/angr/angr/angr/engines/vex/irop.py in calculate(self, *args) 371 try: --> 372 return self.extend_size(self._calculate(args)) 373 except (ZeroDivisionError, claripy.ClaripyZeroDivisionError) as e: ~/Works...
ClaripyZeroDivisionError
def resolve(self, cfg, addr, func_addr, block, jumpkind): """ Resolves jump tables. :param cfg: A CFG instance. :param int addr: IRSB address. :param int func_addr: The function address. :param pyvex.IRSB block: The IRSB. :return: A bool indicating whether the indirect jump is resolved succ...
def resolve(self, cfg, addr, func_addr, block, jumpkind): """ Resolves jump tables. :param cfg: A CFG instance. :param int addr: IRSB address. :param int func_addr: The function address. :param pyvex.IRSB block: The IRSB. :return: A bool indicating whether the indirect jump is resolved succ...
https://github.com/angr/angr/issues/1579
p = angr.Project("/usr/lib/libc.so.6") cfg = p.analyses.cfgfast() [...] ERROR | 2019-05-23 18:27:06,592 | angr.analyses.cfg.cfg_fast | Decoding error occurred at address 0x447ebe of function 0x447d30. ERROR | 2019-05-23 18:27:06,593 | angr.analyses.cfg.cfg_fast | Decoding error occurred at address 0x447e99 of func...
TypeError
def _hook_register_read(self, state): reg_read_offset = state.inspect.reg_read_offset if isinstance(reg_read_offset, claripy.ast.BV): if reg_read_offset.multivalued: # Multi-valued register offsets are not supported l.warning("Multi-valued register offsets are not supported.") ...
def _hook_register_read(self, state): reg_read_offset = state.inspect.reg_read_offset reg_read_length = state.inspect.reg_read_length if reg_read_offset == state.arch.sp_offset and reg_read_length == state.arch.bytes: # TODO: make sure the sp is not overwritten by something that we are not tracking...
https://github.com/angr/angr/issues/1430
In [8]: proj.analyses.VariableRecovery(x) WARNING | 2019-02-03 17:53:52,086 | angr.keyed_region | Overlapping objects {<0x4022c8[ir_33]|Reg 68, 4B>, <0x4022c8[ir_35]|Reg 68, 4B>}. WARNING | 2019-02-03 17:53:52,088 | angr.keyed_region | Overlapping objects {<0x4022c8[ir_36]|Reg 40, 4B>, <0x4022c8[ir_28]|Reg 40, 4B>}. WA...
ClaripyOperationError
def _hook_register_write(self, state): reg_write_offset = state.inspect.reg_write_offset if isinstance(reg_write_offset, claripy.ast.BV): if reg_write_offset.multivalued: # Multi-valued register offsets are not supported l.warning("Multi-valued register offsets are not supported....
def _hook_register_write(self, state): reg_write_offset = state.inspect.reg_write_offset if reg_write_offset == state.arch.sp_offset: # it's updating stack pointer. skip return reg_write_expr = state.inspect.reg_write_expr reg_write_length = len(reg_write_expr) // 8 # annotate it ...
https://github.com/angr/angr/issues/1430
In [8]: proj.analyses.VariableRecovery(x) WARNING | 2019-02-03 17:53:52,086 | angr.keyed_region | Overlapping objects {<0x4022c8[ir_33]|Reg 68, 4B>, <0x4022c8[ir_35]|Reg 68, 4B>}. WARNING | 2019-02-03 17:53:52,088 | angr.keyed_region | Overlapping objects {<0x4022c8[ir_36]|Reg 40, 4B>, <0x4022c8[ir_28]|Reg 40, 4B>}. WA...
ClaripyOperationError
def _process_irrational_function_starts( self, functions, predetermined_function_addrs, blockaddr_to_function ): """ Functions that are identified via function prologues can be starting after the actual beginning of the function. For example, the following function (with an incorrect start) might exist ...
def _process_irrational_function_starts( self, functions, predetermined_function_addrs, blockaddr_to_function ): """ Functions that are identified via function prologues can be starting after the actual beginning of the function. For example, the following function (with an incorrect start) might exist ...
https://github.com/angr/angr/issues/1329
Traceback (most recent call last): File "test_cfg_hook.py", line 27, in <module> test() File "test_cfg_hook.py", line 23, in test _ = p.analyses.CFGFast(show_progressbar=True) File "/home/lrxiao/hase/venv/lib/python3.6/site-packages/angr/analyses/analysis.py", line 108, in __call__ oself.__init__(*args, **kwargs) File ...
AssertionError
def _process_irrational_function_starts( self, functions, predetermined_function_addrs, blockaddr_to_function ): """ Functions that are identified via function prologues can be starting after the actual beginning of the function. For example, the following function (with an incorrect start) might exist ...
def _process_irrational_function_starts( self, functions, predetermined_function_addrs, blockaddr_to_function ): """ Functions that are identified via function prologues can be starting after the actual beginning of the function. For example, the following function (with an incorrect start) might exist ...
https://github.com/angr/angr/issues/1333
Traceback (most recent call last): File "cfg_fast.py", line 61, in <module> analyze(sys.argv[1]) File "cfg_fast.py", line 30, in analyze cfg = proj.analyses.CFGFast() File "/home/wgh/angr-dev/angr/angr/analyses/analysis.py", line 108, in __call__ oself.__init__(*args, **kwargs) File "/home/wgh/angr-dev/angr/angr/analys...
angr.errors.SimEngineError
def _run_on_node(self, node, state): """ :param angr.Block node: :param VariableRecoveryState state: :return: """ l.debug( "Analyzing block %#x, iteration %d.", node.addr, self._node_iterations[node] ) concrete_state = state.get_concrete_state(node.addr) if concrete_stat...
def _run_on_node(self, node, state): """ :param angr.Block node: :param VariableRecoveryState state: :return: """ l.debug( "Analyzing block %#x, iteration %d.", node.addr, self._node_iterations[node] ) concrete_state = state.get_concrete_state(node.addr) if concrete_stat...
https://github.com/angr/angr/issues/1264
Traceback (most recent call last): File "angr-dev/blah.py", line 4, in <module> vr = p.analyses.VariableRecovery(cfg.functions.function(name='main')) File "angr-dev/angr/angr/analyses/analysis.py", line 108, in __call__ oself.__init__(*args, **kwargs) File "angr-dev/angr/angr/analyses/variable_recovery/variable_recover...
AttributeError
def _handle_Unop(self, expr): handler = None # All conversions are handled by the Conversion handler simop = vex_operations.get(expr.op) if simop is not None and simop.op_attrs["conversion"]: handler = "_handle_Conversion" # Notice order of "Not" comparisons elif expr.op == "Iop_Not1": ...
def _handle_Unop(self, expr): handler = None simop = vex_operations[expr.op] if simop.op_attrs["conversion"]: handler = "_handle_Conversion" # Notice order of "Not" comparisons elif expr.op == "Iop_Not1": handler = "_handle_Not1" elif expr.op.startswith("Iop_Not"): handle...
https://github.com/angr/angr/issues/1260
Traceback (most recent call last): File "$HOME/angr-dev/angr-management/angrmanagement/ui/widgets/qfunction_table.py", line 227, in _on_function_selected self._selection_callback(selected_func) File "$HOME/angr-dev/angr-management/angrmanagement/ui/views/functions_view.py", line 41, in _on_function_selected self.worksp...
KeyError
def slice_graph(graph, node, frontier, include_frontier=False): """ Generate a slice of the graph from the head node to the given frontier. :param networkx.DiGraph graph: The graph to work on. :param node: The starting node in the graph. :param frontier: A list of frontier nodes. :param bool in...
def slice_graph(graph, node, frontier, include_frontier=False): """ Generate a slice of the graph from the head node to the given frontier. :param networkx.DiGraph graph: The graph to work on. :param node: The starting node in the graph. :param frontier: A list of frontier nodes. :param bool in...
https://github.com/angr/angr/issues/1259
Traceback (most recent call last): File "$HOME/angr-dev/angr-management/angrmanagement/ui/widgets/qfunction_table.py", line 227, in _on_function_selected self._selection_callback(selected_func) File "$HOME/angr-dev/angr-management/angrmanagement/ui/views/functions_view.py", line 41, in _on_function_selected self.worksp...
TypeError
def _find_initial_loop_nodes(self, graph, head): # TODO optimize latching_nodes = set( [s for s, t in dfs_back_edges(graph, self._start_node) if t == head] ) loop_subgraph = self.slice_graph(graph, head, latching_nodes, include_frontier=True) nodes = set(loop_subgraph.nodes()) return nod...
def _find_initial_loop_nodes(self, graph, head): # TODO optimize latching_nodes = set( [s for s, t in dfs_back_edges(graph, self._start_node) if t == head] ) loop_subgraph = self.slice_graph(graph, head, latching_nodes, include_frontier=True) return set(loop_subgraph.nodes())
https://github.com/angr/angr/issues/1259
Traceback (most recent call last): File "$HOME/angr-dev/angr-management/angrmanagement/ui/widgets/qfunction_table.py", line 227, in _on_function_selected self._selection_callback(selected_func) File "$HOME/angr-dev/angr-management/angrmanagement/ui/views/functions_view.py", line 41, in _on_function_selected self.worksp...
TypeError
def _ail_handle_Const(self, expr): return DataSet(expr, expr.bits)
def _ail_handle_Const(self, expr): return expr
https://github.com/angr/angr/issues/1259
Traceback (most recent call last): File "$HOME/angr-dev/angr-management/angrmanagement/ui/widgets/qfunction_table.py", line 227, in _on_function_selected self._selection_callback(selected_func) File "$HOME/angr-dev/angr-management/angrmanagement/ui/views/functions_view.py", line 41, in _on_function_selected self.worksp...
TypeError
def _process_block(self, state, block): # pylint:disable=no-self-use """ Scan through all statements and perform the following tasks: - Find stack pointers and the VEX temporary variable storing stack pointers - Selectively calculate VEX statements - Track memory loading and mark stack and global v...
def _process_block(self, state, block): # pylint:disable=no-self-use """ Scan through all statements and perform the following tasks: - Find stack pointers and the VEX temporary variable storing stack pointers - Selectively calculate VEX statements - Track memory loading and mark stack and global v...
https://github.com/angr/angr/issues/1259
Traceback (most recent call last): File "$HOME/angr-dev/angr-management/angrmanagement/ui/widgets/qfunction_table.py", line 227, in _on_function_selected self._selection_callback(selected_func) File "$HOME/angr-dev/angr-management/angrmanagement/ui/views/functions_view.py", line 41, in _on_function_selected self.worksp...
TypeError
def merge(self, other): if not self == other: l.warning("Inconsistent merge: %s %s ", self, other) # FIXME: none of the following logic makes any sense... if other.sp_adjusted is True: self.sp_adjusted = True self.sp_adjustment = max(self.sp_adjustment, other.sp_adjustment) if other...
def merge(self, other): if not self == other: l.warning("Inconsistent merge: %s %s ", self, other) # FIXME: none of the following logic makes any sense... if other.sp_adjusted is True: self.sp_adjusted = True self.sp_adjustment = max(self.sp_adjustment, other.sp_adjustment) if other...
https://github.com/angr/angr/issues/1259
Traceback (most recent call last): File "$HOME/angr-dev/angr-management/angrmanagement/ui/widgets/qfunction_table.py", line 227, in _on_function_selected self._selection_callback(selected_func) File "$HOME/angr-dev/angr-management/angrmanagement/ui/views/functions_view.py", line 41, in _on_function_selected self.worksp...
TypeError
def string_references(self, minimum_length=2, vex_only=False): """ All of the constant string references used by this function. :param minimum_length: The minimum length of strings to find (default is 1) :param vex_only: Only analyze VEX IR, don't interpret the entry state to detect additional ...
def string_references(self, minimum_length=2, vex_only=False): """ All of the constant string references used by this function. :param minimum_length: The minimum length of strings to find (default is 1) :param vex_only: Only analyze VEX IR, don't interpret the entry state to detect additional ...
https://github.com/angr/angr/issues/1226
Traceback (most recent call last): File ".\src\gaeInputGeneration.py", line 109, in <module> for offset, strRef in func.string_references(vex_only=True): File "C:\Users\lixue\AppData\Local\Programs\Python\Python36\lib\site-packages\angr\knowledge_plugins\functions\function.py", line 301, in string_references while curr...
TypeError
def string_references(self, minimum_length=2, vex_only=False): """ All of the constant string references used by this function. :param minimum_length: The minimum length of strings to find (default is 1) :param vex_only: Only analyze VEX IR, don't interpret the entry state to detect additional ...
def string_references(self, minimum_length=2, vex_only=False): """ All of the constant string references used by this function. :param minimum_length: The minimum length of strings to find (default is 1) :param vex_only: Only analyze VEX IR, don't interpret the entry state to detect additional ...
https://github.com/angr/angr/issues/1226
Traceback (most recent call last): File ".\src\gaeInputGeneration.py", line 109, in <module> for offset, strRef in func.string_references(vex_only=True): File "C:\Users\lixue\AppData\Local\Programs\Python\Python36\lib\site-packages\angr\knowledge_plugins\functions\function.py", line 301, in string_references while curr...
TypeError
def _remove_redundant_overlapping_blocks(self): """ On some architectures there are sometimes garbage bytes (usually nops) between functions in order to properly align the succeeding function. CFGFast does a linear sweeping which might create duplicated blocks for function epilogues where one block star...
def _remove_redundant_overlapping_blocks(self): """ On some architectures there are sometimes garbage bytes (usually nops) between functions in order to properly align the succeeding function. CFGFast does a linear sweeping which might create duplicated blocks for function epilogues where one block star...
https://github.com/angr/angr/issues/1107
In [1]: import angr WARNING | 2018-07-03 14:13:20,872 | angr.analyses.disassembly_utils | Your version of capstone does not support MIPS instruction groups. In [2]: p = angr.Project("/bin/ls") WARNING | 2018-07-03 14:13:22,746 | cle.loader | The main binary is a position-independent executable. It is being loaded with...
NetworkXError
def _create_job_call( self, addr, irsb, cfg_node, stmt_idx, ins_addr, current_function_addr, target_addr, jumpkind, is_syscall=False, ): """ Generate a CFGJob for target address, also adding to _pending_entries if returning to succeeding position (if irsb arg is popul...
def _create_job_call( self, addr, irsb, cfg_node, stmt_idx, ins_addr, current_function_addr, target_addr, jumpkind, is_syscall=False, ): """ Generate a CFGJob for target address, also adding to _pending_entries if returning to succeeding position (if irsb arg is popul...
https://github.com/angr/angr/issues/971
ERROR | 2018-04-28 18:12:46,695 | angr.engines.vex.statements.dirty | Unsupported dirty helper amd64g_dirtyhelper_FSTENV ERROR | 2018-04-28 18:12:46,696 | angr.engines.vex.statements.dirty | Unsupported dirty helper amd64g_dirtyhelper_FLDENV WARNING | 2018-04-28 18:12:46,704 | angr.procedures.definitions | unsuppor...
angr.errors.AngrSyscallError
def _fast_memory_load(self, addr): """ Perform a fast memory loading of static content from static regions, a.k.a regions that are mapped to the memory by the loader. :param int addr: Address to read from. :return: A tuple of the data (cffi.CData) and the max size in the current continuous block, o...
def _fast_memory_load(self, addr): """ Perform a fast memory loading of static content from static regions, a.k.a regions that are mapped to the memory by the loader. :param int addr: Address to read from. :return: A tuple of the data (cffi.CData) and the max size in the current continuous block, o...
https://github.com/angr/angr/issues/834
Traceback (most recent call last): File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap self.run() File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run self._target(*self._args, **self._kwargs) File "gfh_gen_cfg.py", line 23, in worker g = b.analyses.CFG(fail_fast=True) File "...
TypeError
def _get_successors(self, job): # Extract initial values state = job.state addr = job.addr # Obtain successors if addr not in self._avoid_runs: all_successors = ( job.sim_successors.flat_successors + job.sim_successors.unconstrained_successors ) else: ...
def _get_successors(self, job): # Extract initial values state = job.state addr = job.addr # Obtain successors if addr not in self._avoid_runs: all_successors = ( job.sim_successors.flat_successors + job.sim_successors.unconstrained_successors ) else: ...
https://github.com/angr/angr/issues/482
vfg = proj.analyses.VFG(cfg=cfg, context_sensitivity_level=0, start=f_addrs[0]) WARNING | 2017-06-07 04:19:33,094 | angr.analyses.vfg | The given CFG is not normalized, which might impact the performance/accuracy of the VFG analysis. Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/pypy...
KeyError
async def _process(self, query: str): username, subject, client_id, access_token, refresh_token, args = _parse_query( query ) logger.debug(f"user: {username}, client: {client_id}") logger.debug(args) app_state, user_state, client_state = self._state args_state: dict = unmarshal(args) ...
async def _process(self, query: str): username, subject, client_id, access_token, refresh_token, args = _parse_query( query ) logger.debug(f"user: {username}, client: {client_id}") logger.debug(args) app_state, user_state, client_state = self._state args_state: dict = unmarshal(args) ...
https://github.com/h2oai/wave/issues/510
ERROR: Exception in ASGI application Traceback (most recent call last): File "/home/dott/Projects/q-model-validation/venv/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 389, in run_asgi result = await app(self.scope, self.receive, self.send) File "/home/dott/Projects/q-model-validation/venv/li...
AttributeError
def __init__(self, filename: str, title: str, description: str, source: str): self.name = os.path.splitext(filename)[0] self.filename = filename self.title = title self.description = description self.source = source self.code = highlight(source, py_lexer, html_formatter) self.previous_exampl...
def __init__(self, filename: str, title: str, description: str, source: str): self.name = os.path.splitext(filename)[0] self.filename = filename self.title = title self.description = description self.source = source self.code = highlight(source, py_lexer, html_formatter) self.previous_exampl...
https://github.com/h2oai/wave/issues/397
(.venv) C:\code\python\h2oai\wave-0.10.0-windows-amd64>wave run --no-reload examples.tour ---------------------------------------- Welcome to the H2O Wave Interactive Tour! Go to http://localhost:10101/tour ---------------------------------------- INFO: Started server process [22080] INFO: Waiting for applicat...
NotImplementedError
async def start(self): # The environment passed into Popen must include SYSTEMROOT, otherwise Popen will fail when called # inside python during initialization if %PATH% is configured, but without %SYSTEMROOT%. env = ( {"SYSTEMROOT": os.environ["SYSTEMROOT"]} if sys.platform.lower().startswi...
async def start(self): if self.is_app: self.process = await asyncio.create_subprocess_exec( sys.executable, "-m", "uvicorn", "--port", _app_port, f"examples.{self.name}:main", env=dict(H2O_WAVE_EXTERNAL_ADDRESS=f"http://{_ap...
https://github.com/h2oai/wave/issues/397
(.venv) C:\code\python\h2oai\wave-0.10.0-windows-amd64>wave run --no-reload examples.tour ---------------------------------------- Welcome to the H2O Wave Interactive Tour! Go to http://localhost:10101/tour ---------------------------------------- INFO: Started server process [22080] INFO: Waiting for applicat...
NotImplementedError
async def stop(self): if self.process and self.process.returncode is None: self.process.terminate() self.process.wait()
async def stop(self): if self.process and self.process.returncode is None: self.process.terminate()
https://github.com/h2oai/wave/issues/397
(.venv) C:\code\python\h2oai\wave-0.10.0-windows-amd64>wave run --no-reload examples.tour ---------------------------------------- Welcome to the H2O Wave Interactive Tour! Go to http://localhost:10101/tour ---------------------------------------- INFO: Started server process [22080] INFO: Waiting for applicat...
NotImplementedError
def fn(heads, relations, tails, num_chunks, chunk_size, neg_sample_size): hidden_dim = heads.shape[1] emb_real, emb_img = nd.split(heads, num_outputs=2, axis=-1) rel_real, rel_img = nd.split(relations, num_outputs=2, axis=-1) real = emb_real * rel_real - emb_img * rel_img img = emb_real * rel_img + ...
def fn(heads, relations, tails, num_chunks, chunk_size, neg_sample_size): hidden_dim = heads.shape[1] tails = tails.reshape(num_chunks, neg_sample_size, hidden_dim) tails = nd.transpose(tails, axes=(0, 2, 1)) tmp = (heads * relations).reshape(num_chunks, chunk_size, hidden_dim) return nd.linalg_gemm...
https://github.com/dmlc/dgl/issues/755
test_shared_mem_store.test_init ... /var/jenkins_home/workspace/DGL_PR-752@2/python/dgl/base.py:18: UserWarning: Initializer is not set. Use zero initializer instead. To suppress this warning, use `set_initializer` to explicitly specify which initializer to use. warnings.warn(msg, warn_type) /var/jenkins_home/workspace...
AssertionError
def __init__(self): super(ComplExScore, self).__init__()
def __init__(self): super(DistMultScore, self).__init__()
https://github.com/dmlc/dgl/issues/755
test_shared_mem_store.test_init ... /var/jenkins_home/workspace/DGL_PR-752@2/python/dgl/base.py:18: UserWarning: Initializer is not set. Use zero initializer instead. To suppress this warning, use `set_initializer` to explicitly specify which initializer to use. warnings.warn(msg, warn_type) /var/jenkins_home/workspace...
AssertionError
def edge_func(self, edges): real_head, img_head = nd.split(edges.src["emb"], num_outputs=2, axis=-1) real_tail, img_tail = nd.split(edges.dst["emb"], num_outputs=2, axis=-1) real_rel, img_rel = nd.split(edges.data["emb"], num_outputs=2, axis=-1) score = ( real_head * real_tail * real_rel ...
def edge_func(self, edges): head = edges.src["emb"] tail = edges.dst["emb"] rel = edges.data["emb"] score = head * rel * tail # TODO: check if there exists minus sign and if gamma should be used here(jin) return {"score": nd.sum(score, axis=-1)}
https://github.com/dmlc/dgl/issues/755
test_shared_mem_store.test_init ... /var/jenkins_home/workspace/DGL_PR-752@2/python/dgl/base.py:18: UserWarning: Initializer is not set. Use zero initializer instead. To suppress this warning, use `set_initializer` to explicitly specify which initializer to use. warnings.warn(msg, warn_type) /var/jenkins_home/workspace...
AssertionError
def create_neg(self, neg_head): if neg_head: def fn(heads, relations, tails, num_chunks, chunk_size, neg_sample_size): hidden_dim = heads.shape[1] emb_real, emb_img = nd.split(tails, num_outputs=2, axis=-1) rel_real, rel_img = nd.split(relations, num_outputs=2, axis=-1) ...
def create_neg(self, neg_head): if neg_head: def fn(heads, relations, tails, num_chunks, chunk_size, neg_sample_size): hidden_dim = heads.shape[1] heads = heads.reshape(num_chunks, neg_sample_size, hidden_dim) heads = nd.transpose(heads, axes=(0, 2, 1)) tmp =...
https://github.com/dmlc/dgl/issues/755
test_shared_mem_store.test_init ... /var/jenkins_home/workspace/DGL_PR-752@2/python/dgl/base.py:18: UserWarning: Initializer is not set. Use zero initializer instead. To suppress this warning, use `set_initializer` to explicitly specify which initializer to use. warnings.warn(msg, warn_type) /var/jenkins_home/workspace...
AssertionError
def main(args): # load and preprocess dataset data = load_data(args) features = mx.nd.array(data.features) labels = mx.nd.array(data.labels) mask = mx.nd.array(np.where(data.train_mask == 1)) test_mask = mx.nd.array(np.where(data.test_mask == 1)) val_mask = mx.nd.array(np.where(data.val_mas...
def main(args): # load and preprocess dataset data = load_data(args) features = mx.nd.array(data.features) labels = mx.nd.array(data.labels) mask = mx.nd.array(np.where(data.train_mask == 1)) test_mask = mx.nd.array(np.where(data.test_mask == 1)) val_mask = mx.nd.array(np.where(data.val_mas...
https://github.com/dmlc/dgl/issues/755
test_shared_mem_store.test_init ... /var/jenkins_home/workspace/DGL_PR-752@2/python/dgl/base.py:18: UserWarning: Initializer is not set. Use zero initializer instead. To suppress this warning, use `set_initializer` to explicitly specify which initializer to use. warnings.warn(msg, warn_type) /var/jenkins_home/workspace...
AssertionError
def main(args): # load and preprocess dataset data = load_data(args) features = mx.nd.array(data.features) labels = mx.nd.array(data.labels) train_mask = mx.nd.array(data.train_mask) val_mask = mx.nd.array(data.val_mask) test_mask = mx.nd.array(data.test_mask) in_feats = features.shape[1...
def main(args): # load and preprocess dataset data = load_data(args) features = mx.nd.array(data.features) labels = mx.nd.array(data.labels) train_mask = mx.nd.array(data.train_mask) val_mask = mx.nd.array(data.val_mask) test_mask = mx.nd.array(data.test_mask) in_feats = features.shape[1...
https://github.com/dmlc/dgl/issues/755
test_shared_mem_store.test_init ... /var/jenkins_home/workspace/DGL_PR-752@2/python/dgl/base.py:18: UserWarning: Initializer is not set. Use zero initializer instead. To suppress this warning, use `set_initializer` to explicitly specify which initializer to use. warnings.warn(msg, warn_type) /var/jenkins_home/workspace...
AssertionError
def main(args): # load and preprocess dataset data = load_data(args) features = mx.nd.array(data.features) labels = mx.nd.array(data.labels) train_mask = mx.nd.array(data.train_mask) val_mask = mx.nd.array(data.val_mask) test_mask = mx.nd.array(data.test_mask) in_feats = features.shape[1...
def main(args): # load and preprocess dataset data = load_data(args) features = mx.nd.array(data.features) labels = mx.nd.array(data.labels) train_mask = mx.nd.array(data.train_mask) val_mask = mx.nd.array(data.val_mask) test_mask = mx.nd.array(data.test_mask) in_feats = features.shape[1...
https://github.com/dmlc/dgl/issues/755
test_shared_mem_store.test_init ... /var/jenkins_home/workspace/DGL_PR-752@2/python/dgl/base.py:18: UserWarning: Initializer is not set. Use zero initializer instead. To suppress this warning, use `set_initializer` to explicitly specify which initializer to use. warnings.warn(msg, warn_type) /var/jenkins_home/workspace...
AssertionError
def main(args): torch.manual_seed(args.rnd_seed) np.random.seed(args.rnd_seed) random.seed(args.rnd_seed) torch.backends.cudnn.deterministic = True torch.backends.cudnn.benchmark = False multitask_data = set(["ppi"]) multitask = args.dataset in multitask_data # load and preprocess data...
def main(args): torch.manual_seed(args.rnd_seed) np.random.seed(args.rnd_seed) random.seed(args.rnd_seed) torch.backends.cudnn.deterministic = True torch.backends.cudnn.benchmark = False multitask_data = set(["ppi"]) multitask = args.dataset in multitask_data # load and preprocess data...
https://github.com/dmlc/dgl/issues/755
test_shared_mem_store.test_init ... /var/jenkins_home/workspace/DGL_PR-752@2/python/dgl/base.py:18: UserWarning: Initializer is not set. Use zero initializer instead. To suppress this warning, use `set_initializer` to explicitly specify which initializer to use. warnings.warn(msg, warn_type) /var/jenkins_home/workspace...
AssertionError
def main(args): # load and preprocess dataset data = load_data(args) features = torch.FloatTensor(data.features) labels = torch.LongTensor(data.labels) if hasattr(torch, "BoolTensor"): train_mask = torch.BoolTensor(data.train_mask) val_mask = torch.BoolTensor(data.val_mask) t...
def main(args): # load and preprocess dataset data = load_data(args) features = torch.FloatTensor(data.features) labels = torch.LongTensor(data.labels) if hasattr(torch, "BoolTensor"): train_mask = torch.BoolTensor(data.train_mask) val_mask = torch.BoolTensor(data.val_mask) t...
https://github.com/dmlc/dgl/issues/755
test_shared_mem_store.test_init ... /var/jenkins_home/workspace/DGL_PR-752@2/python/dgl/base.py:18: UserWarning: Initializer is not set. Use zero initializer instead. To suppress this warning, use `set_initializer` to explicitly specify which initializer to use. warnings.warn(msg, warn_type) /var/jenkins_home/workspace...
AssertionError