Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Fehlersuche_U7
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
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
Martin Gräbner
Fehlersuche_U7
Commits
bc7e057b
Commit
bc7e057b
authored
8 years ago
by
Tobias Klaus
Browse files
Options
Downloads
Patches
Plain Diff
adds cored pseudo code
parent
a75a2112
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
04_EAN/src/app.c
+41
-0
41 additions, 0 deletions
04_EAN/src/app.c
with
41 additions
and
0 deletions
04_EAN/src/app.c
+
41
−
0
View file @
bc7e057b
...
...
@@ -59,6 +59,47 @@ static bool equals(enc_t vc1, enc_t vc2, sig_t B1, sig_t B2, sig_t A) {
#define SIG_s_YZ
/* FIXME */
#define SIG_s_XZ
/* FIXME */
/**
* Pseudo-Code for the CoRed voter
*
* SIGNAL_DUE() signals a Deteceted Unrecoverable Error
*
* The function APPLY() is appended after CORED_VOTE
Require: Bx , By , Bz #Constant signatures of Operands
function CORED_ VOTE (xc , yc , zc )
ZERO_LOCAL _ STORAGE()
if (xc − yc ) = (Bx − By ) then
if (xc − zc ) = (Bx − Bz ) then
winc <- APPLY(xc , (xc − yc ) + (xc − zc ))
return winc, BE <- (Bx − By ) + (Bx − Bz ) #statically computed
else
winc <- APPLY(xc , (xc − yc ))
return winc, BE <- (Bx − By ) #statically computed
end if
else if (yc − zc) = (By − Bz ) then
winc <- APPLY (yc, (yc − zc ))
return winc, BE <- (By -B z) #statically computed
else if (xc − zc) =(Bx − Bz) then
winc <- APPLY (xc , (xc − zc ))
return winc , BE <- (Bx − Bz ) #statically computed
else
winc <- ∅ #empty set
SIGNAL_DUE()
end if
end function
function APPLY (vc , Bdyn )
if Bdyn > Bmax then
SIGNAL_DUE()
end if
return vc + Bdyn
end function
**/
static
sig_t
CoRedVote
(
void
)
{
/* TODO: Implement CoRed Voter */
}
...
...
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