or.carbon 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. //
  5. // AUTOUPDATE
  6. // TIP: To test this file alone, run:
  7. // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/operators/builtin/or.carbon
  8. // TIP: To dump output, run:
  9. // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/operators/builtin/or.carbon
  10. fn F() -> bool { return true; }
  11. fn G() -> bool { return true; }
  12. fn Or() -> bool {
  13. return F() or G();
  14. }
  15. fn Constant() {
  16. var a: if true or true then bool else () = true;
  17. var b: if true or false then bool else () = true;
  18. var c: if false or true then bool else () = true;
  19. var d: if false or false then bool else () = ();
  20. }
  21. fn PartialConstant(x: bool) {
  22. var a: if true or x then bool else () = true;
  23. }
  24. // CHECK:STDOUT: --- or.carbon
  25. // CHECK:STDOUT:
  26. // CHECK:STDOUT: constants {
  27. // CHECK:STDOUT: %Bool.type: type = fn_type @Bool [template]
  28. // CHECK:STDOUT: %.1: type = tuple_type () [template]
  29. // CHECK:STDOUT: %Bool: %Bool.type = struct_value () [template]
  30. // CHECK:STDOUT: %F.type: type = fn_type @F [template]
  31. // CHECK:STDOUT: %F: %F.type = struct_value () [template]
  32. // CHECK:STDOUT: %.2: bool = bool_literal true [template]
  33. // CHECK:STDOUT: %G.type: type = fn_type @G [template]
  34. // CHECK:STDOUT: %G: %G.type = struct_value () [template]
  35. // CHECK:STDOUT: %Or.type: type = fn_type @Or [template]
  36. // CHECK:STDOUT: %Or: %Or.type = struct_value () [template]
  37. // CHECK:STDOUT: %Constant.type: type = fn_type @Constant [template]
  38. // CHECK:STDOUT: %Constant: %Constant.type = struct_value () [template]
  39. // CHECK:STDOUT: %.3: bool = bool_literal false [template]
  40. // CHECK:STDOUT: %tuple: %.1 = tuple_value () [template]
  41. // CHECK:STDOUT: %PartialConstant.type: type = fn_type @PartialConstant [template]
  42. // CHECK:STDOUT: %PartialConstant: %PartialConstant.type = struct_value () [template]
  43. // CHECK:STDOUT: }
  44. // CHECK:STDOUT:
  45. // CHECK:STDOUT: imports {
  46. // CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [template] {
  47. // CHECK:STDOUT: .Bool = %import_ref
  48. // CHECK:STDOUT: import Core//prelude
  49. // CHECK:STDOUT: import Core//prelude/...
  50. // CHECK:STDOUT: }
  51. // CHECK:STDOUT: %import_ref: %Bool.type = import_ref Core//prelude/types/bool, inst+5, loaded [template = constants.%Bool]
  52. // CHECK:STDOUT: }
  53. // CHECK:STDOUT:
  54. // CHECK:STDOUT: file {
  55. // CHECK:STDOUT: package: <namespace> = namespace [template] {
  56. // CHECK:STDOUT: .Core = imports.%Core
  57. // CHECK:STDOUT: .F = %F.decl
  58. // CHECK:STDOUT: .G = %G.decl
  59. // CHECK:STDOUT: .Or = %Or.decl
  60. // CHECK:STDOUT: .Constant = %Constant.decl
  61. // CHECK:STDOUT: .PartialConstant = %PartialConstant.decl
  62. // CHECK:STDOUT: }
  63. // CHECK:STDOUT: %Core.import = import Core
  64. // CHECK:STDOUT: %F.decl: %F.type = fn_decl @F [template = constants.%F] {
  65. // CHECK:STDOUT: %return.patt: bool = return_slot_pattern
  66. // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param0
  67. // CHECK:STDOUT: } {
  68. // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool]
  69. // CHECK:STDOUT: %.loc11_11.1: type = value_of_initializer %bool.make_type [template = bool]
  70. // CHECK:STDOUT: %.loc11_11.2: type = converted %bool.make_type, %.loc11_11.1 [template = bool]
  71. // CHECK:STDOUT: %return.param: ref bool = out_param runtime_param0
  72. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  73. // CHECK:STDOUT: }
  74. // CHECK:STDOUT: %G.decl: %G.type = fn_decl @G [template = constants.%G] {
  75. // CHECK:STDOUT: %return.patt: bool = return_slot_pattern
  76. // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param0
  77. // CHECK:STDOUT: } {
  78. // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool]
  79. // CHECK:STDOUT: %.loc12_11.1: type = value_of_initializer %bool.make_type [template = bool]
  80. // CHECK:STDOUT: %.loc12_11.2: type = converted %bool.make_type, %.loc12_11.1 [template = bool]
  81. // CHECK:STDOUT: %return.param: ref bool = out_param runtime_param0
  82. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  83. // CHECK:STDOUT: }
  84. // CHECK:STDOUT: %Or.decl: %Or.type = fn_decl @Or [template = constants.%Or] {
  85. // CHECK:STDOUT: %return.patt: bool = return_slot_pattern
  86. // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param0
  87. // CHECK:STDOUT: } {
  88. // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool]
  89. // CHECK:STDOUT: %.loc14_12.1: type = value_of_initializer %bool.make_type [template = bool]
  90. // CHECK:STDOUT: %.loc14_12.2: type = converted %bool.make_type, %.loc14_12.1 [template = bool]
  91. // CHECK:STDOUT: %return.param: ref bool = out_param runtime_param0
  92. // CHECK:STDOUT: %return: ref bool = return_slot %return.param
  93. // CHECK:STDOUT: }
  94. // CHECK:STDOUT: %Constant.decl: %Constant.type = fn_decl @Constant [template = constants.%Constant] {} {}
  95. // CHECK:STDOUT: %PartialConstant.decl: %PartialConstant.type = fn_decl @PartialConstant [template = constants.%PartialConstant] {
  96. // CHECK:STDOUT: %x.patt: bool = binding_pattern x
  97. // CHECK:STDOUT: %x.param_patt: bool = value_param_pattern %x.patt, runtime_param0
  98. // CHECK:STDOUT: } {
  99. // CHECK:STDOUT: %bool.make_type.loc25: init type = call constants.%Bool() [template = bool]
  100. // CHECK:STDOUT: %.loc25_23.1: type = value_of_initializer %bool.make_type.loc25 [template = bool]
  101. // CHECK:STDOUT: %.loc25_23.2: type = converted %bool.make_type.loc25, %.loc25_23.1 [template = bool]
  102. // CHECK:STDOUT: %x.param: bool = value_param runtime_param0
  103. // CHECK:STDOUT: %x: bool = bind_name x, %x.param
  104. // CHECK:STDOUT: }
  105. // CHECK:STDOUT: }
  106. // CHECK:STDOUT:
  107. // CHECK:STDOUT: fn @Bool() -> type = "bool.make_type";
  108. // CHECK:STDOUT:
  109. // CHECK:STDOUT: fn @F() -> bool {
  110. // CHECK:STDOUT: !entry:
  111. // CHECK:STDOUT: %.loc11_25: bool = bool_literal true [template = constants.%.2]
  112. // CHECK:STDOUT: return %.loc11_25
  113. // CHECK:STDOUT: }
  114. // CHECK:STDOUT:
  115. // CHECK:STDOUT: fn @G() -> bool {
  116. // CHECK:STDOUT: !entry:
  117. // CHECK:STDOUT: %.loc12_25: bool = bool_literal true [template = constants.%.2]
  118. // CHECK:STDOUT: return %.loc12_25
  119. // CHECK:STDOUT: }
  120. // CHECK:STDOUT:
  121. // CHECK:STDOUT: fn @Or() -> bool {
  122. // CHECK:STDOUT: !entry:
  123. // CHECK:STDOUT: %F.ref: %F.type = name_ref F, file.%F.decl [template = constants.%F]
  124. // CHECK:STDOUT: %F.call: init bool = call %F.ref()
  125. // CHECK:STDOUT: %.loc15_14.1: bool = value_of_initializer %F.call
  126. // CHECK:STDOUT: %.loc15_14.2: bool = converted %F.call, %.loc15_14.1
  127. // CHECK:STDOUT: %.loc15_14.3: bool = not %.loc15_14.2
  128. // CHECK:STDOUT: %.loc15_14.4: bool = bool_literal true [template = constants.%.2]
  129. // CHECK:STDOUT: if %.loc15_14.3 br !or.rhs else br !or.result(%.loc15_14.4)
  130. // CHECK:STDOUT:
  131. // CHECK:STDOUT: !or.rhs:
  132. // CHECK:STDOUT: %G.ref: %G.type = name_ref G, file.%G.decl [template = constants.%G]
  133. // CHECK:STDOUT: %G.call: init bool = call %G.ref()
  134. // CHECK:STDOUT: %.loc15_14.5: bool = value_of_initializer %G.call
  135. // CHECK:STDOUT: %.loc15_14.6: bool = converted %G.call, %.loc15_14.5
  136. // CHECK:STDOUT: br !or.result(%.loc15_14.6)
  137. // CHECK:STDOUT:
  138. // CHECK:STDOUT: !or.result:
  139. // CHECK:STDOUT: %.loc15_14.7: bool = block_arg !or.result
  140. // CHECK:STDOUT: return %.loc15_14.7
  141. // CHECK:STDOUT: }
  142. // CHECK:STDOUT:
  143. // CHECK:STDOUT: fn @Constant() {
  144. // CHECK:STDOUT: !entry:
  145. // CHECK:STDOUT: %.loc19_13: bool = bool_literal true [template = constants.%.2]
  146. // CHECK:STDOUT: %.loc19_18.1: bool = not %.loc19_13 [template = constants.%.3]
  147. // CHECK:STDOUT: %.loc19_18.2: bool = bool_literal true [template = constants.%.2]
  148. // CHECK:STDOUT: if %.loc19_18.1 br !or.rhs.loc19 else br !or.result.loc19(%.loc19_18.2)
  149. // CHECK:STDOUT:
  150. // CHECK:STDOUT: !or.rhs.loc19:
  151. // CHECK:STDOUT: %.loc19_21: bool = bool_literal true [template = constants.%.2]
  152. // CHECK:STDOUT: br !or.result.loc19(%.loc19_21)
  153. // CHECK:STDOUT:
  154. // CHECK:STDOUT: !or.result.loc19:
  155. // CHECK:STDOUT: %.loc19_18.3: bool = block_arg !or.result.loc19 [template = constants.%.2]
  156. // CHECK:STDOUT: if %.loc19_18.3 br !if.expr.then.loc19 else br !if.expr.else.loc19
  157. // CHECK:STDOUT:
  158. // CHECK:STDOUT: !if.expr.then.loc19:
  159. // CHECK:STDOUT: %bool.make_type.loc19: init type = call constants.%Bool() [template = bool]
  160. // CHECK:STDOUT: %.loc19_31.1: type = value_of_initializer %bool.make_type.loc19 [template = bool]
  161. // CHECK:STDOUT: %.loc19_31.2: type = converted %bool.make_type.loc19, %.loc19_31.1 [template = bool]
  162. // CHECK:STDOUT: br !if.expr.result.loc19(%.loc19_31.2)
  163. // CHECK:STDOUT:
  164. // CHECK:STDOUT: !if.expr.else.loc19:
  165. // CHECK:STDOUT: %.loc19_42: %.1 = tuple_literal ()
  166. // CHECK:STDOUT: %.loc19_36: type = converted %.loc19_42, constants.%.1 [template = constants.%.1]
  167. // CHECK:STDOUT: br !if.expr.result.loc19(%.loc19_36)
  168. // CHECK:STDOUT:
  169. // CHECK:STDOUT: !if.expr.result.loc19:
  170. // CHECK:STDOUT: %.loc19_10: type = block_arg !if.expr.result.loc19 [template = bool]
  171. // CHECK:STDOUT: %a.var: ref bool = var a
  172. // CHECK:STDOUT: %a: ref bool = bind_name a, %a.var
  173. // CHECK:STDOUT: %.loc19_46: bool = bool_literal true [template = constants.%.2]
  174. // CHECK:STDOUT: assign %a.var, %.loc19_46
  175. // CHECK:STDOUT: %.loc20_13: bool = bool_literal true [template = constants.%.2]
  176. // CHECK:STDOUT: %.loc20_18.1: bool = not %.loc20_13 [template = constants.%.3]
  177. // CHECK:STDOUT: %.loc20_18.2: bool = bool_literal true [template = constants.%.2]
  178. // CHECK:STDOUT: if %.loc20_18.1 br !or.rhs.loc20 else br !or.result.loc20(%.loc20_18.2)
  179. // CHECK:STDOUT:
  180. // CHECK:STDOUT: !or.rhs.loc20:
  181. // CHECK:STDOUT: %.loc20_21: bool = bool_literal false [template = constants.%.3]
  182. // CHECK:STDOUT: br !or.result.loc20(%.loc20_21)
  183. // CHECK:STDOUT:
  184. // CHECK:STDOUT: !or.result.loc20:
  185. // CHECK:STDOUT: %.loc20_18.3: bool = block_arg !or.result.loc20 [template = constants.%.2]
  186. // CHECK:STDOUT: if %.loc20_18.3 br !if.expr.then.loc20 else br !if.expr.else.loc20
  187. // CHECK:STDOUT:
  188. // CHECK:STDOUT: !if.expr.then.loc20:
  189. // CHECK:STDOUT: %bool.make_type.loc20: init type = call constants.%Bool() [template = bool]
  190. // CHECK:STDOUT: %.loc20_32.1: type = value_of_initializer %bool.make_type.loc20 [template = bool]
  191. // CHECK:STDOUT: %.loc20_32.2: type = converted %bool.make_type.loc20, %.loc20_32.1 [template = bool]
  192. // CHECK:STDOUT: br !if.expr.result.loc20(%.loc20_32.2)
  193. // CHECK:STDOUT:
  194. // CHECK:STDOUT: !if.expr.else.loc20:
  195. // CHECK:STDOUT: %.loc20_43: %.1 = tuple_literal ()
  196. // CHECK:STDOUT: %.loc20_37: type = converted %.loc20_43, constants.%.1 [template = constants.%.1]
  197. // CHECK:STDOUT: br !if.expr.result.loc20(%.loc20_37)
  198. // CHECK:STDOUT:
  199. // CHECK:STDOUT: !if.expr.result.loc20:
  200. // CHECK:STDOUT: %.loc20_10: type = block_arg !if.expr.result.loc20 [template = bool]
  201. // CHECK:STDOUT: %b.var: ref bool = var b
  202. // CHECK:STDOUT: %b: ref bool = bind_name b, %b.var
  203. // CHECK:STDOUT: %.loc20_47: bool = bool_literal true [template = constants.%.2]
  204. // CHECK:STDOUT: assign %b.var, %.loc20_47
  205. // CHECK:STDOUT: %.loc21_13: bool = bool_literal false [template = constants.%.3]
  206. // CHECK:STDOUT: %.loc21_19.1: bool = not %.loc21_13 [template = constants.%.2]
  207. // CHECK:STDOUT: %.loc21_19.2: bool = bool_literal true [template = constants.%.2]
  208. // CHECK:STDOUT: if %.loc21_19.1 br !or.rhs.loc21 else br !or.result.loc21(%.loc21_19.2)
  209. // CHECK:STDOUT:
  210. // CHECK:STDOUT: !or.rhs.loc21:
  211. // CHECK:STDOUT: %.loc21_22: bool = bool_literal true [template = constants.%.2]
  212. // CHECK:STDOUT: br !or.result.loc21(%.loc21_22)
  213. // CHECK:STDOUT:
  214. // CHECK:STDOUT: !or.result.loc21:
  215. // CHECK:STDOUT: %.loc21_19.3: bool = block_arg !or.result.loc21 [template = constants.%.2]
  216. // CHECK:STDOUT: if %.loc21_19.3 br !if.expr.then.loc21 else br !if.expr.else.loc21
  217. // CHECK:STDOUT:
  218. // CHECK:STDOUT: !if.expr.then.loc21:
  219. // CHECK:STDOUT: %bool.make_type.loc21: init type = call constants.%Bool() [template = bool]
  220. // CHECK:STDOUT: %.loc21_32.1: type = value_of_initializer %bool.make_type.loc21 [template = bool]
  221. // CHECK:STDOUT: %.loc21_32.2: type = converted %bool.make_type.loc21, %.loc21_32.1 [template = bool]
  222. // CHECK:STDOUT: br !if.expr.result.loc21(%.loc21_32.2)
  223. // CHECK:STDOUT:
  224. // CHECK:STDOUT: !if.expr.else.loc21:
  225. // CHECK:STDOUT: %.loc21_43: %.1 = tuple_literal ()
  226. // CHECK:STDOUT: %.loc21_37: type = converted %.loc21_43, constants.%.1 [template = constants.%.1]
  227. // CHECK:STDOUT: br !if.expr.result.loc21(%.loc21_37)
  228. // CHECK:STDOUT:
  229. // CHECK:STDOUT: !if.expr.result.loc21:
  230. // CHECK:STDOUT: %.loc21_10: type = block_arg !if.expr.result.loc21 [template = bool]
  231. // CHECK:STDOUT: %c.var: ref bool = var c
  232. // CHECK:STDOUT: %c: ref bool = bind_name c, %c.var
  233. // CHECK:STDOUT: %.loc21_47: bool = bool_literal true [template = constants.%.2]
  234. // CHECK:STDOUT: assign %c.var, %.loc21_47
  235. // CHECK:STDOUT: %.loc22_13: bool = bool_literal false [template = constants.%.3]
  236. // CHECK:STDOUT: %.loc22_19.1: bool = not %.loc22_13 [template = constants.%.2]
  237. // CHECK:STDOUT: %.loc22_19.2: bool = bool_literal true [template = constants.%.2]
  238. // CHECK:STDOUT: if %.loc22_19.1 br !or.rhs.loc22 else br !or.result.loc22(%.loc22_19.2)
  239. // CHECK:STDOUT:
  240. // CHECK:STDOUT: !or.rhs.loc22:
  241. // CHECK:STDOUT: %.loc22_22: bool = bool_literal false [template = constants.%.3]
  242. // CHECK:STDOUT: br !or.result.loc22(%.loc22_22)
  243. // CHECK:STDOUT:
  244. // CHECK:STDOUT: !or.result.loc22:
  245. // CHECK:STDOUT: %.loc22_19.3: bool = block_arg !or.result.loc22 [template = constants.%.3]
  246. // CHECK:STDOUT: if %.loc22_19.3 br !if.expr.then.loc22 else br !if.expr.else.loc22
  247. // CHECK:STDOUT:
  248. // CHECK:STDOUT: !if.expr.then.loc22:
  249. // CHECK:STDOUT: %bool.make_type.loc22: init type = call constants.%Bool() [template = bool]
  250. // CHECK:STDOUT: %.loc22_33.1: type = value_of_initializer %bool.make_type.loc22 [template = bool]
  251. // CHECK:STDOUT: %.loc22_33.2: type = converted %bool.make_type.loc22, %.loc22_33.1 [template = bool]
  252. // CHECK:STDOUT: br !if.expr.result.loc22(%.loc22_33.2)
  253. // CHECK:STDOUT:
  254. // CHECK:STDOUT: !if.expr.else.loc22:
  255. // CHECK:STDOUT: %.loc22_44: %.1 = tuple_literal ()
  256. // CHECK:STDOUT: %.loc22_38: type = converted %.loc22_44, constants.%.1 [template = constants.%.1]
  257. // CHECK:STDOUT: br !if.expr.result.loc22(%.loc22_38)
  258. // CHECK:STDOUT:
  259. // CHECK:STDOUT: !if.expr.result.loc22:
  260. // CHECK:STDOUT: %.loc22_10: type = block_arg !if.expr.result.loc22 [template = constants.%.1]
  261. // CHECK:STDOUT: %d.var: ref %.1 = var d
  262. // CHECK:STDOUT: %d: ref %.1 = bind_name d, %d.var
  263. // CHECK:STDOUT: %.loc22_49.1: %.1 = tuple_literal ()
  264. // CHECK:STDOUT: %.loc22_49.2: init %.1 = tuple_init () to %d.var [template = constants.%tuple]
  265. // CHECK:STDOUT: %.loc22_50: init %.1 = converted %.loc22_49.1, %.loc22_49.2 [template = constants.%tuple]
  266. // CHECK:STDOUT: assign %d.var, %.loc22_50
  267. // CHECK:STDOUT: return
  268. // CHECK:STDOUT: }
  269. // CHECK:STDOUT:
  270. // CHECK:STDOUT: fn @PartialConstant(%x.param_patt: bool) {
  271. // CHECK:STDOUT: !entry:
  272. // CHECK:STDOUT: %.loc26_13: bool = bool_literal true [template = constants.%.2]
  273. // CHECK:STDOUT: %.loc26_18.1: bool = not %.loc26_13 [template = constants.%.3]
  274. // CHECK:STDOUT: %.loc26_18.2: bool = bool_literal true [template = constants.%.2]
  275. // CHECK:STDOUT: if %.loc26_18.1 br !or.rhs else br !or.result(%.loc26_18.2)
  276. // CHECK:STDOUT:
  277. // CHECK:STDOUT: !or.rhs:
  278. // CHECK:STDOUT: %x.ref: bool = name_ref x, %x
  279. // CHECK:STDOUT: br !or.result(%x.ref)
  280. // CHECK:STDOUT:
  281. // CHECK:STDOUT: !or.result:
  282. // CHECK:STDOUT: %.loc26_18.3: bool = block_arg !or.result [template = constants.%.2]
  283. // CHECK:STDOUT: if %.loc26_18.3 br !if.expr.then else br !if.expr.else
  284. // CHECK:STDOUT:
  285. // CHECK:STDOUT: !if.expr.then:
  286. // CHECK:STDOUT: %bool.make_type.loc26: init type = call constants.%Bool() [template = bool]
  287. // CHECK:STDOUT: %.loc26_28.1: type = value_of_initializer %bool.make_type.loc26 [template = bool]
  288. // CHECK:STDOUT: %.loc26_28.2: type = converted %bool.make_type.loc26, %.loc26_28.1 [template = bool]
  289. // CHECK:STDOUT: br !if.expr.result(%.loc26_28.2)
  290. // CHECK:STDOUT:
  291. // CHECK:STDOUT: !if.expr.else:
  292. // CHECK:STDOUT: %.loc26_39: %.1 = tuple_literal ()
  293. // CHECK:STDOUT: %.loc26_33: type = converted %.loc26_39, constants.%.1 [template = constants.%.1]
  294. // CHECK:STDOUT: br !if.expr.result(%.loc26_33)
  295. // CHECK:STDOUT:
  296. // CHECK:STDOUT: !if.expr.result:
  297. // CHECK:STDOUT: %.loc26_10: type = block_arg !if.expr.result [template = bool]
  298. // CHECK:STDOUT: %a.var: ref bool = var a
  299. // CHECK:STDOUT: %a: ref bool = bind_name a, %a.var
  300. // CHECK:STDOUT: %.loc26_43: bool = bool_literal true [template = constants.%.2]
  301. // CHECK:STDOUT: assign %a.var, %.loc26_43
  302. // CHECK:STDOUT: return
  303. // CHECK:STDOUT: }
  304. // CHECK:STDOUT: