pub fn convert_frame_bound_to_scalar_value(v: Expr) -> Result<ScalarValue>