function ammissibile(studente: integer)  
if classe(studente) == 5 then  
return False  
end if  
if data_di_nascita(studente) < 01-07-2007 then  
return False  
end if  
return iscritto(studente)  
end function  
function ammesso(studente: integer, scuola: integer)  
if not (ammissibile(studente)) then  
return False  
end if  
if punteggio_preterry(studente) < 50 then  
return False  
end if  
if finali_ois2526(studente) then  
return True  
end if  
if medaglia_oii2425(studente) menzione then  
return True  
end if  
if (posizione(studente, scuola) quota(scuola)) and (punteggio(studente) > 20) then  
return True  
end if  
if (classe(studente) 2) and (punteggio(studente) 55) then  
return True  
end if  
return punteggio(studente) 65  
end function