original_docstring: Like Loop._pick_loop_iterations but always returns 0 iterations
docstring: Like Loop._pick_loop_iterations but always returns 0 iterations
docstring_tokens: Like Loop . _pick_loop_iterations but always returns 0 iterations
code: def _bad_loop_iterations(self, model: Model) -> Tuple[int, int]:
          '''Like Loop._pick_loop_iterations but always returns 0 iterations'''
          poss_pairs = []
          for idx, value in model.regs_with_known_vals('gpr'):
              if value == 0:
                  poss_pairs.append((idx, value))
  
          # Since x0 contains zero, we'll always have at least one pair.
          assert poss_pairs
  
          return random.choice(poss_pairs)
code_tokens: def _bad_loop_iterations ( self , model : Model ) -> Tuple [ int , int ] : poss_pairs = [ ] for idx , value in model . regs_with_known_vals ( 'gpr' ) : if value == 0 : poss_pairs . append ( ( idx , value ) ) assert poss_pairs return random . choice ( poss_pairs )
short_docstring: Like Loop._pick_loop_iterations but always returns 0 iterations
short_docstring_tokens: Like Loop . _pick_loop_iterations but always returns 0 iterations
comment: '''Like Loop._pick_loop_iterations but always returns 0 iterations'''$SEP$# Since x0 contains zero, we'll always have at least one pair.