Debian Codegraph @

loki/tests/sources/projHoist/module/subroutines_mod.f90

raw symbols SCIP
1 module subroutines_mod
2 implicit none
3 integer, parameter :: len = 3
4 contains
5
6 subroutine kernel1(a, b, c)
7 integer, intent(in) :: a
8 integer, intent(inout) :: b(a)
9 integer, intent(inout) :: c(a, len)
10 real :: x(a)
11 integer :: y(a, len)
12 real :: k1_tmp(a, len)
13 y = 11
14 c = y
15 end subroutine kernel1
16
17 subroutine kernel2(a1, b)
18 integer, intent(in) :: a1
19 integer, intent(inout) :: b(a1)
20 real :: x(a1)
21 real :: y, z
22 real :: k2_tmp(a1, a1)
23 call device1(a1, b, x, k2_tmp)
24 call device2(a1, b, x)
25 end subroutine kernel2
26
27 subroutine device1(a1, b, x, y)
28 integer, intent(in) :: a1
29 integer, intent(inout) :: b(a1)
30 real, intent(inout) :: x(a1)
31 real, intent(inout) :: y(a1, a1)
32 real :: z
33 integer :: d1_tmp
34 call device2(a1, b, x)
35 call device2(a1, b, x)
36 end subroutine device1
37
38 subroutine device2(a2, b, x)
39 integer, intent(in) :: a2
40 integer, intent(inout) :: b(a2)
41 real, intent(inout) :: x(a2)
42 integer z(a2)
43 integer :: d2_tmp(len)
44 z = 42
45 b = z
46 end subroutine device2
47
48 subroutine kernel3(a, a1)
49 integer, intent(in) :: a, a1
50
51 call device3(a)
52 call device3(a1)
53 end subroutine kernel3
54
55 subroutine device3(n)
56 integer, intent(in) :: n
57 integer :: x(n)
58
59 x = 1
60 end subroutine device3
61
62 end module subroutines_mod
63