comefrom: <doocs>1009.Complement of Base 10 Integer_1.py
code: def bitwiseComplement( n: int) -> int:
      if n == 0:
          return 1
      ans = 0
      find = False
      for i in range(30, -1, -1):
          b = n & (1 << i)
          if not find and b == 0:
              continue
          find = True
          if b == 0:
              ans |= 1 << i
      return ans
masked: def sample_funcname ( var_0 : int ) -> int :
      if var_0 == 0 :
          return 1
      var_4 = 0
      var_6 = False
      for var_9 in range ( 30 , - 1 , - 1 ) :
          var_10 = var_0 & ( 1 << var_9 )
          if not var_6 and var_10 == 0 :
              continue
          var_6 = True
          if var_10 == 0 :
              var_4 |= 1 << var_9
      return var_4
  