Closed dcerys closed 7 years ago
For the following statement:
(ask (or (= door "open") (= door "closed")) :bounds [5 30])
The generated IR is:
{:type :ask, :body [{:temporal-constraints [{:type :bounds, :value [5 30]}]}], :condition {:type :or, :args [{:type :equal, :args [{:type :state-variable, :name door} {:type :literal, :value "open"}]} {:type :equal, :args [{:type :state-variable, :name door} {:type :literal, :value "closed"}]}]}}
Instead of :body [{:temporal-constraints [{:type :bounds, :value [5 30]}]}],, the IR should be :temporal-constraints [{:type :bounds, :value [5 30]}] (i.e., at the top level of the map).
:body [{:temporal-constraints [{:type :bounds, :value [5 30]}]}],
:temporal-constraints [{:type :bounds, :value [5 30]}]
Note that this problem exists in https://github.com/dollabs/pamela/blob/master/test/pamela/statements.pamela, with a currently incorrect rubric in https://github.com/dollabs/pamela/blob/master/test/pamela/IR/statements.ir.edn
For the following statement:
The generated IR is:
Instead of
:body [{:temporal-constraints [{:type :bounds, :value [5 30]}]}],
, the IR should be:temporal-constraints [{:type :bounds, :value [5 30]}]
(i.e., at the top level of the map).Note that this problem exists in https://github.com/dollabs/pamela/blob/master/test/pamela/statements.pamela, with a currently incorrect rubric in https://github.com/dollabs/pamela/blob/master/test/pamela/IR/statements.ir.edn