Commit 599855ef by Michael Sammler Committed by Paul

### fix two trust_me, one remaining

parent 5c28c244
 ... ... @@ -168,7 +168,24 @@ static void mt76_mac_fill_tx_status(struct mt7601u_dev *dev, " then if rc_green_field (tx_rate_flags r) then rate_phy_mode_ht_gf else rate_phy_mode_ht" " else hw_value_phy v |>} @ bitfield")]] [[rc::ensures("own pn : {if rc_mcs (tx_rate_flags r) then 1 + (tx_rate_idx r ≫ 3) else 1} @ int")]] [[rc::tactics("all: try by rewrite Z.shiftr_div_pow2; solve_goal.")]] [[rc::trust_me]] // TODO: bound sidecond /* Global Instance simpl_goal_or_lt_pow2 z1 z2 n `{!CanSolve (0 ≤ n ∧ 0 ≤ z1 ∧ 0 ≤ z2)}: SimplAnd (Z.lor z1 z2 < 2 ^ n) (λ T, z1 < 2 ^ n ∧ z2 < 2 ^ n ∧ T). Proof. unfold CanSolve in *. split. - move => [/Z_bounded_iff_bits_nonneg Hz1 [/Z_bounded_iff_bits_nonneg Hz2 ?]]. split; [|done]. apply Z_bounded_iff_bits_nonneg; [lia| apply Z.lor_nonneg;lia |]. move => ??. rewrite Z.lor_spec Hz1 ?Hz2 //; lia. - move => [/Z_bounded_iff_bits_nonneg? ?]. Admitted. Global Instance simpl_goal_land_lt_pow2 z1 z2 n `{!TCDone (0 ≤ z2 < 2^n)} : SimplAnd (Z.land z1 z2 < 2 ^ n) (λ T, T). Proof. unfold TCDone in *. split; [|naive_solver] => ?. split; [|done]. Admitted. */ u16 mt76_mac_tx_rate_val(struct mt7601u_dev *dev, const struct ieee80211_tx_rate *rate, u8 *nss_val, struct ieee80211_rate *r) { ... ...