We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43f65f2 commit 40833b2Copy full SHA for 40833b2
src/main/resources/stubs/strconv/atoi.gobra
@@ -42,10 +42,11 @@ pure func (e *NumError) Unwrap() error { return e.Err }
42
43
// a to the power of b
44
ghost
45
+requires base == 0 || (2 <= base && base <= 36)
46
requires exp >= 0
47
ensures res == (exp == 0 ? 1 : (base * Exp(base, exp - 1)))
48
decreases exp
-pure func Exp(base int, exp int) (res int) {
49
+pure func Exp(base uint64, exp int) (res uint64) {
50
return exp == 0 ? 1 : (base * Exp(base, exp - 1))
51
}
52
0 commit comments