> 10M LoC i := n while i 1 do k := f (k, n - i) i := i - 1 if n - - PowerPoint PPT Presentation

โ–ถ
10m loc
SMART_READER_LITE
LIVE PREVIEW

> 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-1
SLIDE 1
slide-2
SLIDE 2
slide-3
SLIDE 3
slide-4
SLIDE 4
slide-5
SLIDE 5

> 10M LoC

slide-6
SLIDE 6
slide-7
SLIDE 7
slide-8
SLIDE 8
slide-9
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 10
slide-11
SLIDE 11

f(k, i)

slide-12
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 13
slide-14
SLIDE 14
slide-15
SLIDE 15
slide-16
SLIDE 16

๐‘ˆ ๐‘“ = เท

๐‘—=1 ๐‘œ

เท

๐‘˜=0 ๐‘’

fij ร— T ei

j ,

if ๐‘“ = f ๐‘“1, โ€ฆ , ๐‘“๐‘œ

slide-17
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
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
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 20
slide-21
SLIDE 21
slide-22
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
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
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
SLIDE 25

S x,y := Sx(y, z), Sy(y, z)

Precondition: R(S) = {y, z} W(S) = {x, y}

โ†’

slide-26
SLIDE 26
slide-27
SLIDE 27

28

slide-28
SLIDE 28
slide-29
SLIDE 29
slide-30
SLIDE 30
slide-31
SLIDE 31

x * 2c / d x / (d / 2c) = x / d * 2c = x * 2c / d

slide-32
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 33
slide-34
SLIDE 34
slide-35
SLIDE 35
slide-36
SLIDE 36