File size: 576 Bytes
339ddd8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
-- Node adversary (to arbiter): runs full Python suite and detects failure loops.
-- NOTE: this specification has not been compiled with the GF toolchain in the authoring environment.
abstract PythonAdversary = {
  cat
    Check ; Verdict ;
  fun
    Challenge : Verdict -> Check ;
    Confirmed : Verdict ;
    Rejected : Verdict ;
    Abstain : Verdict ;
}

concrete PythonAdversaryEng of PythonAdversary = {
  lincat
    Check, Verdict = Str ;
  lin
    Challenge v = "adversary" ++ v ;
    Confirmed = "CONFIRMED" ;
    Rejected = "REJECTED" ;
    Abstain = "ABSTAIN" ;
}