Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PROSA - Formally Proven Schedulability Analysis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RT-PROOFS
PROSA - Formally Proven Schedulability Analysis
Commits
d72908b6
Commit
d72908b6
authored
5 years ago
by
Maxime Lesourd
Committed by
Björn Brandenburg
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Renaming in schedule.v
parent
7a9c7cbf
No related branches found
Branches containing commit
No related tags found
1 merge request
!22
Naming conventions
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
behavior/schedule/schedule.v
+13
-7
13 additions, 7 deletions
behavior/schedule/schedule.v
with
13 additions
and
7 deletions
behavior/schedule/schedule.v
+
13
−
7
View file @
d72908b6
...
@@ -26,7 +26,7 @@ Definition schedule (PState : Type) := instant -> PState.
...
@@ -26,7 +26,7 @@ Definition schedule (PState : Type) := instant -> PState.
Class
JobCost
(
J
:
JobType
)
:=
job_cost
:
J
->
nat
.
Class
JobCost
(
J
:
JobType
)
:=
job_cost
:
J
->
nat
.
Section
S
ervic
e
.
Section
S
chedul
e
.
Context
{
Job
:
eqType
}
{
PState
:
Type
}
.
Context
{
Job
:
eqType
}
{
PState
:
Type
}
.
Context
`{
ProcessorState
Job
PState
}
.
Context
`{
ProcessorState
Job
PState
}
.
...
@@ -71,10 +71,8 @@ Section Service.
...
@@ -71,10 +71,8 @@ Section Service.
Definition
remaining_cost
j
t
:=
Definition
remaining_cost
j
t
:=
job_cost
j
-
service
j
t
.
job_cost
j
-
service
j
t
.
(* In this section, we define properties of valid schedules. *)
(* In this section, we define valid schedules. *)
Section
ValidSchedules
.
Section
ValidSchedule
.
Variable
(
arr_seq
:
arrival_sequence
Job
)
.
(* We define whether jobs come from some arrival sequence... *)
(* We define whether jobs come from some arrival sequence... *)
Definition
jobs_come_from_arrival_sequence
(
arr_seq
:
arrival_sequence
Job
)
:=
Definition
jobs_come_from_arrival_sequence
(
arr_seq
:
arrival_sequence
Job
)
:=
...
@@ -88,5 +86,13 @@ Section Service.
...
@@ -88,5 +86,13 @@ Section Service.
Definition
completed_jobs_dont_execute
:=
Definition
completed_jobs_dont_execute
:=
forall
j
t
,
service
j
t
<=
job_cost
j
.
forall
j
t
,
service
j
t
<=
job_cost
j
.
End
ValidSchedules
.
(* We say that the schedule is valid iff
End
Service
.
- jobs come from some arrival sequence
- a job can only be scheduled if it has arrived and is not completed yet *)
Definition
schedule_is_valid
(
arr_seq
:
arrival_sequence
Job
)
:=
jobs_come_from_arrival_sequence
arr_seq
/\
jobs_must_arrive_to_execute
/\
completed_jobs_dont_execute
.
End
ValidSchedule
.
End
Schedule
.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment