library colibrilib.modulo — module SBVmodule SBV147use int.Int148149function sbv_of_ubv (x:int) (size:int) : int = if 2*x < size then x else x - size150function ubv_of_sbv (x:int) (size:int) : int = if 0 <= x then x else size + x151Valid (15ms) (colibri2)152goal G: forall size x. 0 <= x < size -> ubv_of_sbv (sbv_of_ubv x size) size = x153Valid (18ms) (colibri2)154goal G2: forall size x. 0 <= x < size -> -size <= 2*(sbv_of_ubv x size) < size155156end157