Download seb/kernel/ada/seb_constitution_kernel.adb from Snapkitty/sov-kernel-monster: direct link, hf CLI and curl.
- Browser
- Download file 434 Bytes
-
https://huggingface.co/Snapkitty/sov-kernel-monster/resolve/main/seb/kernel/ada/seb_constitution_kernel.adb
- Command line
-
hf download hf://Snapkitty/sov-kernel-monster/seb/kernel/ada/seb_constitution_kernel.adb
-
curl -L -o seb_constitution_kernel.adb https://huggingface.co/Snapkitty/sov-kernel-monster/resolve/main/seb/kernel/ada/seb_constitution_kernel.adb
434 Bytes
| -- SPARK Kernel implementation | |
| package body Kernel | |
| with SPARK_Mode => On | |
| is | |
| function Authorize (P : Proposal) return Verdict is | |
| begin | |
| if P.Precondition_Met then | |
| return Approved; | |
| else | |
| return Denied; | |
| end if; | |
| end Authorize; | |
| procedure Execute_Transition (P : Proposal; V : out Verdict) is | |
| begin | |
| V := Authorize (P); | |
| end Execute_Transition; | |
| end Kernel; | |