var operationScore: Int
  field = 0
  get
  set

data class Result {
  var i: Int
    field = i
    get
    set

  constructor(i: Int) /* primary */ {
    super/*Any*/()
    /* <init>() */

  }

  operator fun component1(): Int {
    return <this>.#i
  }

  fun copy(i: Int = <this>.#i): Result {
    return Result(i = i)
  }

  override operator fun equals(other: Any?): Boolean {
    when {
      EQEQEQ(arg0 = <this>, arg1 = other) -> return true
    }
    when {
      other !is Result -> return false
    }
    val tmp_0: Result = other /*as Result */
    when {
      EQEQ(arg0 = <this>.#i, arg1 = tmp_0.#i).not() -> return false
    }
    return true
  }

  override fun hashCode(): Int {
    return <this>.#i.hashCode()
  }

  override fun toString(): String {
    return "Result(" + "i=" + <this>.#i + ")"
  }

}

fun box(): String {
  val result: Result = Result(i = 0)
  with<Int, Unit>(receiver = 1, block = local fun Int.<anonymous>() {
    plusAssign(/* $context_receiver_0 = $this$with, <this> = result, */ other = plus(/* $context_receiver_0 = $this$with, <this> = Result(i = 1), */ other = Result(i = 1)))
    minusAssign(/* $context_receiver_0 = $this$with, <this> = result, */ other = minus(/* $context_receiver_0 = $this$with, <this> = Result(i = 1), */ other = Result(i = 0)))
    timesAssign(/* $context_receiver_0 = $this$with, <this> = result, */ other = times(/* $context_receiver_0 = $this$with, <this> = Result(i = 1), */ other = Result(i = 2)))
    divAssign(/* $context_receiver_0 = $this$with, <this> = result, */ other = div(/* $context_receiver_0 = $this$with, <this> = Result(i = 4), */ other = Result(i = 2)))
  }
)
  return when {
    when {
      EQEQ(arg0 = result.<get-i>(), arg1 = 1) -> EQEQ(arg0 = <get-operationScore>(), arg1 = 8)
      else -> false
    } -> "OK"
    else -> "fail"
  }
}

context($context_receiver_0: Int)
operator fun Result.div(other: Result): Result {
  <set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
  return Result(i = <this>.<get-i>().div(other = other.<get-i>()))
}

context($context_receiver_0: Int)
operator fun Result.divAssign(other: Result) {
  <set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
  <this>.<set-i>(<set-?> = <this>.<get-i>().div(other = other.<get-i>()))
}

context($context_receiver_0: Int)
operator fun Result.minus(other: Result): Result {
  <set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
  return Result(i = <this>.<get-i>().minus(other = other.<get-i>()))
}

context($context_receiver_0: Int)
operator fun Result.minusAssign(other: Result) {
  <set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
  <this>.<set-i>(<set-?> = <this>.<get-i>().minus(other = other.<get-i>()))
}

context($context_receiver_0: Int)
operator fun Result.plus(other: Result): Result {
  <set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
  return Result(i = <this>.<get-i>().plus(other = other.<get-i>()))
}

context($context_receiver_0: Int)
operator fun Result.plusAssign(other: Result) {
  <set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
  <this>.<set-i>(<set-?> = <this>.<get-i>().plus(other = other.<get-i>()))
}

context($context_receiver_0: Int)
operator fun Result.times(other: Result): Result {
  <set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
  return Result(i = <this>.<get-i>().times(other = other.<get-i>()))
}

context($context_receiver_0: Int)
operator fun Result.timesAssign(other: Result) {
  <set-operationScore>(<set-?> = <get-operationScore>().plus(other = $context_receiver_0))
  <this>.<set-i>(<set-?> = <this>.<get-i>().times(other = other.<get-i>()))
}
