chore(semantics): make sure that interval is handled in the semantics

This commit is contained in:
Anand Balakrishnan 2023-05-09 12:05:41 -07:00
parent c339343f84
commit 0e62085edc
No known key found for this signature in database
2 changed files with 16 additions and 6 deletions

View file

@ -50,7 +50,8 @@ impl Semantics for BooleanSemantics {
Ok(ret)
}
BoolExpr::Next { arg: _ } => todo!(),
BoolExpr::Always { arg } => {
BoolExpr::Oracle { steps: _, arg: _ } => todo!(),
BoolExpr::Always { arg, interval } => {
let mut arg = Self::eval(arg, trace, ctx)?;
match &mut arg {
// if signal is empty or constant, return the signal itself.
@ -66,7 +67,7 @@ impl Semantics for BooleanSemantics {
}
Ok(arg)
}
BoolExpr::Eventually { arg } => {
BoolExpr::Eventually { arg, interval } => {
let mut arg = Self::eval(arg, trace, ctx)?;
match &mut arg {
// if signal is empty or constant, return the signal itself.
@ -83,7 +84,11 @@ impl Semantics for BooleanSemantics {
}
Ok(arg)
}
BoolExpr::Until { lhs: _, rhs: _ } => todo!(),
BoolExpr::Until {
lhs: _,
rhs: _,
interval,
} => todo!(),
}
}
}

View file

@ -69,7 +69,8 @@ impl Semantics for QuantitativeSemantics {
.ok_or(ArgusError::InvalidOperation)?
}
BoolExpr::Next { arg: _ } => todo!(),
BoolExpr::Always { arg } => {
BoolExpr::Oracle { steps: _, arg: _ } => todo!(),
BoolExpr::Always { arg, interval } => {
let mut arg = Self::eval(arg, trace, ctx)?;
match &mut arg {
// if signal is empty or constant, return the signal itself.
@ -85,7 +86,7 @@ impl Semantics for QuantitativeSemantics {
}
arg
}
BoolExpr::Eventually { arg } => {
BoolExpr::Eventually { arg, interval } => {
let mut arg = Self::eval(arg, trace, ctx)?;
match &mut arg {
// if signal is empty or constant, return the signal itself.
@ -101,7 +102,11 @@ impl Semantics for QuantitativeSemantics {
}
arg
}
BoolExpr::Until { lhs: _, rhs: _ } => todo!(),
BoolExpr::Until {
lhs: _,
rhs: _,
interval,
} => todo!(),
};
Ok(ret)
}