Skip to content
Snippets Groups Projects
Commit 42008f41 authored by Björn Brandenburg's avatar Björn Brandenburg
Browse files

be explicit in how service is accrued on ideal processors

This change is semantically a no-op, but it has been argued that not
relying on the bool->nat coercion is more readable.

Closes: #55
parent 76c99fed
No related branches found
No related tags found
1 merge request!199improve readability of `service_on` in ideal uniprocessor model
Checking pipeline status
......@@ -34,7 +34,7 @@ Section State.
scheduled_on j s (_ : unit) := s == Some j;
(** Similarly, we say that a given job [j] receives service in a
given state [s] iff [s] is [Some j]. *)
service_on j s (_ : unit) := s == Some j;
service_on j s (_ : unit) := if s == Some j then 1 else 0;
}.
Next Obligation. by rewrite /nat_of_bool; case: ifP H => // ? /negP[]. Qed.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment