-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_cntrs.f
81 lines (76 loc) · 1.76 KB
/
test_cntrs.f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
PROGRAM TESTICTNS
CALL TEST1(1)
CALL TCNTR1(1)
CALL TCNTR2(1)
CALL TCNTL1(1)
CALL TCNTL2(1)
END
SUBROUTINE TEST1(T)
INTEGER T, NUMS(3), NZLEN, CNT
LOGICAL ISDONE
ISDONE = .FALSE.
CALL AIZERO(NUMS, 3)
NZLEN = 0
CNT = 0
1 CALL ICTNS(NUMS, 3, 2, NZLEN, ISDONE)
CNT = CNT + 1
IF (ISDONE) GOTO 3
GOTO 1
3 CALL IXPECT(T, 1, CNT, 15)
END
SUBROUTINE TCNTR1(T)
INTEGER T, NUMS(3), MAXES(3), CNT
LOGICAL ISDONE
ISDONE = .FALSE.
CALL AIZERO(NUMS, 3)
CALL AIFILL(MAXES, 3, 9)
CNT = 0
11 CALL CNTR(NUMS, MAXES, 3, ISDONE)
CNT = CNT + 1
IF (ISDONE) GOTO 13
GOTO 11
13 CALL IXPECT(T, 1, CNT, 1000)
END
SUBROUTINE TCNTR2(T)
INTEGER T, NUMS(3), MAXES(3), CNT
LOGICAL ISDONE
ISDONE = .FALSE.
CALL AIZERO(NUMS, 3)
MAXES(1)=3
MAXES(2)=6
MAXES(3)=4
CNT = 0
21 CALL CNTR(NUMS, MAXES, 3, ISDONE)
CNT = CNT + 1
IF (ISDONE) GOTO 23
GOTO 21
23 CALL IXPECT(T, 1, CNT, 140)
END
SUBROUTINE TCNTL1(T)
INTEGER T, NUMS(3), MAXES(3), CNT
LOGICAL ISDONE
ISDONE = .FALSE.
CALL AIZERO(NUMS, 3)
CALL AIFILL(MAXES, 3, 9)
CNT = 0
31 CALL CNTL(NUMS, MAXES, 3, ISDONE)
CNT = CNT + 1
IF (ISDONE) GOTO 33
GOTO 31
33 CALL IXPECT(T, 1, CNT, 1000)
END
SUBROUTINE TCNTL2(T)
INTEGER T, NUMS(3), MAXES(3), CNT
LOGICAL ISDONE
ISDONE = .FALSE.
CALL AIZERO(NUMS, 3)
MAXES(1)=3
MAXES(2)=6
MAXES(3)=4
CNT = 0
41 CALL CNTL(NUMS, MAXES, 3, ISDONE)
CNT = CNT + 1
IF (ISDONE) GOTO 43
GOTO 41
43 CALL IXPECT(T, 1, CNT, 140)
END