| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360 |
- // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
- // Exceptions. See /LICENSE for license information.
- // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
- //
- // AUTOUPDATE
- // TIP: To test this file alone, run:
- // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/builtins/bool/neq.carbon
- // TIP: To dump output, run:
- // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/builtins/bool/neq.carbon
- // --- builtin_call.carbon
- library "[[@TEST_NAME]]";
- fn Neq(a: bool, b: bool) -> bool = "bool.neq";
- class C(B:! bool) {}
- fn True() -> C(true);
- fn False() -> C(false);
- var a: C(Neq(true, true)) = False();
- var b: C(Neq(true, false)) = True();
- var c: C(Neq(false, true)) = True();
- var d: C(Neq(false, false)) = False();
- // --- prelude.carbon
- library "[[@TEST_NAME]]";
- class C(B:! bool) {}
- fn True() -> C(true);
- fn False() -> C(false);
- var a: C(true != true) = False();
- var b: C(true != false) = True();
- var c: C(false != true) = True();
- var d: C(false != false) = False();
- // CHECK:STDOUT: --- builtin_call.carbon
- // CHECK:STDOUT:
- // CHECK:STDOUT: constants {
- // CHECK:STDOUT: %Bool.type: type = fn_type @Bool [template]
- // CHECK:STDOUT: %Bool: %Bool.type = struct_value () [template]
- // CHECK:STDOUT: %Neq.type: type = fn_type @Neq [template]
- // CHECK:STDOUT: %Neq: %Neq.type = struct_value () [template]
- // CHECK:STDOUT: %B: bool = bind_symbolic_name B, 0 [symbolic]
- // CHECK:STDOUT: %B.patt: bool = symbolic_binding_pattern B, 0 [symbolic]
- // CHECK:STDOUT: %C.type: type = generic_class_type @C [template]
- // CHECK:STDOUT: %C.generic: %C.type = struct_value () [template]
- // CHECK:STDOUT: %C.342: type = class_type @C, @C(%B) [symbolic]
- // CHECK:STDOUT: %empty_struct_type: type = struct_type {} [template]
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template]
- // CHECK:STDOUT: %true: bool = bool_literal true [template]
- // CHECK:STDOUT: %C.a14: type = class_type @C, @C(%true) [template]
- // CHECK:STDOUT: %True.type: type = fn_type @True [template]
- // CHECK:STDOUT: %True: %True.type = struct_value () [template]
- // CHECK:STDOUT: %false: bool = bool_literal false [template]
- // CHECK:STDOUT: %C.2ba: type = class_type @C, @C(%false) [template]
- // CHECK:STDOUT: %False.type: type = fn_type @False [template]
- // CHECK:STDOUT: %False: %False.type = struct_value () [template]
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: imports {
- // CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [template] {
- // CHECK:STDOUT: .Bool = %import_ref
- // CHECK:STDOUT: import Core//prelude
- // CHECK:STDOUT: import Core//prelude/...
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: file {
- // CHECK:STDOUT: package: <namespace> = namespace [template] {
- // CHECK:STDOUT: .Core = imports.%Core
- // CHECK:STDOUT: .Neq = %Neq.decl
- // CHECK:STDOUT: .C = %C.decl
- // CHECK:STDOUT: .True = %True.decl
- // CHECK:STDOUT: .False = %False.decl
- // CHECK:STDOUT: .a = %a
- // CHECK:STDOUT: .b = %b
- // CHECK:STDOUT: .c = %c
- // CHECK:STDOUT: .d = %d
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %Core.import = import Core
- // CHECK:STDOUT: %Neq.decl: %Neq.type = fn_decl @Neq [template = constants.%Neq] {
- // CHECK:STDOUT: %a.patt: bool = binding_pattern a
- // CHECK:STDOUT: %a.param_patt: bool = value_param_pattern %a.patt, runtime_param0
- // CHECK:STDOUT: %b.patt: bool = binding_pattern b
- // CHECK:STDOUT: %b.param_patt: bool = value_param_pattern %b.patt, runtime_param1
- // CHECK:STDOUT: %return.patt: bool = return_slot_pattern
- // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %bool.make_type.loc4_29: init type = call constants.%Bool() [template = bool]
- // CHECK:STDOUT: %.loc4_29.1: type = value_of_initializer %bool.make_type.loc4_29 [template = bool]
- // CHECK:STDOUT: %.loc4_29.2: type = converted %bool.make_type.loc4_29, %.loc4_29.1 [template = bool]
- // CHECK:STDOUT: %a.param: bool = value_param runtime_param0
- // CHECK:STDOUT: %.loc4_11.1: type = splice_block %.loc4_11.3 [template = bool] {
- // CHECK:STDOUT: %bool.make_type.loc4_11: init type = call constants.%Bool() [template = bool]
- // CHECK:STDOUT: %.loc4_11.2: type = value_of_initializer %bool.make_type.loc4_11 [template = bool]
- // CHECK:STDOUT: %.loc4_11.3: type = converted %bool.make_type.loc4_11, %.loc4_11.2 [template = bool]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %a: bool = bind_name a, %a.param
- // CHECK:STDOUT: %b.param: bool = value_param runtime_param1
- // CHECK:STDOUT: %.loc4_20.1: type = splice_block %.loc4_20.3 [template = bool] {
- // CHECK:STDOUT: %bool.make_type.loc4_20: init type = call constants.%Bool() [template = bool]
- // CHECK:STDOUT: %.loc4_20.2: type = value_of_initializer %bool.make_type.loc4_20 [template = bool]
- // CHECK:STDOUT: %.loc4_20.3: type = converted %bool.make_type.loc4_20, %.loc4_20.2 [template = bool]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %b: bool = bind_name b, %b.param
- // CHECK:STDOUT: %return.param: ref bool = out_param runtime_param2
- // CHECK:STDOUT: %return: ref bool = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %C.decl: %C.type = class_decl @C [template = constants.%C.generic] {
- // CHECK:STDOUT: %B.patt.loc6_9.1: bool = symbolic_binding_pattern B, 0 [symbolic = %B.patt.loc6_9.2 (constants.%B.patt)]
- // CHECK:STDOUT: %B.param_patt: bool = value_param_pattern %B.patt.loc6_9.1, runtime_param<invalid> [symbolic = %B.patt.loc6_9.2 (constants.%B.patt)]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %B.param: bool = value_param runtime_param<invalid>
- // CHECK:STDOUT: %.loc6_13.1: type = splice_block %.loc6_13.3 [template = bool] {
- // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool]
- // CHECK:STDOUT: %.loc6_13.2: type = value_of_initializer %bool.make_type [template = bool]
- // CHECK:STDOUT: %.loc6_13.3: type = converted %bool.make_type, %.loc6_13.2 [template = bool]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %B.loc6_9.1: bool = bind_symbolic_name B, 0, %B.param [symbolic = %B.loc6_9.2 (constants.%B)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %True.decl: %True.type = fn_decl @True [template = constants.%True] {
- // CHECK:STDOUT: %return.patt: %C.a14 = return_slot_pattern
- // CHECK:STDOUT: %return.param_patt: %C.a14 = out_param_pattern %return.patt, runtime_param0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %C.ref: %C.type = name_ref C, file.%C.decl [template = constants.%C.generic]
- // CHECK:STDOUT: %true: bool = bool_literal true [template = constants.%true]
- // CHECK:STDOUT: %C: type = class_type @C, @C(constants.%true) [template = constants.%C.a14]
- // CHECK:STDOUT: %return.param: ref %C.a14 = out_param runtime_param0
- // CHECK:STDOUT: %return: ref %C.a14 = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %False.decl: %False.type = fn_decl @False [template = constants.%False] {
- // CHECK:STDOUT: %return.patt: %C.2ba = return_slot_pattern
- // CHECK:STDOUT: %return.param_patt: %C.2ba = out_param_pattern %return.patt, runtime_param0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %C.ref: %C.type = name_ref C, file.%C.decl [template = constants.%C.generic]
- // CHECK:STDOUT: %false: bool = bool_literal false [template = constants.%false]
- // CHECK:STDOUT: %C: type = class_type @C, @C(constants.%false) [template = constants.%C.2ba]
- // CHECK:STDOUT: %return.param: ref %C.2ba = out_param runtime_param0
- // CHECK:STDOUT: %return: ref %C.2ba = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %a.var: ref %C.2ba = var a
- // CHECK:STDOUT: %a: ref %C.2ba = bind_name a, %a.var
- // CHECK:STDOUT: %b.var: ref %C.a14 = var b
- // CHECK:STDOUT: %b: ref %C.a14 = bind_name b, %b.var
- // CHECK:STDOUT: %c.var: ref %C.a14 = var c
- // CHECK:STDOUT: %c: ref %C.a14 = bind_name c, %c.var
- // CHECK:STDOUT: %d.var: ref %C.2ba = var d
- // CHECK:STDOUT: %d: ref %C.2ba = bind_name d, %d.var
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic class @C(%B.loc6_9.1: bool) {
- // CHECK:STDOUT: %B.loc6_9.2: bool = bind_symbolic_name B, 0 [symbolic = %B.loc6_9.2 (constants.%B)]
- // CHECK:STDOUT: %B.patt.loc6_9.2: bool = symbolic_binding_pattern B, 0 [symbolic = %B.patt.loc6_9.2 (constants.%B.patt)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT:
- // CHECK:STDOUT: class {
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type]
- // CHECK:STDOUT: complete_type_witness = %complete_type
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%C.342
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @Neq(%a.param_patt: bool, %b.param_patt: bool) -> bool = "bool.neq";
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @True() -> %C.a14;
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @False() -> %C.2ba;
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @__global_init() {
- // CHECK:STDOUT: !entry:
- // CHECK:STDOUT: %False.ref.loc11: %False.type = name_ref False, file.%False.decl [template = constants.%False]
- // CHECK:STDOUT: %.loc11: ref %C.2ba = splice_block file.%a.var {}
- // CHECK:STDOUT: %False.call.loc11: init %C.2ba = call %False.ref.loc11() to %.loc11
- // CHECK:STDOUT: assign file.%a.var, %False.call.loc11
- // CHECK:STDOUT: %True.ref.loc12: %True.type = name_ref True, file.%True.decl [template = constants.%True]
- // CHECK:STDOUT: %.loc12: ref %C.a14 = splice_block file.%b.var {}
- // CHECK:STDOUT: %True.call.loc12: init %C.a14 = call %True.ref.loc12() to %.loc12
- // CHECK:STDOUT: assign file.%b.var, %True.call.loc12
- // CHECK:STDOUT: %True.ref.loc13: %True.type = name_ref True, file.%True.decl [template = constants.%True]
- // CHECK:STDOUT: %.loc13: ref %C.a14 = splice_block file.%c.var {}
- // CHECK:STDOUT: %True.call.loc13: init %C.a14 = call %True.ref.loc13() to %.loc13
- // CHECK:STDOUT: assign file.%c.var, %True.call.loc13
- // CHECK:STDOUT: %False.ref.loc14: %False.type = name_ref False, file.%False.decl [template = constants.%False]
- // CHECK:STDOUT: %.loc14: ref %C.2ba = splice_block file.%d.var {}
- // CHECK:STDOUT: %False.call.loc14: init %C.2ba = call %False.ref.loc14() to %.loc14
- // CHECK:STDOUT: assign file.%d.var, %False.call.loc14
- // CHECK:STDOUT: return
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @C(constants.%B) {
- // CHECK:STDOUT: %B.loc6_9.2 => constants.%B
- // CHECK:STDOUT: %B.patt.loc6_9.2 => constants.%B
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @C(constants.%true) {
- // CHECK:STDOUT: %B.loc6_9.2 => constants.%true
- // CHECK:STDOUT: %B.patt.loc6_9.2 => constants.%true
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @C(constants.%false) {
- // CHECK:STDOUT: %B.loc6_9.2 => constants.%false
- // CHECK:STDOUT: %B.patt.loc6_9.2 => constants.%false
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: --- prelude.carbon
- // CHECK:STDOUT:
- // CHECK:STDOUT: constants {
- // CHECK:STDOUT: %Bool.type: type = fn_type @Bool [template]
- // CHECK:STDOUT: %Bool: %Bool.type = struct_value () [template]
- // CHECK:STDOUT: %B: bool = bind_symbolic_name B, 0 [symbolic]
- // CHECK:STDOUT: %B.patt: bool = symbolic_binding_pattern B, 0 [symbolic]
- // CHECK:STDOUT: %C.type: type = generic_class_type @C [template]
- // CHECK:STDOUT: %C.generic: %C.type = struct_value () [template]
- // CHECK:STDOUT: %C.342: type = class_type @C, @C(%B) [symbolic]
- // CHECK:STDOUT: %empty_struct_type: type = struct_type {} [template]
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template]
- // CHECK:STDOUT: %true: bool = bool_literal true [template]
- // CHECK:STDOUT: %C.a14: type = class_type @C, @C(%true) [template]
- // CHECK:STDOUT: %True.type: type = fn_type @True [template]
- // CHECK:STDOUT: %True: %True.type = struct_value () [template]
- // CHECK:STDOUT: %false: bool = bool_literal false [template]
- // CHECK:STDOUT: %C.2ba: type = class_type @C, @C(%false) [template]
- // CHECK:STDOUT: %False.type: type = fn_type @False [template]
- // CHECK:STDOUT: %False: %False.type = struct_value () [template]
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: imports {
- // CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [template] {
- // CHECK:STDOUT: .Bool = %import_ref.783
- // CHECK:STDOUT: .Eq = %import_ref.822
- // CHECK:STDOUT: import Core//prelude
- // CHECK:STDOUT: import Core//prelude/...
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: file {
- // CHECK:STDOUT: package: <namespace> = namespace [template] {
- // CHECK:STDOUT: .Core = imports.%Core
- // CHECK:STDOUT: .C = %C.decl
- // CHECK:STDOUT: .True = %True.decl
- // CHECK:STDOUT: .False = %False.decl
- // CHECK:STDOUT: .a = %a
- // CHECK:STDOUT: .b = %b
- // CHECK:STDOUT: .c = %c
- // CHECK:STDOUT: .d = %d
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %Core.import = import Core
- // CHECK:STDOUT: %C.decl: %C.type = class_decl @C [template = constants.%C.generic] {
- // CHECK:STDOUT: %B.patt.loc4_9.1: bool = symbolic_binding_pattern B, 0 [symbolic = %B.patt.loc4_9.2 (constants.%B.patt)]
- // CHECK:STDOUT: %B.param_patt: bool = value_param_pattern %B.patt.loc4_9.1, runtime_param<invalid> [symbolic = %B.patt.loc4_9.2 (constants.%B.patt)]
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %B.param: bool = value_param runtime_param<invalid>
- // CHECK:STDOUT: %.loc4_13.1: type = splice_block %.loc4_13.3 [template = bool] {
- // CHECK:STDOUT: %bool.make_type: init type = call constants.%Bool() [template = bool]
- // CHECK:STDOUT: %.loc4_13.2: type = value_of_initializer %bool.make_type [template = bool]
- // CHECK:STDOUT: %.loc4_13.3: type = converted %bool.make_type, %.loc4_13.2 [template = bool]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %B.loc4_9.1: bool = bind_symbolic_name B, 0, %B.param [symbolic = %B.loc4_9.2 (constants.%B)]
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %True.decl: %True.type = fn_decl @True [template = constants.%True] {
- // CHECK:STDOUT: %return.patt: %C.a14 = return_slot_pattern
- // CHECK:STDOUT: %return.param_patt: %C.a14 = out_param_pattern %return.patt, runtime_param0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %C.ref: %C.type = name_ref C, file.%C.decl [template = constants.%C.generic]
- // CHECK:STDOUT: %true: bool = bool_literal true [template = constants.%true]
- // CHECK:STDOUT: %C: type = class_type @C, @C(constants.%true) [template = constants.%C.a14]
- // CHECK:STDOUT: %return.param: ref %C.a14 = out_param runtime_param0
- // CHECK:STDOUT: %return: ref %C.a14 = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %False.decl: %False.type = fn_decl @False [template = constants.%False] {
- // CHECK:STDOUT: %return.patt: %C.2ba = return_slot_pattern
- // CHECK:STDOUT: %return.param_patt: %C.2ba = out_param_pattern %return.patt, runtime_param0
- // CHECK:STDOUT: } {
- // CHECK:STDOUT: %C.ref: %C.type = name_ref C, file.%C.decl [template = constants.%C.generic]
- // CHECK:STDOUT: %false: bool = bool_literal false [template = constants.%false]
- // CHECK:STDOUT: %C: type = class_type @C, @C(constants.%false) [template = constants.%C.2ba]
- // CHECK:STDOUT: %return.param: ref %C.2ba = out_param runtime_param0
- // CHECK:STDOUT: %return: ref %C.2ba = return_slot %return.param
- // CHECK:STDOUT: }
- // CHECK:STDOUT: %a.var: ref %C.2ba = var a
- // CHECK:STDOUT: %a: ref %C.2ba = bind_name a, %a.var
- // CHECK:STDOUT: %b.var: ref %C.a14 = var b
- // CHECK:STDOUT: %b: ref %C.a14 = bind_name b, %b.var
- // CHECK:STDOUT: %c.var: ref %C.a14 = var c
- // CHECK:STDOUT: %c: ref %C.a14 = bind_name c, %c.var
- // CHECK:STDOUT: %d.var: ref %C.2ba = var d
- // CHECK:STDOUT: %d: ref %C.2ba = bind_name d, %d.var
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: generic class @C(%B.loc4_9.1: bool) {
- // CHECK:STDOUT: %B.loc4_9.2: bool = bind_symbolic_name B, 0 [symbolic = %B.loc4_9.2 (constants.%B)]
- // CHECK:STDOUT: %B.patt.loc4_9.2: bool = symbolic_binding_pattern B, 0 [symbolic = %B.patt.loc4_9.2 (constants.%B.patt)]
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT:
- // CHECK:STDOUT: class {
- // CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [template = constants.%complete_type]
- // CHECK:STDOUT: complete_type_witness = %complete_type
- // CHECK:STDOUT:
- // CHECK:STDOUT: !members:
- // CHECK:STDOUT: .Self = constants.%C.342
- // CHECK:STDOUT: }
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @True() -> %C.a14;
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @False() -> %C.2ba;
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn @__global_init() {
- // CHECK:STDOUT: !entry:
- // CHECK:STDOUT: %False.ref.loc9: %False.type = name_ref False, file.%False.decl [template = constants.%False]
- // CHECK:STDOUT: %.loc9: ref %C.2ba = splice_block file.%a.var {}
- // CHECK:STDOUT: %False.call.loc9: init %C.2ba = call %False.ref.loc9() to %.loc9
- // CHECK:STDOUT: assign file.%a.var, %False.call.loc9
- // CHECK:STDOUT: %True.ref.loc10: %True.type = name_ref True, file.%True.decl [template = constants.%True]
- // CHECK:STDOUT: %.loc10: ref %C.a14 = splice_block file.%b.var {}
- // CHECK:STDOUT: %True.call.loc10: init %C.a14 = call %True.ref.loc10() to %.loc10
- // CHECK:STDOUT: assign file.%b.var, %True.call.loc10
- // CHECK:STDOUT: %True.ref.loc11: %True.type = name_ref True, file.%True.decl [template = constants.%True]
- // CHECK:STDOUT: %.loc11: ref %C.a14 = splice_block file.%c.var {}
- // CHECK:STDOUT: %True.call.loc11: init %C.a14 = call %True.ref.loc11() to %.loc11
- // CHECK:STDOUT: assign file.%c.var, %True.call.loc11
- // CHECK:STDOUT: %False.ref.loc12: %False.type = name_ref False, file.%False.decl [template = constants.%False]
- // CHECK:STDOUT: %.loc12: ref %C.2ba = splice_block file.%d.var {}
- // CHECK:STDOUT: %False.call.loc12: init %C.2ba = call %False.ref.loc12() to %.loc12
- // CHECK:STDOUT: assign file.%d.var, %False.call.loc12
- // CHECK:STDOUT: return
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @C(constants.%B) {
- // CHECK:STDOUT: %B.loc4_9.2 => constants.%B
- // CHECK:STDOUT: %B.patt.loc4_9.2 => constants.%B
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @C(constants.%true) {
- // CHECK:STDOUT: %B.loc4_9.2 => constants.%true
- // CHECK:STDOUT: %B.patt.loc4_9.2 => constants.%true
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
- // CHECK:STDOUT: specific @C(constants.%false) {
- // CHECK:STDOUT: %B.loc4_9.2 => constants.%false
- // CHECK:STDOUT: %B.patt.loc4_9.2 => constants.%false
- // CHECK:STDOUT:
- // CHECK:STDOUT: !definition:
- // CHECK:STDOUT: }
- // CHECK:STDOUT:
|