You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is a bug, so I just wanted to check: how should the prefix notation for arithmetic operations (+, -, *, /) be converted to infix notation? I expected that (- x y) was the same as (x - y), but it seems to be (y - x) instead. However, for division, it seems that (/ x y)does mean (x / y), not (y / x). To me, this seems confusing and likely to lead to errors. Is this the intended behavior or a bug?
I tested this using the following domain and problem files:
FixesKCL-Planning#19.
`visit_div_expression` already had the correct method of popping the RHS first then the LHS. However, plus, minus and mul all switched the order and called the first thing popped from the stack the LHS. For plus and mul, this doesn't affect the correctness, but it lead to minus being interpreted backwards (see the linked issue). I think this should fix that issue, but I'm not familiar with the code base, so please let me know if there are other places this change would need to be made too.
I'm not sure if this is a bug, so I just wanted to check: how should the prefix notation for arithmetic operations (+, -, *, /) be converted to infix notation? I expected that
(- x y)
was the same as(x - y)
, but it seems to be(y - x)
instead. However, for division, it seems that(/ x y)
does mean(x / y)
, not(y / x)
. To me, this seems confusing and likely to lead to errors. Is this the intended behavior or a bug?I tested this using the following domain and problem files:
Domain
Problem
Then I run smtplan with the
-n
option to print the constraints out. After parsing with z3 (so they're easier to read), the relevant constraints areThe text was updated successfully, but these errors were encountered: