Movatterモバイル変換


[0]ホーム

URL:


Next:, Previous:, Up:Sizes and offsets as runtime invariants   [Contents][Index]


9.6 Computing bounds onpoly_ints

poly_int also provides routines for calculating lower and upper bounds:

constant_lower_bound (a)

Assert thata is nonnegative and return the smallest value it can have.

constant_lower_bound_with_limit (a,b)

Return the least valuea can have, given that the context inwhicha appears guarantees that the answer is no less thanb.In other words, the caller is asserting thata is greater than orequal tob even if ‘known_ge (a,b)’ doesn’t hold.

constant_upper_bound_with_limit (a,b)

Return the greatest valuea can have, given that the context inwhicha appears guarantees that the answer is no greater thanb.In other words, the caller is asserting thata is less than or equaltob even if ‘known_le (a,b)’ doesn’t hold.

lower_bound (a,b)

Return a value that is always less than or equal to botha andb.It will be the greatest such value for some indeterminate valuesbut necessarily for all.

upper_bound (a,b)

Return a value that is always greater than or equal to botha andb. It will be the least such value for some indeterminate valuesbut necessarily for all.


[8]ページ先頭

©2009-2026 Movatter.jp