chore(py): handle interval in the expression trampoline
This commit is contained in:
parent
d13746f904
commit
86138fe213
2 changed files with 23 additions and 4 deletions
|
|
@ -358,7 +358,13 @@ impl Always {
|
|||
#[new]
|
||||
fn new(arg: PyBoolExpr) -> (Self, PyBoolExpr) {
|
||||
let arg = arg.0;
|
||||
(Self, PyBoolExpr(Box::new(BoolExpr::Always { arg })))
|
||||
(
|
||||
Self,
|
||||
PyBoolExpr(Box::new(BoolExpr::Always {
|
||||
arg,
|
||||
interval: (..).into(),
|
||||
})),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -370,7 +376,13 @@ impl Eventually {
|
|||
#[new]
|
||||
fn new(arg: PyBoolExpr) -> (Self, PyBoolExpr) {
|
||||
let arg = arg.0;
|
||||
(Self, PyBoolExpr(Box::new(BoolExpr::Eventually { arg })))
|
||||
(
|
||||
Self,
|
||||
PyBoolExpr(Box::new(BoolExpr::Eventually {
|
||||
arg,
|
||||
interval: (..).into(),
|
||||
})),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -383,7 +395,14 @@ impl Until {
|
|||
fn new(lhs: PyBoolExpr, rhs: PyBoolExpr) -> (Self, PyBoolExpr) {
|
||||
let lhs = lhs.0;
|
||||
let rhs = rhs.0;
|
||||
(Self, PyBoolExpr(Box::new(BoolExpr::Until { lhs, rhs })))
|
||||
(
|
||||
Self,
|
||||
PyBoolExpr(Box::new(BoolExpr::Until {
|
||||
lhs,
|
||||
rhs,
|
||||
interval: (..).into(),
|
||||
})),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue