https://github.com/project-everest/hacl-star
Raw File
Tip revision: 4d41d4ec3acc48721e2966ccf1a9a9abdaadc719 authored by Chris Hawblitzel on 14 March 2019, 05:53:02 UTC
Disable X64.Leakage_Ins* to enable merge
Tip revision: 4d41d4e
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