1spv.loopsArtificial.frag
2// Module Version 10000
3// Generated by (magic number): 8000a
4// Id's are bound by 158
5
6                              Capability Shader
7               1:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint Fragment 4  "main" 11 17 27 80 140 142 143 144 145 146 147 148 149 150 151 152 153 154 157
10                              ExecutionMode 4 OriginUpperLeft
11                              Source GLSL 140
12                              Name 4  "main"
13                              Name 9  "color"
14                              Name 11  "BaseColor"
15                              Name 17  "bigColor4"
16                              Name 27  "d4"
17                              Name 80  "d13"
18                              Name 140  "gl_FragColor"
19                              Name 142  "bigColor"
20                              Name 143  "bigColor1_1"
21                              Name 144  "bigColor1_2"
22                              Name 145  "bigColor1_3"
23                              Name 146  "bigColor2"
24                              Name 147  "bigColor3"
25                              Name 148  "bigColor5"
26                              Name 149  "bigColor6"
27                              Name 150  "bigColor7"
28                              Name 151  "bigColor8"
29                              Name 152  "d"
30                              Name 153  "d2"
31                              Name 154  "d3"
32                              Name 157  "Count"
33                              Decorate 11(BaseColor) Location 11
34                              Decorate 17(bigColor4) Location 6
35                              Decorate 27(d4) Location 15
36                              Decorate 80(d13) Location 16
37                              Decorate 140(gl_FragColor) Location 0
38                              Decorate 142(bigColor) Location 0
39                              Decorate 143(bigColor1_1) Location 1
40                              Decorate 144(bigColor1_2) Location 2
41                              Decorate 145(bigColor1_3) Location 3
42                              Decorate 146(bigColor2) Location 4
43                              Decorate 147(bigColor3) Location 5
44                              Decorate 148(bigColor5) Location 7
45                              Decorate 149(bigColor6) Location 8
46                              Decorate 150(bigColor7) Location 9
47                              Decorate 151(bigColor8) Location 10
48                              Decorate 152(d) Location 12
49                              Decorate 153(d2) Location 13
50                              Decorate 154(d3) Location 14
51                              Decorate 157(Count) Flat
52                              Decorate 157(Count) Location 17
53               2:             TypeVoid
54               3:             TypeFunction 2
55               6:             TypeFloat 32
56               7:             TypeVector 6(float) 4
57               8:             TypePointer Function 7(fvec4)
58              10:             TypePointer Input 7(fvec4)
59   11(BaseColor):     10(ptr) Variable Input
60   17(bigColor4):     10(ptr) Variable Input
61              21:             TypeInt 32 0
62              22:     21(int) Constant 0
63              23:             TypePointer Function 6(float)
64              26:             TypePointer Input 6(float)
65          27(d4):     26(ptr) Variable Input
66              29:             TypeBool
67              33:    6(float) Constant 1073741824
68              34:     21(int) Constant 2
69              47:    6(float) Constant 1065353216
70              50:     21(int) Constant 1
71              77:     21(int) Constant 3
72         80(d13):     26(ptr) Variable Input
73             139:             TypePointer Output 7(fvec4)
74140(gl_FragColor):    139(ptr) Variable Output
75   142(bigColor):     10(ptr) Variable Input
76143(bigColor1_1):     10(ptr) Variable Input
77144(bigColor1_2):     10(ptr) Variable Input
78145(bigColor1_3):     10(ptr) Variable Input
79  146(bigColor2):     10(ptr) Variable Input
80  147(bigColor3):     10(ptr) Variable Input
81  148(bigColor5):     10(ptr) Variable Input
82  149(bigColor6):     10(ptr) Variable Input
83  150(bigColor7):     10(ptr) Variable Input
84  151(bigColor8):     10(ptr) Variable Input
85          152(d):     26(ptr) Variable Input
86         153(d2):     26(ptr) Variable Input
87         154(d3):     26(ptr) Variable Input
88             155:             TypeInt 32 1
89             156:             TypePointer Input 155(int)
90      157(Count):    156(ptr) Variable Input
91         4(main):           2 Function None 3
92               5:             Label
93        9(color):      8(ptr) Variable Function
94              12:    7(fvec4) Load 11(BaseColor)
95                              Store 9(color) 12
96                              Branch 13
97              13:             Label
98                              LoopMerge 15 16 None
99                              Branch 14
100              14:             Label
101              18:    7(fvec4) Load 17(bigColor4)
102              19:    7(fvec4) Load 9(color)
103              20:    7(fvec4) FAdd 19 18
104                              Store 9(color) 20
105              24:     23(ptr) AccessChain 9(color) 22
106              25:    6(float) Load 24
107              28:    6(float) Load 27(d4)
108              30:    29(bool) FOrdLessThan 25 28
109                              SelectionMerge 32 None
110                              BranchConditional 30 31 32
111              31:               Label
112              35:     23(ptr)   AccessChain 9(color) 34
113              36:    6(float)   Load 35
114              37:    6(float)   FAdd 36 33
115              38:     23(ptr)   AccessChain 9(color) 34
116                                Store 38 37
117              39:     23(ptr)   AccessChain 9(color) 34
118              40:    6(float)   Load 39
119              41:    6(float)   Load 27(d4)
120              42:    29(bool)   FOrdLessThan 40 41
121                                SelectionMerge 44 None
122                                BranchConditional 42 43 44
123              43:                 Label
124              45:     23(ptr)     AccessChain 9(color) 22
125              46:    6(float)     Load 45
126              48:    6(float)     FAdd 46 47
127                                  Store 45 48
128                                  Branch 16
129              44:               Label
130                                Branch 32
131              32:             Label
132              51:     23(ptr) AccessChain 9(color) 50
133              52:    6(float) Load 51
134              53:    6(float) Load 27(d4)
135              54:    29(bool) FOrdLessThan 52 53
136                              SelectionMerge 56 None
137                              BranchConditional 54 55 62
138              55:               Label
139              57:    6(float)   Load 27(d4)
140              58:     23(ptr)   AccessChain 9(color) 50
141              59:    6(float)   Load 58
142              60:    6(float)   FAdd 59 57
143              61:     23(ptr)   AccessChain 9(color) 50
144                                Store 61 60
145                                Branch 56
146              62:               Label
147              63:    6(float)   Load 27(d4)
148              64:     23(ptr)   AccessChain 9(color) 22
149              65:    6(float)   Load 64
150              66:    6(float)   FAdd 65 63
151              67:     23(ptr)   AccessChain 9(color) 22
152                                Store 67 66
153                                Branch 56
154              56:             Label
155                              Branch 16
156              16:             Label
157              68:     23(ptr) AccessChain 9(color) 34
158              69:    6(float) Load 68
159              70:    6(float) Load 27(d4)
160              71:    29(bool) FOrdLessThan 69 70
161                              BranchConditional 71 13 15
162              15:             Label
163                              Branch 72
164              72:             Label
165                              LoopMerge 74 75 None
166                              Branch 76
167              76:             Label
168              78:     23(ptr) AccessChain 9(color) 77
169              79:    6(float) Load 78
170              81:    6(float) Load 80(d13)
171              82:    29(bool) FOrdLessThan 79 81
172                              BranchConditional 82 73 74
173              73:               Label
174              83:     23(ptr)   AccessChain 9(color) 34
175              84:    6(float)   Load 83
176              85:    6(float)   Load 80(d13)
177              86:    29(bool)   FOrdLessThan 84 85
178                                SelectionMerge 88 None
179                                BranchConditional 86 87 92
180              87:                 Label
181              89:    7(fvec4)     Load 9(color)
182              90:    7(fvec4)     CompositeConstruct 47 47 47 47
183              91:    7(fvec4)     FAdd 89 90
184                                  Store 9(color) 91
185                                  Branch 88
186              92:                 Label
187              93:    7(fvec4)     Load 9(color)
188              94:    7(fvec4)     CompositeConstruct 47 47 47 47
189              95:    7(fvec4)     FSub 93 94
190                                  Store 9(color) 95
191                                  Branch 88
192              88:               Label
193              96:    7(fvec4)   Load 17(bigColor4)
194              97:    7(fvec4)   Load 9(color)
195              98:    7(fvec4)   FAdd 97 96
196                                Store 9(color) 98
197              99:     23(ptr)   AccessChain 9(color) 22
198             100:    6(float)   Load 99
199             101:    6(float)   Load 27(d4)
200             102:    29(bool)   FOrdLessThan 100 101
201                                SelectionMerge 104 None
202                                BranchConditional 102 103 104
203             103:                 Label
204             105:     23(ptr)     AccessChain 9(color) 34
205             106:    6(float)     Load 105
206             107:    6(float)     FAdd 106 33
207             108:     23(ptr)     AccessChain 9(color) 34
208                                  Store 108 107
209             109:     23(ptr)     AccessChain 9(color) 34
210             110:    6(float)     Load 109
211             111:    6(float)     Load 27(d4)
212             112:    29(bool)     FOrdLessThan 110 111
213                                  SelectionMerge 114 None
214                                  BranchConditional 112 113 114
215             113:                   Label
216             115:     23(ptr)       AccessChain 9(color) 22
217             116:    6(float)       Load 115
218             117:    6(float)       FAdd 116 47
219                                    Store 115 117
220                                    Branch 75
221             114:                 Label
222                                  Branch 104
223             104:               Label
224             119:     23(ptr)   AccessChain 9(color) 50
225             120:    6(float)   Load 119
226             121:    6(float)   Load 27(d4)
227             122:    29(bool)   FOrdLessThan 120 121
228                                SelectionMerge 124 None
229                                BranchConditional 122 123 130
230             123:                 Label
231             125:    6(float)     Load 27(d4)
232             126:     23(ptr)     AccessChain 9(color) 50
233             127:    6(float)     Load 126
234             128:    6(float)     FAdd 127 125
235             129:     23(ptr)     AccessChain 9(color) 50
236                                  Store 129 128
237                                  Branch 124
238             130:                 Label
239             131:    6(float)     Load 27(d4)
240             132:     23(ptr)     AccessChain 9(color) 22
241             133:    6(float)     Load 132
242             134:    6(float)     FAdd 133 131
243             135:     23(ptr)     AccessChain 9(color) 22
244                                  Store 135 134
245                                  Branch 124
246             124:               Label
247                                Branch 75
248              75:               Label
249                                Branch 72
250              74:             Label
251             136:    7(fvec4) Load 9(color)
252             137:    7(fvec4) CompositeConstruct 47 47 47 47
253             138:    7(fvec4) FAdd 136 137
254                              Store 9(color) 138
255             141:    7(fvec4) Load 9(color)
256                              Store 140(gl_FragColor) 141
257                              Return
258                              FunctionEnd
259