https://github.com/project-everest/hacl-star
Raw File
Tip revision: 142df3a5d7df69d646d2090162c9ec94734d639b authored by Qunyan Mangus on 04 March 2019, 03:35:44 UTC
Replace reveal statements with calls to Opaque_s.reveal_opaque
Tip revision: 142df3a
Lib.Loops.fst
module Lib.Loops

open FStar.HyperStack
open FStar.HyperStack.ST

open Lib.IntTypes
open Lib.RawIntTypes

let for start finish inv f =
  C.Loops.for
    (size_to_UInt32 start)
    (size_to_UInt32 finish)
    (fun h i -> v start <= i /\ i <= v finish /\ inv h i)
    (fun i -> f (size_from_UInt32 i))
back to top