This is an old revision of the document!
changeAttributes(ident id, ident sheetId, double maxPoints) { assume exists //exercises/exercise[id]/sheets/sheet[sheetId]; # implies the existence of the exercise assume maxPoints >= 0; assume //exercises/exercise[id]/students/student[x]/result[sheetId]/points < maxPoints; update //exercises/exercise[id]/sheets/sheet[sheetId]/maxPoints maxPoints; } # roles: assistant[id]