chore(py): handle interval in the expression trampoline

This commit is contained in:
Anand Balakrishnan 2023-05-09 12:08:11 -07:00
parent d13746f904
commit 86138fe213
No known key found for this signature in database
2 changed files with 23 additions and 4 deletions

View file

@ -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(),
})),
)
}
}