SLIDE 1
> 10M LoC i := n while i 1 do k := f (k, n - i) i := i - 1 if n - - PowerPoint PPT Presentation
> 10M LoC i := n while i 1 do k := f (k, n - i) i := i - 1 if n - - PowerPoint PPT Presentation
> 10M LoC i := n while i 1 do k := f (k, n - i) i := i - 1 if n 0 then i := 0 else i := n f (k, i) assume i = i k = k n = n i := 0 while i < n do k := ak + b i + c i := i + 1 R i (j) = R i (j-1) + 1 () R i (0) =
SLIDE 2
SLIDE 3
SLIDE 4
SLIDE 5
> 10M LoC
SLIDE 6
SLIDE 7
SLIDE 8
SLIDE 9
i := n while i โฅ 1 do k := f(k, n - i) i := i - 1 if n โค 0 then i := 0 else i := n
SLIDE 10
SLIDE 11
f(k, i)
SLIDE 12
๐๐ ๐ = ๐ ๐๐ โ ๐๐ + ๐ โ 1 + ๐ โ 1 ๐๐ ๐ โ 1 ๐0 + ๐ โ ๐ ๐ โ 1 2 ๐๐ ๐ = ๐
assume i = i โง k = k โง n = n i := 0 while i < n do k := aยทk + bยทi + c i := i + 1 (โฆ) assert i = i โง k = k โง n = n
Ri(j) = Ri(j-1) + 1 Ri(0) = 0 Rk(j) = a ร Rk(j-1) + b ร Ri(j-1) + c Rk(0) = k0
SLIDE 13
SLIDE 14
SLIDE 15
SLIDE 16
๐ ๐ = เท
๐=1 ๐
เท
๐=0 ๐
fij ร T ei
j ,
if ๐ = f ๐1, โฆ , ๐๐
SLIDE 17
if i < n then k := f(x) else k := f(y) if f(z) < 0 โง k < 0 then โฆ
u(f) = 2
SLIDE 18
f(a) f(b) f(c) f(d)
- 4
- 2
2 4 6 8 10 12
- 2
- 1
1 2 3 4 5 6 7 8
SLIDE 19
while b do c if b then assume ฯn-1(b) โง ฯn(ยฌb) vi := ฯn(vi) else assume n = 0
โ
SLIDE 20
SLIDE 21
SLIDE 22
while I < N do if B then S1 else S2 I := I + 1 if B then while I < N do S1 I := I + 1 else while I < N do S2 I := I + 1
โ
S1, S2 are template statements B is a template Boolean expression
SLIDE 23
while I < N do if B then S1 else S2 I := I + 1
โ
โฆ while I < N do if N > 5 then A := A + N else A := A + 1 I := I + 1 โฆ if N > 5 then while I < N do A := A + N I := I + 1 else while I < N do A := A + 1 I := I + 1 Instantiation: ๐ถ โผ ๐ > 5 ๐1 โผ ๐ต โ ๐ต + ๐ ๐2 โผ ๐ต โ ๐ต + 1
SLIDE 24
while I < N do if B then S1 else S2 I := I + 1 if B then while I < N do S1 I := I + 1 else while I < N do S2 I := I + 1
โ
Precondition: ๐ฝ โ ๐ ๐ถ โง ๐ ๐1 โฉ ๐ ๐ถ = โ โง ๐ ๐2 โฉ ๐ ๐ถ = โ
SLIDE 25
S x,y := Sx(y, z), Sy(y, z)
Precondition: R(S) = {y, z} W(S) = {x, y}
โ
SLIDE 26
SLIDE 27
28
SLIDE 28
SLIDE 29
SLIDE 30
SLIDE 31
x * 2c / d x / (d / 2c) = x / d * 2c = x * 2c / d
SLIDE 32
ERROR: Domain of definedness of Target is smaller than Source's for i4 %b Example: %X i4 = 0x0 (0) c i4 = 0x3 (3) d i4 = 0x7 (7) %a i4 = 0x0 (0) (1 << c) i4 = 0x8 (8, -8) %t i4 = 0x0 (0) Source value: 0x0 (0) Target value: undef
SLIDE 33
SLIDE 34
SLIDE 35
SLIDE 36