title: The compiler is unable to type-check this expression swift 4?
body: <p>After updating xCode i am getting this error into my code : </p>
  
  <blockquote>
    <p>The compiler is unable to type-check this expression in reasonable
    time; try breaking up the expression into distinct sub-expressions</p>
  </blockquote>
  
  <p>The code : </p>
  
  <pre><code>//check popup in window frame
  
  let spaceFromLeftSide = cutOutViewX.constant + cutOutViewWidth.constant/2 - (options.textWidth + padding*2)/2
  
  if spaceFromLeftSide &lt; 0{
  
      if options.side == .bottom {
          messageRightSpaceFromBottomDot.constant -= spaceFromLeftSide - padding
      }
      else if options.side == .top{
          messageRightSpaceFromTopDot.constant += spaceFromLeftSide - padding
      }
  }
  
  let spaceFromRightSide = cutOutViewX.constant + cutOutViewWidth.constant/2 + (options.textWidth + padding*2)/2
  
  if spaceFromRightSide &gt; targetView.frame.size.width{
  
      if options.side == .bottom {
          messageRightSpaceFromBottomDot.constant -= spaceFromRightSide - ( targetView.frame.size.width )
      }
      else if options.side == .top{
          messageRightSpaceFromTopDot.constant += spaceFromRightSide - ( targetView.frame.size.width )
      }
  }
  </code></pre>
  
  <p>Error in line : </p>
  
  <pre><code>let spaceFromRightSide = cutOutViewX.constant + cutOutViewWidth.constant/2 + (options.textWidth + padding*2)/2
  </code></pre>
  
  <p>how to fix this ?</p>