Source/Packages

ResourcePlanContract

packages/hardware/platforms/linux-nvidia/tests/ResourcePlanContract.alpha

639 lines74 declarations22.9 KiBSHA-256 df18db61c507

def · lines 318–330

rpWithStaging

Full file
318def rpWithStaging =
319  (lambda unrestricted host : Nat .
320    (eliminate
321      StdResult
322      (lambda unrestricted r : (family StdResult (family NativePhysicalMemoryFailure) (family NvidiaResourceContext)) .
323        Nat)
324      (nlsResourceContext (rpContext b"first" 1 host 12288 1048576))
325      (branch StdFailure reason . 0)
326      (branch
327        StdSuccess
328        context
329        .
330        (nvidiaPlanHostResourcesAdmitted context (rpDirect 8192 0) rpProgram))))

The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.