def milliseconds
import bend-collections-laws-crypto@1.0.0.0/proofs/lib/lemmas/spec/numeric.bend as Numericimport Base
import bend-collections-laws-crypto@1.0.0.0/proofs/lib/lemmas/types/model.bend as T
47def milliseconds(duration: T.Int64) -> T.Int64:
48 T.I64{+bits} = duration
49 T.I64{quotient_signed(bits, negative(bits))}