Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Symboltabelle
- Nr Name Type Int_Typ Offset Line Index1 Index2 Vater Parameter
- ---------------------------------------------------------------------------------------------
- 0: main Prg None 32 0 0 0 0 0
- 1: variable_1 Int None 0 0 0 0 0 0
- 2: variable_2 Int None 4 0 0 0 0 0
- 3: variable_3 Real None 8 0 0 0 0 0
- 4: H1 Int None 16 2 0 0 0 0
- 5: H2 Int None 20 6 0 0 0 0
- 6: H3 Int None 24 14 0 0 0 0
- 7: H4 Int None 28 18 0 0 0 0
- 8: questionmark Func Real 28 24 0 0 0 2
- 9: x Int None 0 24 0 0 8 1
- 10: y Int None 4 24 0 0 8 2
- 11: result Real None 8 24 0 0 8 0
- 12: H5 Int None 16 24 0 0 8 0
- 13: H6 Int None 20 29 0 0 8 0
- 14: H7 Int None 24 33 0 0 8 0
- Quadrupelcode Listing
- ---------------------
- 0 variable_1 := 1
- 1 variable_2 := 2
- 2 H1 := 0
- 3 IF (variable_1 <= 10) GOTO 5
- 4 GOTO 6
- 5 H1 := 1
- 6 H2 := 0
- 7 IF (H1 = 0) GOTO 10
- 8 IF (1 = 0) GOTO 10
- 9 H2 := 1
- 10 IF (H2 <> 0) GOTO 12
- 11 GOTO 20
- 12 PARAM variable_1
- 13 PARAM variable_2
- 14 H3 := CALL questionmark, 2
- 15 variable_3 := H3
- 16 variable_1 := variable_1 + 1
- 17 variable_2 := variable_1
- 18 H4 := variable_2 << 2
- 19 variable_2 := H4
- 20 IF (variable_3 <> 0) GOTO 22
- 21 GOTO 23
- 22 RETURN 0
- 23 RETURN 1
- 24 H5 := y / x
- 25 IF (H5 <> 0) GOTO 27
- 26 GOTO 28
- 27 result := 1.0
- 28 y := y - 1
- 29 H6 := 0
- 30 IF (y < x) GOTO 32
- 31 GOTO 33
- 32 H6 := 1
- 33 H7 := 1
- 34 IF (H6 <> 0) GOTO 37
- 35 IF (0 <> 0) GOTO 37
- 36 H7 := 0
- 37 IF (H7 <> 0) GOTO 24
- 38 GOTO 39
- 39 RETURN result
Add Comment
Please, Sign In to add comment