krzema12 / kotlin-python

Python target for the Kotlin Programming Language. See https://github.com/krzema12/kotlin-python/tree/python-backend/python
https://discuss.kotlinlang.org/t/idea-python-backend/19852
48 stars 1 forks source link

Understand why some expressions are compiled as `(True) if (limit < 0) else (count <= limit)` but not as `(limit < 0) or (count <= limit)` and fix it #54

Open krzema12 opened 2 years ago

krzema12 commented 2 years ago

Originally created by @SerVB.

SerVB commented 2 years ago

This code (oror, addadd) is inside JsIrArithBuilder.