lcompilers / libasr

The ASR (Abstract Semantic Representation), backends, optimizations and other tooling
MIT License
12 stars 2 forks source link

Mod, Rem, Quotient? #5

Open rebcabin opened 1 year ago

rebcabin commented 1 year ago

I noticed that, while Div is a binop, Mod, Rem, and Quotient are not. What gives?

certik commented 1 year ago

Well, we could add them. They can be computed using existing operations, so we wanted to keep the ASR minimal.