Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIL verification failed: Basic block contains a non-contiguous lexical scope at -Onone: DS == LastSeenScope #65064

Closed
dnadoba opened this issue Apr 11, 2023 · 6 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. code coverage Area → source tooling: code coverage compiler The Swift compiler itself crash Bug: A crash, i.e., an abnormal termination of software opaque parameter types Feature → types → opaque types: opaque parameter types opaque types Feature → types: opaque types SILGen Area → compiler: The SIL generation stage source tooling Area: IDE support, SourceKit, and other source tooling swift 5.9 verifier

Comments

@dnadoba
Copy link
Contributor

dnadoba commented Apr 11, 2023

Description
Building swift-collections with code coverage enabled crashes the latest nightly main compiler (swiftlang/swift:nightly-main-jammy). Does not crash without code coverage.

 ################################################################
 #								#
 # Swift Nightly Docker Image					#
 # Tag: swift-DEVELOPMENT-SNAPSHOT-2023-04-09-a			#
 #								#
 ################################################################

# swift test --enable-code-coverage
Building for debugging...
error: emit-module command failed due to signal 6 (use -v to see invocation)
Broken instruction!
  copy_addr [take] %117 to [init] %116 : $*C.Element // id: %118
in scope
{

   parent: {
  
     parent: {
    
       parent: {
      
         parent: {
        /src/Sources/_CollectionsUtilities/Descriptions.swift:27:13
           parent: @$s21_CollectionsUtilities17_arrayDescription3for5debug8typeNameSSx_SbSSSgtSlRzlF
          }
        
        }
      
      }
    
    }
  
  }
Previous, non-contiguous scope set by  %117 = unchecked_take_enum_data_addr %108 : $*Optional<C.Element>, #Optional.some!enumelt // user: %118
in scope
{

   parent: {
  
     parent: {
    
       parent: {
      /src/Sources/_CollectionsUtilities/Descriptions.swift:27:13
         parent: @$s21_CollectionsUtilities17_arrayDescription3for5debug8typeNameSSx_SbSSSgtSlRzlF
        }
      
      }
    
    }
  
  }
Please report a bug on bugs.swift.org
Pass -Xllvm -verify-di-holes=false to disable the verification
SIL verification failed: Basic block contains a non-contiguous lexical scope at -Onone: DS == LastSeenScope
Verifying instruction:
     %122 = struct_extract %120 : $Bool, #Bool._value, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":39:8, scope 0 // user: %123
->   cond_br %122, bb6, bb7, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":39:8, scope 0 // id: %123
In function:
sil_scope 1 { loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":27:13 parent @$s21_CollectionsUtilities17_arrayDescription3for5debug8typeNameSSx_SbSSSgtSlRzlF : $@convention(thin) <τ_0_0 where τ_0_0 : Collection> (@in_guaranteed τ_0_0, Bool, @guaranteed Optional<String>) -> @owned String }
sil_scope 2 { loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":32:7 parent 1 }
sil_scope 3 { loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":32:16 parent 2 }
sil_scope 4 { loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":33:3 parent 2 }
sil_scope 5 { loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":33:21 parent 4 }
sil_scope 6 { loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":33:30 parent 5 }
sil_scope 7 { loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":37:7 parent 2 }
sil_scope 8 { loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":37:15 parent 7 }
sil_scope 9 { loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":38:3 parent 7 }
sil_scope 10 { loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":38:24 parent 9 }
sil_scope 11 { loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":39:5 parent 10 }
sil_scope 12 { loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":39:14 parent 11 }
sil_scope 13 { loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":41:12 parent 11 }
sil_scope 14 { loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":44:5 parent 10 }
sil_scope 15 { loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":44:14 parent 14 }
sil_scope 16 { loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":46:12 parent 14 }
sil_scope 17 { loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:3 parent 7 }
sil_scope 18 { loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:22 parent 17 }

// _arrayDescription<A>(for:debug:typeName:), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":27:13, scope 1
sil [serialized] [ossa] @$s21_CollectionsUtilities17_arrayDescription3for5debug8typeNameSSx_SbSSSgtSlRzlF : $@convention(thin) <C where C : Collection> (@in_guaranteed C, Bool, @guaranteed Optional<String>) -> @owned String {
// %0 "elements"                                  // users: %104, %3
// %1 "debug"                                     // users: %146, %4
// %2 "typeName"                                  // users: %221, %16, %5
bb0(%0 : $*C, %1 : $Bool, %2 : @guaranteed $Optional<String>):
  debug_value %0 : $*C, let, name "elements", argno 1, expr op_deref, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":28:7, scope 1 // id: %3
  debug_value %1 : $Bool, let, name "debug", argno 2, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":29:3, scope 1 // id: %4
  debug_value %2 : $Optional<String>, let, name "typeName", argno 3, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":30:3, scope 1 // id: %5
  increment_profiler_counter 0, "$s21_CollectionsUtilities17_arrayDescription3for5debug8typeNameSSx_SbSSSgtSlRzlF", num_counters 6, hash 0, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":31:13, scope 1 // id: %6
  %7 = alloc_box ${ var String }, var, name "result", loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":32:7, scope 2 // users: %250, %8
  %8 = project_box %7 : ${ var String }, 0, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":32:7, scope 2 // users: %246, %239, %214, %193, %167, %140, %88, %74, %15
  %9 = string_literal utf8 "", loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":32:16, scope 3 // user: %14
  %10 = integer_literal $Builtin.Word, 0, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":32:16, scope 3 // user: %14
  %11 = integer_literal $Builtin.Int1, -1, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":32:16, scope 3 // user: %14
  %12 = metatype $@thin String.Type, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":32:16, scope 3 // user: %14
  // function_ref String.init(_builtinStringLiteral:utf8CodeUnitCount:isASCII:)
  %13 = function_ref @$sSS21_builtinStringLiteral17utf8CodeUnitCount7isASCIISSBp_BwBi1_tcfC : $@convention(method) (Builtin.RawPointer, Builtin.Word, Builtin.Int1, @thin String.Type) -> @owned String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":32:16, scope 3 // user: %14
  %14 = apply %13(%9, %10, %11, %12) : $@convention(method) (Builtin.RawPointer, Builtin.Word, Builtin.Int1, @thin String.Type) -> @owned String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":32:16, scope 3 // user: %15
  store %14 to [init] %8 : $*String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":32:16, scope 3 // id: %15
  %16 = copy_value %2 : $Optional<String>, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":33:21, scope 4 // user: %17
  switch_enum %16 : $Optional<String>, case #Optional.some!enumelt: bb2, case #Optional.none!enumelt: bb1, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":33:3, scope 4 // id: %17

bb1:                                              // Preds: bb0
  br bb3, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":33:3, scope 4 // id: %18

// %19                                            // users: %79, %48, %20
bb2(%19 : @owned $String):                        // Preds: bb0
  debug_value %19 : $String, let, name "typeName", loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":33:10, scope 4 // id: %20
  increment_profiler_counter 1, "$s21_CollectionsUtilities17_arrayDescription3for5debug8typeNameSSx_SbSSSgtSlRzlF", num_counters 6, hash 0, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":33:30, scope 6 // id: %21
  %22 = metatype $@thin String.Type, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:12, scope 6 // user: %76
  %23 = alloc_box ${ var DefaultStringInterpolation }, scope 6 // users: %70, %24
  %24 = project_box %23 : ${ var DefaultStringInterpolation }, 0, scope 6 // users: %69, %64, %51, %43, %36
  %25 = integer_literal $Builtin.IntLiteral, 1, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // user: %28
  %26 = metatype $@thin Int.Type, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // user: %28
  // function_ref Int.init(_builtinIntegerLiteral:)
  %27 = function_ref @$sSi22_builtinIntegerLiteralSiBI_tcfC : $@convention(method) (Builtin.IntLiteral, @thin Int.Type) -> Int, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // user: %28
  %28 = apply %27(%25, %26) : $@convention(method) (Builtin.IntLiteral, @thin Int.Type) -> Int, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // user: %35
  %29 = integer_literal $Builtin.IntLiteral, 1, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // user: %32
  %30 = metatype $@thin Int.Type, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // user: %32
  // function_ref Int.init(_builtinIntegerLiteral:)
  %31 = function_ref @$sSi22_builtinIntegerLiteralSiBI_tcfC : $@convention(method) (Builtin.IntLiteral, @thin Int.Type) -> Int, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // user: %32
  %32 = apply %31(%29, %30) : $@convention(method) (Builtin.IntLiteral, @thin Int.Type) -> Int, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // user: %35
  %33 = metatype $@thin DefaultStringInterpolation.Type, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // user: %35
  // function_ref DefaultStringInterpolation.init(literalCapacity:interpolationCount:)
  %34 = function_ref @$ss26DefaultStringInterpolationV15literalCapacity18interpolationCountABSi_SitcfC : $@convention(method) (Int, Int, @thin DefaultStringInterpolation.Type) -> @owned DefaultStringInterpolation, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // user: %35
  %35 = apply %34(%28, %32, %33) : $@convention(method) (Int, Int, @thin DefaultStringInterpolation.Type) -> @owned DefaultStringInterpolation, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // user: %36
  store %35 to [init] %24 : $*DefaultStringInterpolation, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // id: %36
  %37 = string_literal utf8 "", loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // user: %42
  %38 = integer_literal $Builtin.Word, 0, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // user: %42
  %39 = integer_literal $Builtin.Int1, -1, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // user: %42
  %40 = metatype $@thin String.Type, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // user: %42
  // function_ref String.init(_builtinStringLiteral:utf8CodeUnitCount:isASCII:)
  %41 = function_ref @$sSS21_builtinStringLiteral17utf8CodeUnitCount7isASCIISSBp_BwBi1_tcfC : $@convention(method) (Builtin.RawPointer, Builtin.Word, Builtin.Int1, @thin String.Type) -> @owned String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // user: %42
  %42 = apply %41(%37, %38, %39, %40) : $@convention(method) (Builtin.RawPointer, Builtin.Word, Builtin.Int1, @thin String.Type) -> @owned String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // users: %47, %45
  %43 = begin_access [modify] [unknown] %24 : $*DefaultStringInterpolation, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:16, scope 6 // users: %46, %45
  // function_ref DefaultStringInterpolation.appendLiteral(_:)
  %44 = function_ref @$ss26DefaultStringInterpolationV13appendLiteralyySSF : $@convention(method) (@guaranteed String, @inout DefaultStringInterpolation) -> (), scope 6 // user: %45
  %45 = apply %44(%42, %43) : $@convention(method) (@guaranteed String, @inout DefaultStringInterpolation) -> (), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:16, scope 6
  end_access %43 : $*DefaultStringInterpolation, loc * "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:16, scope 6 // id: %46
  destroy_value %42 : $String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // id: %47
  %48 = begin_borrow %19 : $String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:18, scope 6 // users: %57, %50
  %49 = alloc_stack $String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:18, scope 6 // users: %56, %50
  %50 = store_borrow %48 to %49 : $*String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:18, scope 6 // users: %55, %53
  %51 = begin_access [modify] [unknown] %24 : $*DefaultStringInterpolation, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:17, scope 6 // users: %54, %53
  // function_ref DefaultStringInterpolation.appendInterpolation<A>(_:)
  %52 = function_ref @$ss26DefaultStringInterpolationV06appendC0yyxs06CustomB11ConvertibleRzs20TextOutputStreamableRzlF : $@convention(method) <τ_0_0 where τ_0_0 : CustomStringConvertible, τ_0_0 : TextOutputStreamable> (@in_guaranteed τ_0_0, @inout DefaultStringInterpolation) -> (), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:17, scope 6 // user: %53
  %53 = apply %52<String>(%50, %51) : $@convention(method) <τ_0_0 where τ_0_0 : CustomStringConvertible, τ_0_0 : TextOutputStreamable> (@in_guaranteed τ_0_0, @inout DefaultStringInterpolation) -> (), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:17, scope 6
  end_access %51 : $*DefaultStringInterpolation, loc * "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:17, scope 6 // id: %54
  end_borrow %50 : $*String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:26, scope 6 // id: %55
  dealloc_stack %49 : $*String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:26, scope 6 // id: %56
  end_borrow %48 : $String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:26, scope 6 // id: %57
  %58 = string_literal utf8 "(", loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:27, scope 6 // user: %63
  %59 = integer_literal $Builtin.Word, 1, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:27, scope 6 // user: %63
  %60 = integer_literal $Builtin.Int1, -1, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:27, scope 6 // user: %63
  %61 = metatype $@thin String.Type, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:27, scope 6 // user: %63
  // function_ref String.init(_builtinStringLiteral:utf8CodeUnitCount:isASCII:)
  %62 = function_ref @$sSS21_builtinStringLiteral17utf8CodeUnitCount7isASCIISSBp_BwBi1_tcfC : $@convention(method) (Builtin.RawPointer, Builtin.Word, Builtin.Int1, @thin String.Type) -> @owned String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:27, scope 6 // user: %63
  %63 = apply %62(%58, %59, %60, %61) : $@convention(method) (Builtin.RawPointer, Builtin.Word, Builtin.Int1, @thin String.Type) -> @owned String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:27, scope 6 // users: %68, %66
  %64 = begin_access [modify] [unknown] %24 : $*DefaultStringInterpolation, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:27, scope 6 // users: %67, %66
  // function_ref DefaultStringInterpolation.appendLiteral(_:)
  %65 = function_ref @$ss26DefaultStringInterpolationV13appendLiteralyySSF : $@convention(method) (@guaranteed String, @inout DefaultStringInterpolation) -> (), scope 6 // user: %66
  %66 = apply %65(%63, %64) : $@convention(method) (@guaranteed String, @inout DefaultStringInterpolation) -> (), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:27, scope 6
  end_access %64 : $*DefaultStringInterpolation, loc * "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:27, scope 6 // id: %67
  destroy_value %63 : $String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:27, scope 6 // id: %68
  %69 = load [copy] %24 : $*DefaultStringInterpolation, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // user: %73
  destroy_value %23 : ${ var DefaultStringInterpolation }, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // id: %70
  %71 = metatype $@thin String.Type, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // user: %73
  // function_ref String.init(stringInterpolation:)
  %72 = function_ref @$sSS19stringInterpolationSSs013DefaultStringB0V_tcfC : $@convention(method) (@owned DefaultStringInterpolation, @thin String.Type) -> @owned String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // user: %73
  %73 = apply %72(%69, %71) : $@convention(method) (@owned DefaultStringInterpolation, @thin String.Type) -> @owned String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // users: %78, %76
  %74 = begin_access [modify] [unknown] %8 : $*String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:5, scope 6 // users: %77, %76
  // function_ref static String.+= infix(_:_:)
  %75 = function_ref @$sSS2peoiyySSz_SStFZ : $@convention(method) (@inout String, @guaranteed String, @thin String.Type) -> (), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:12, scope 6 // user: %76
  %76 = apply %75(%74, %73, %22) : $@convention(method) (@inout String, @guaranteed String, @thin String.Type) -> (), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:12, scope 6
  end_access %74 : $*String, loc * "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:5, scope 6 // id: %77
  destroy_value %73 : $String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":34:15, scope 6 // id: %78
  destroy_value %19 : $String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":35:3, scope 6 // id: %79
  br bb3, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":35:3, scope 6 // id: %80

bb3:                                              // Preds: bb2 bb1
  %81 = metatype $@thin String.Type, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":36:10, scope 6 // user: %90
  %82 = string_literal utf8 "[", loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":36:13, scope 2 // user: %87
  %83 = integer_literal $Builtin.Word, 1, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":36:13, scope 2 // user: %87
  %84 = integer_literal $Builtin.Int1, -1, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":36:13, scope 2 // user: %87
  %85 = metatype $@thin String.Type, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":36:13, scope 2 // user: %87
  // function_ref String.init(_builtinStringLiteral:utf8CodeUnitCount:isASCII:)
  %86 = function_ref @$sSS21_builtinStringLiteral17utf8CodeUnitCount7isASCIISSBp_BwBi1_tcfC : $@convention(method) (Builtin.RawPointer, Builtin.Word, Builtin.Int1, @thin String.Type) -> @owned String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":36:13, scope 2 // user: %87
  %87 = apply %86(%82, %83, %84, %85) : $@convention(method) (Builtin.RawPointer, Builtin.Word, Builtin.Int1, @thin String.Type) -> @owned String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":36:13, scope 2 // users: %92, %90
  %88 = begin_access [modify] [unknown] %8 : $*String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":36:3, scope 2 // users: %91, %90
  // function_ref static String.+= infix(_:_:)
  %89 = function_ref @$sSS2peoiyySSz_SStFZ : $@convention(method) (@inout String, @guaranteed String, @thin String.Type) -> (), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":36:10, scope 2 // user: %90
  %90 = apply %89(%88, %87, %81) : $@convention(method) (@inout String, @guaranteed String, @thin String.Type) -> (), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":36:10, scope 2
  end_access %88 : $*String, loc * "/src/Sources/_CollectionsUtilities/Descriptions.swift":36:3, scope 2 // id: %91
  destroy_value %87 : $String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":36:13, scope 2 // id: %92
  %93 = alloc_box ${ var Bool }, var, name "first", loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":37:7, scope 7 // users: %249, %94
  %94 = project_box %93 : ${ var Bool }, 0, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":37:7, scope 7 // users: %129, %119, %99
  %95 = integer_literal $Builtin.Int1, -1, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":37:15, scope 8 // user: %98
  %96 = metatype $@thin Bool.Type, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":37:15, scope 8 // user: %98
  // function_ref Bool.init(_builtinBooleanLiteral:)
  %97 = function_ref @$sSb22_builtinBooleanLiteralSbBi1__tcfC : $@convention(method) (Builtin.Int1, @thin Bool.Type) -> Bool, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":37:15, scope 8 // user: %98
  %98 = apply %97(%95, %96) : $@convention(method) (Builtin.Int1, @thin Bool.Type) -> Bool, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":37:15, scope 8 // user: %99
  store %98 to [trivial] %94 : $*Bool, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":37:15, scope 8 // id: %99
  %100 = alloc_box $<τ_0_0 where τ_0_0 : Collection> { var τ_0_0.Iterator } <C>, var, name "$item$generator", loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":38:15, scope 8 // users: %206, %101
  %101 = begin_borrow [lexical] %100 : $<τ_0_0 where τ_0_0 : Collection> { var τ_0_0.Iterator } <C>, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":38:15, scope 8 // users: %205, %102
  %102 = project_box %101 : $<τ_0_0 where τ_0_0 : Collection> { var τ_0_0.Iterator } <C>, 0, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":38:15, scope 8 // users: %110, %106
  %103 = alloc_stack $C, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":38:15, scope 9 // users: %107, %106, %104
  copy_addr %0 to [init] %103 : $*C, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":38:15, scope 9 // id: %104
  %105 = witness_method $C, #Sequence.makeIterator : <Self where Self : Sequence> (__owned Self) -> () -> Self.Iterator : $@convention(witness_method: Sequence) <τ_0_0 where τ_0_0 : Sequence> (@in τ_0_0) -> @out τ_0_0.Iterator, scope 9 // user: %106
  %106 = apply %105<C>(%102, %103) : $@convention(witness_method: Sequence) <τ_0_0 where τ_0_0 : Sequence> (@in τ_0_0) -> @out τ_0_0.Iterator, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":38:15, scope 9
  dealloc_stack %103 : $*C, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":38:15, scope 9 // id: %107
  %108 = alloc_stack $Optional<C.Element>, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":38:3, scope 9 // users: %204, %117, %114, %112
  br bb4, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":38:3, scope 9 // id: %109

bb4:                                              // Preds: bb11 bb3
  %110 = begin_access [modify] [unknown] %102 : $*C.Iterator, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":38:3, scope 9 // users: %113, %112
  %111 = witness_method $C.Iterator, #IteratorProtocol.next : <Self where Self : IteratorProtocol> (inout Self) -> () -> Self.Element? : $@convention(witness_method: IteratorProtocol) <τ_0_0 where τ_0_0 : IteratorProtocol> (@inout τ_0_0) -> @out Optional<τ_0_0.Element>, scope 9 // user: %112
  %112 = apply %111<C.Iterator>(%108, %110) : $@convention(witness_method: IteratorProtocol) <τ_0_0 where τ_0_0 : IteratorProtocol> (@inout τ_0_0) -> @out Optional<τ_0_0.Element>, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":38:3, scope 9
  end_access %110 : $*C.Iterator, loc * "/src/Sources/_CollectionsUtilities/Descriptions.swift":38:3, scope 9 // id: %113
  switch_enum_addr %108 : $*Optional<C.Element>, case #Optional.some!enumelt: bb5, case #Optional.none!enumelt: bb12, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":38:3, scope 9 // id: %114

bb5:                                              // Preds: bb4
  increment_profiler_counter 2, "$s21_CollectionsUtilities17_arrayDescription3for5debug8typeNameSSx_SbSSSgtSlRzlF", num_counters 6, hash 0, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":38:24, scope 10 // id: %115
  %116 = alloc_stack [lexical] $C.Element, let, name "item", loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":38:7, scope 9 // users: %202, %201, %182, %156, %118
  %117 = unchecked_take_enum_data_addr %108 : $*Optional<C.Element>, #Optional.some!enumelt, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":38:3, scope 9 // user: %118
  copy_addr [take] %117 to [init] %116 : $*C.Element, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":38:24, scope 10 // id: %118
  %119 = begin_access [read] [unknown] %94 : $*Bool, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":39:8, scope 10 // users: %121, %120
  %120 = load [trivial] %119 : $*Bool, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":39:8, scope 10 // user: %122
  end_access %119 : $*Bool, loc * "/src/Sources/_CollectionsUtilities/Descriptions.swift":39:8, scope 10 // id: %121
  %122 = struct_extract %120 : $Bool, #Bool._value, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":39:8, scope 10 // user: %123
  cond_br %122, bb6, bb7, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":39:8, scope 11 // id: %123

bb6:                                              // Preds: bb5
  increment_profiler_counter 3, "$s21_CollectionsUtilities17_arrayDescription3for5debug8typeNameSSx_SbSSSgtSlRzlF", num_counters 6, hash 0, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":39:14, scope 12 // id: %124
  %125 = integer_literal $Builtin.Int1, 0, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":40:15, scope 12 // user: %128
  %126 = metatype $@thin Bool.Type, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":40:15, scope 12 // user: %128
  // function_ref Bool.init(_builtinBooleanLiteral:)
  %127 = function_ref @$sSb22_builtinBooleanLiteralSbBi1__tcfC : $@convention(method) (Builtin.Int1, @thin Bool.Type) -> Bool, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":40:15, scope 12 // user: %128
  %128 = apply %127(%125, %126) : $@convention(method) (Builtin.Int1, @thin Bool.Type) -> Bool, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":40:15, scope 12 // user: %130
  %129 = begin_access [modify] [unknown] %94 : $*Bool, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":40:13, scope 12 // users: %131, %130
  assign %128 to %129 : $*Bool, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":40:13, scope 12 // id: %130
  end_access %129 : $*Bool, loc * "/src/Sources/_CollectionsUtilities/Descriptions.swift":40:13, scope 12 // id: %131
  br bb8, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":41:5, scope 12 // id: %132

bb7:                                              // Preds: bb5
  %133 = metatype $@thin String.Type, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":42:14, scope 13 // user: %142
  %134 = string_literal utf8 ", ", loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":42:17, scope 13 // user: %139
  %135 = integer_literal $Builtin.Word, 2, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":42:17, scope 13 // user: %139
  %136 = integer_literal $Builtin.Int1, -1, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":42:17, scope 13 // user: %139
  %137 = metatype $@thin String.Type, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":42:17, scope 13 // user: %139
  // function_ref String.init(_builtinStringLiteral:utf8CodeUnitCount:isASCII:)
  %138 = function_ref @$sSS21_builtinStringLiteral17utf8CodeUnitCount7isASCIISSBp_BwBi1_tcfC : $@convention(method) (Builtin.RawPointer, Builtin.Word, Builtin.Int1, @thin String.Type) -> @owned String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":42:17, scope 13 // user: %139
  %139 = apply %138(%134, %135, %136, %137) : $@convention(method) (Builtin.RawPointer, Builtin.Word, Builtin.Int1, @thin String.Type) -> @owned String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":42:17, scope 13 // users: %144, %142
  %140 = begin_access [modify] [unknown] %8 : $*String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":42:7, scope 13 // users: %143, %142
  // function_ref static String.+= infix(_:_:)
  %141 = function_ref @$sSS2peoiyySSz_SStFZ : $@convention(method) (@inout String, @guaranteed String, @thin String.Type) -> (), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":42:14, scope 13 // user: %142
  %142 = apply %141(%140, %139, %133) : $@convention(method) (@inout String, @guaranteed String, @thin String.Type) -> (), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":42:14, scope 13
  end_access %140 : $*String, loc * "/src/Sources/_CollectionsUtilities/Descriptions.swift":42:7, scope 13 // id: %143
  destroy_value %139 : $String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":42:17, scope 13 // id: %144
  br bb8, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":43:5, scope 13 // id: %145

bb8:                                              // Preds: bb7 bb6
  %146 = struct_extract %1 : $Bool, #Bool._value, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":44:8, scope 14 // user: %147
  cond_br %146, bb9, bb10, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":44:8, scope 14 // id: %147

bb9:                                              // Preds: bb8
  increment_profiler_counter 4, "$s21_CollectionsUtilities17_arrayDescription3for5debug8typeNameSSx_SbSSSgtSlRzlF", num_counters 6, hash 0, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":44:14, scope 15 // id: %148
  %149 = integer_literal $Builtin.Word, 1, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":45:18, scope 15 // user: %151
  // function_ref _allocateUninitializedArray<A>(_:)
  %150 = function_ref @$ss27_allocateUninitializedArrayySayxG_BptBwlF : $@convention(thin) <τ_0_0> (Builtin.Word) -> (@owned Array<τ_0_0>, Builtin.RawPointer), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":45:18, scope 15 // user: %151
  %151 = apply %150<Any>(%149) : $@convention(thin) <τ_0_0> (Builtin.Word) -> (@owned Array<τ_0_0>, Builtin.RawPointer), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":45:18, scope 15 // user: %152
  (%152, %153) = destructure_tuple %151 : $(Array<Any>, Builtin.RawPointer), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":45:18, scope 15 // users: %158, %154
  %154 = pointer_to_address %153 : $Builtin.RawPointer to [strict] $*Any, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":45:18, scope 15 // user: %155
  %155 = init_existential_addr %154 : $*Any, $C.Element, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":45:18, scope 15 // user: %156
  copy_addr %116 to [init] %155 : $*C.Element, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":45:18, scope 15 // id: %156
  // function_ref _finalizeUninitializedArray<A>(_:)
  %157 = function_ref @$ss27_finalizeUninitializedArrayySayxGABnlF : $@convention(thin) <τ_0_0> (@owned Array<τ_0_0>) -> @owned Array<τ_0_0>, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":45:18, scope 15 // user: %158
  %158 = apply %157<Any>(%152) : $@convention(thin) <τ_0_0> (@owned Array<τ_0_0>) -> @owned Array<τ_0_0>, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":45:18, scope 15 // users: %173, %169
  %159 = string_literal utf8 "", loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":45:36, scope 15 // user: %164
  %160 = integer_literal $Builtin.Word, 0, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":45:36, scope 15 // user: %164
  %161 = integer_literal $Builtin.Int1, -1, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":45:36, scope 15 // user: %164
  %162 = metatype $@thin String.Type, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":45:36, scope 15 // user: %164
  // function_ref String.init(_builtinStringLiteral:utf8CodeUnitCount:isASCII:)
  %163 = function_ref @$sSS21_builtinStringLiteral17utf8CodeUnitCount7isASCIISSBp_BwBi1_tcfC : $@convention(method) (Builtin.RawPointer, Builtin.Word, Builtin.Int1, @thin String.Type) -> @owned String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":45:36, scope 15 // user: %164
  %164 = apply %163(%159, %160, %161, %162) : $@convention(method) (Builtin.RawPointer, Builtin.Word, Builtin.Int1, @thin String.Type) -> @owned String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":45:36, scope 15 // users: %172, %169
  // function_ref default argument 1 of debugPrint<A>(_:separator:terminator:to:)
  %165 = function_ref @$ss10debugPrint_9separator10terminator2toyypd_S2Sxzts16TextOutputStreamRzlFfA0_ : $@convention(thin) <τ_0_0 where τ_0_0 : TextOutputStream> () -> @owned String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":45:17, scope 15 // user: %166
  %166 = apply %165<String>() : $@convention(thin) <τ_0_0 where τ_0_0 : TextOutputStream> () -> @owned String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":45:17, scope 15 // users: %171, %169
  %167 = begin_access [modify] [unknown] %8 : $*String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":45:44, scope 15 // users: %170, %169
  // function_ref debugPrint<A>(_:separator:terminator:to:)
  %168 = function_ref @$ss10debugPrint_9separator10terminator2toyypd_S2Sxzts16TextOutputStreamRzlF : $@convention(thin) <τ_0_0 where τ_0_0 : TextOutputStream> (@guaranteed Array<Any>, @guaranteed String, @guaranteed String, @inout τ_0_0) -> (), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":45:7, scope 15 // user: %169
  %169 = apply %168<String>(%158, %166, %164, %167) : $@convention(thin) <τ_0_0 where τ_0_0 : TextOutputStream> (@guaranteed Array<Any>, @guaranteed String, @guaranteed String, @inout τ_0_0) -> (), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":45:7, scope 15
  end_access %167 : $*String, loc * "/src/Sources/_CollectionsUtilities/Descriptions.swift":45:44, scope 15 // id: %170
  destroy_value %166 : $String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":45:51, scope 15 // id: %171
  destroy_value %164 : $String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":45:51, scope 15 // id: %172
  destroy_value %158 : $Array<Any>, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":45:51, scope 15 // id: %173
  br bb11, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":46:5, scope 15 // id: %174

bb10:                                             // Preds: bb8
  %175 = integer_literal $Builtin.Word, 1, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":47:13, scope 16 // user: %177
  // function_ref _allocateUninitializedArray<A>(_:)
  %176 = function_ref @$ss27_allocateUninitializedArrayySayxG_BptBwlF : $@convention(thin) <τ_0_0> (Builtin.Word) -> (@owned Array<τ_0_0>, Builtin.RawPointer), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":47:13, scope 16 // user: %177
  %177 = apply %176<Any>(%175) : $@convention(thin) <τ_0_0> (Builtin.Word) -> (@owned Array<τ_0_0>, Builtin.RawPointer), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":47:13, scope 16 // user: %178
  (%178, %179) = destructure_tuple %177 : $(Array<Any>, Builtin.RawPointer), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":47:13, scope 16 // users: %184, %180
  %180 = pointer_to_address %179 : $Builtin.RawPointer to [strict] $*Any, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":47:13, scope 16 // user: %181
  %181 = init_existential_addr %180 : $*Any, $C.Element, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":47:13, scope 16 // user: %182
  copy_addr %116 to [init] %181 : $*C.Element, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":47:13, scope 16 // id: %182
  // function_ref _finalizeUninitializedArray<A>(_:)
  %183 = function_ref @$ss27_finalizeUninitializedArrayySayxGABnlF : $@convention(thin) <τ_0_0> (@owned Array<τ_0_0>) -> @owned Array<τ_0_0>, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":47:13, scope 16 // user: %184
  %184 = apply %183<Any>(%178) : $@convention(thin) <τ_0_0> (@owned Array<τ_0_0>) -> @owned Array<τ_0_0>, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":47:13, scope 16 // users: %199, %195
  %185 = string_literal utf8 "", loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":47:31, scope 16 // user: %190
  %186 = integer_literal $Builtin.Word, 0, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":47:31, scope 16 // user: %190
  %187 = integer_literal $Builtin.Int1, -1, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":47:31, scope 16 // user: %190
  %188 = metatype $@thin String.Type, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":47:31, scope 16 // user: %190
  // function_ref String.init(_builtinStringLiteral:utf8CodeUnitCount:isASCII:)
  %189 = function_ref @$sSS21_builtinStringLiteral17utf8CodeUnitCount7isASCIISSBp_BwBi1_tcfC : $@convention(method) (Builtin.RawPointer, Builtin.Word, Builtin.Int1, @thin String.Type) -> @owned String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":47:31, scope 16 // user: %190
  %190 = apply %189(%185, %186, %187, %188) : $@convention(method) (Builtin.RawPointer, Builtin.Word, Builtin.Int1, @thin String.Type) -> @owned String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":47:31, scope 16 // users: %198, %195
  // function_ref default argument 1 of print<A>(_:separator:terminator:to:)
  %191 = function_ref @$ss5print_9separator10terminator2toyypd_S2Sxzts16TextOutputStreamRzlFfA0_ : $@convention(thin) <τ_0_0 where τ_0_0 : TextOutputStream> () -> @owned String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":47:12, scope 16 // user: %192
  %192 = apply %191<String>() : $@convention(thin) <τ_0_0 where τ_0_0 : TextOutputStream> () -> @owned String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":47:12, scope 16 // users: %197, %195
  %193 = begin_access [modify] [unknown] %8 : $*String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":47:39, scope 16 // users: %196, %195
  // function_ref print<A>(_:separator:terminator:to:)
  %194 = function_ref @$ss5print_9separator10terminator2toyypd_S2Sxzts16TextOutputStreamRzlF : $@convention(thin) <τ_0_0 where τ_0_0 : TextOutputStream> (@guaranteed Array<Any>, @guaranteed String, @guaranteed String, @inout τ_0_0) -> (), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":47:7, scope 16 // user: %195
  %195 = apply %194<String>(%184, %192, %190, %193) : $@convention(thin) <τ_0_0 where τ_0_0 : TextOutputStream> (@guaranteed Array<Any>, @guaranteed String, @guaranteed String, @inout τ_0_0) -> (), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":47:7, scope 16
  end_access %193 : $*String, loc * "/src/Sources/_CollectionsUtilities/Descriptions.swift":47:39, scope 16 // id: %196
  destroy_value %192 : $String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":47:46, scope 16 // id: %197
  destroy_value %190 : $String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":47:46, scope 16 // id: %198
  destroy_value %184 : $Array<Any>, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":47:46, scope 16 // id: %199
  br bb11, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":48:5, scope 16 // id: %200

bb11:                                             // Preds: bb10 bb9
  destroy_addr %116 : $*C.Element, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":49:3, scope 16 // id: %201
  dealloc_stack %116 : $*C.Element, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":49:3, scope 16 // id: %202
  br bb4, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":49:3, scope 10 // id: %203

bb12:                                             // Preds: bb4
  dealloc_stack %108 : $*Optional<C.Element>, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":49:3, scope 9 // id: %204
  end_borrow %101 : $<τ_0_0 where τ_0_0 : Collection> { var τ_0_0.Iterator } <C>, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":49:3, scope 9 // id: %205
  destroy_value %100 : $<τ_0_0 where τ_0_0 : Collection> { var τ_0_0.Iterator } <C>, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":49:3, scope 9 // id: %206
  %207 = metatype $@thin String.Type, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":50:10, scope 9 // user: %216
  %208 = string_literal utf8 "]", loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":50:13, scope 7 // user: %213
  %209 = integer_literal $Builtin.Word, 1, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":50:13, scope 7 // user: %213
  %210 = integer_literal $Builtin.Int1, -1, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":50:13, scope 7 // user: %213
  %211 = metatype $@thin String.Type, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":50:13, scope 7 // user: %213
  // function_ref String.init(_builtinStringLiteral:utf8CodeUnitCount:isASCII:)
  %212 = function_ref @$sSS21_builtinStringLiteral17utf8CodeUnitCount7isASCIISSBp_BwBi1_tcfC : $@convention(method) (Builtin.RawPointer, Builtin.Word, Builtin.Int1, @thin String.Type) -> @owned String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":50:13, scope 7 // user: %213
  %213 = apply %212(%208, %209, %210, %211) : $@convention(method) (Builtin.RawPointer, Builtin.Word, Builtin.Int1, @thin String.Type) -> @owned String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":50:13, scope 7 // users: %218, %216
  %214 = begin_access [modify] [unknown] %8 : $*String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":50:3, scope 7 // users: %217, %216
  // function_ref static String.+= infix(_:_:)
  %215 = function_ref @$sSS2peoiyySSz_SStFZ : $@convention(method) (@inout String, @guaranteed String, @thin String.Type) -> (), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":50:10, scope 7 // user: %216
  %216 = apply %215(%214, %213, %207) : $@convention(method) (@inout String, @guaranteed String, @thin String.Type) -> (), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":50:10, scope 7
  end_access %214 : $*String, loc * "/src/Sources/_CollectionsUtilities/Descriptions.swift":50:3, scope 7 // id: %217
  destroy_value %213 : $String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":50:13, scope 7 // id: %218
  %219 = metatype $@thin Optional<String>.Type, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:15, scope 7 // user: %226
  %220 = alloc_stack $Optional<String>, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:6, scope 17 // users: %228, %221
  %221 = store_borrow %2 to %220 : $*Optional<String>, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:6, scope 17 // users: %227, %226
  %222 = metatype $@thin _OptionalNilComparisonType.Type, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:18, scope 17 // user: %224
  // function_ref _OptionalNilComparisonType.init(nilLiteral:)
  %223 = function_ref @$ss26_OptionalNilComparisonTypeV10nilLiteralAByt_tcfC : $@convention(method) (@thin _OptionalNilComparisonType.Type) -> _OptionalNilComparisonType, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:18, scope 17 // user: %224
  %224 = apply %223(%222) : $@convention(method) (@thin _OptionalNilComparisonType.Type) -> _OptionalNilComparisonType, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:18, scope 17 // user: %226
  // function_ref static Optional.!= infix(_:_:)
  %225 = function_ref @$sSq2neoiySbxSg_s26_OptionalNilComparisonTypeVtFZ : $@convention(method) <τ_0_0> (@in_guaranteed Optional<τ_0_0>, _OptionalNilComparisonType, @thin Optional<τ_0_0>.Type) -> Bool, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:15, scope 17 // user: %226
  %226 = apply %225<String>(%221, %224, %219) : $@convention(method) <τ_0_0> (@in_guaranteed Optional<τ_0_0>, _OptionalNilComparisonType, @thin Optional<τ_0_0>.Type) -> Bool, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:15, scope 17 // user: %229
  end_borrow %221 : $*Optional<String>, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:18, scope 17 // id: %227
  dealloc_stack %220 : $*Optional<String>, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:18, scope 17 // id: %228
  %229 = struct_extract %226 : $Bool, #Bool._value, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:15, scope 17 // user: %230
  cond_br %229, bb13, bb14, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:15, scope 17 // id: %230

bb13:                                             // Preds: bb12
  increment_profiler_counter 5, "$s21_CollectionsUtilities17_arrayDescription3for5debug8typeNameSSx_SbSSSgtSlRzlF", num_counters 6, hash 0, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:22, scope 18 // id: %231
  %232 = metatype $@thin String.Type, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:31, scope 18 // user: %241
  %233 = string_literal utf8 ")", loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:34, scope 18 // user: %238
  %234 = integer_literal $Builtin.Word, 1, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:34, scope 18 // user: %238
  %235 = integer_literal $Builtin.Int1, -1, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:34, scope 18 // user: %238
  %236 = metatype $@thin String.Type, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:34, scope 18 // user: %238
  // function_ref String.init(_builtinStringLiteral:utf8CodeUnitCount:isASCII:)
  %237 = function_ref @$sSS21_builtinStringLiteral17utf8CodeUnitCount7isASCIISSBp_BwBi1_tcfC : $@convention(method) (Builtin.RawPointer, Builtin.Word, Builtin.Int1, @thin String.Type) -> @owned String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:34, scope 18 // user: %238
  %238 = apply %237(%233, %234, %235, %236) : $@convention(method) (Builtin.RawPointer, Builtin.Word, Builtin.Int1, @thin String.Type) -> @owned String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:34, scope 18 // users: %243, %241
  %239 = begin_access [modify] [unknown] %8 : $*String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:24, scope 18 // users: %242, %241
  // function_ref static String.+= infix(_:_:)
  %240 = function_ref @$sSS2peoiyySSz_SStFZ : $@convention(method) (@inout String, @guaranteed String, @thin String.Type) -> (), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:31, scope 18 // user: %241
  %241 = apply %240(%239, %238, %232) : $@convention(method) (@inout String, @guaranteed String, @thin String.Type) -> (), loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:31, scope 18
  end_access %239 : $*String, loc * "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:24, scope 18 // id: %242
  destroy_value %238 : $String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:34, scope 18 // id: %243
  br bb15, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:38, scope 18 // id: %244

bb14:                                             // Preds: bb12
  br bb15, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":51:3, scope 17 // id: %245

bb15:                                             // Preds: bb13 bb14
  %246 = begin_access [read] [unknown] %8 : $*String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":52:10, scope 18 // users: %248, %247
  %247 = load [copy] %246 : $*String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":52:10, scope 18 // user: %251
  end_access %246 : $*String, loc * "/src/Sources/_CollectionsUtilities/Descriptions.swift":52:10, scope 18 // id: %248
  destroy_value %93 : ${ var Bool }, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":53:1, scope 18 // id: %249
  destroy_value %7 : ${ var String }, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":53:1, scope 18 // id: %250
  return %247 : $String, loc "/src/Sources/_CollectionsUtilities/Descriptions.swift":52:3, scope 7 // id: %251
} // end sil function '$s21_CollectionsUtilities17_arrayDescription3for5debug8typeNameSSx_SbSSSgtSlRzlF'

Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.	Program arguments: /usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types "/src/Sources/_CollectionsUtilities/Compatibility/Array+WithContiguousStorage Compatibility.swift" /src/Sources/_CollectionsUtilities/Compatibility/UnsafeMutableBufferPointer+SE-0370.swift /src/Sources/_CollectionsUtilities/Compatibility/UnsafeMutablePointer+SE-0370.swift "/src/Sources/_CollectionsUtilities/Compatibility/UnsafeRawPointer extensions.swift" /src/Sources/_CollectionsUtilities/Debugging.swift /src/Sources/_CollectionsUtilities/Descriptions.swift /src/Sources/_CollectionsUtilities/IntegerTricks/FixedWidthInteger+roundUpToPowerOfTwo.swift "/src/Sources/_CollectionsUtilities/IntegerTricks/Integer rank.swift" "/src/Sources/_CollectionsUtilities/IntegerTricks/UInt+first and last set bit.swift" /src/Sources/_CollectionsUtilities/IntegerTricks/UInt+reversed.swift /src/Sources/_CollectionsUtilities/RandomAccessCollection+Offsets.swift /src/Sources/_CollectionsUtilities/UnsafeBitSet/_UnsafeBitSet+Index.swift /src/Sources/_CollectionsUtilities/UnsafeBitSet/_UnsafeBitSet+_Word.swift /src/Sources/_CollectionsUtilities/UnsafeBitSet/_UnsafeBitSet.swift /src/Sources/_CollectionsUtilities/UnsafeBufferPointer+Extras.swift /src/Sources/_CollectionsUtilities/UnsafeMutableBufferPointer+Extras.swift /src/Sources/_CollectionsUtilities/_SortedCollection.swift /src/Sources/_CollectionsUtilities/_UniqueCollection.swift -target aarch64-unknown-linux-gnu -Xllvm -aarch64-use-tbi -disable-objc-interop -I /src/.build/aarch64-unknown-linux-gnu/debug -color-diagnostics -enable-testing -g -module-cache-path /src/.build/aarch64-unknown-linux-gnu/debug/ModuleCache -profile-generate -profile-coverage-mapping -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -new-driver-path /usr/bin/swift-driver -empty-abi-descriptor -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -resource-dir /usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -fPIC -module-name _CollectionsUtilities -emit-module-doc-path /src/.build/aarch64-unknown-linux-gnu/debug/_CollectionsUtilities.swiftdoc -emit-module-source-info-path /src/.build/aarch64-unknown-linux-gnu/debug/_CollectionsUtilities.swiftsourceinfo -emit-dependencies-path /src/.build/aarch64-unknown-linux-gnu/debug/_CollectionsUtilities.build/_CollectionsUtilities.emit-module.d -parse-as-library -o /src/.build/aarch64-unknown-linux-gnu/debug/_CollectionsUtilities.swiftmodule
1.	Swift version 5.9-dev (LLVM 8ef0b2ab8e410d9, Swift 76d60fde58eab47)
2.	Compiling with the current language version
3.	While evaluating request ASTLoweringRequest(Lowering AST to SIL for module _CollectionsUtilities)
4.	While silgen emitFunction SIL function "@$s21_CollectionsUtilities17_arrayDescription3for5debug8typeNameSSx_SbSSSgtSlRzlF".
 for '_arrayDescription(for:debug:typeName:)' (at /src/Sources/_CollectionsUtilities/Descriptions.swift:27:8)
5.	While verifying SIL function "@$s21_CollectionsUtilities17_arrayDescription3for5debug8typeNameSSx_SbSSSgtSlRzlF".
 for '_arrayDescription(for:debug:typeName:)' (at /src/Sources/_CollectionsUtilities/Descriptions.swift:27:8)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
/usr/bin/swift-frontend(+0x69822c8)[0xaaaad8cc22c8]
/usr/bin/swift-frontend(+0x69802b8)[0xaaaad8cc02b8]
/usr/bin/swift-frontend(+0x69826dc)[0xaaaad8cc26dc]
linux-vdso.so.1(__kernel_rt_sigreturn+0x0)[0xffff901dc78c]
/lib/aarch64-linux-gnu/libc.so.6(+0x7f200)[0xffff8f6bf200]
/lib/aarch64-linux-gnu/libc.so.6(raise+0x1c)[0xffff8f67a67c]
/lib/aarch64-linux-gnu/libc.so.6(abort+0xe4)[0xffff8f667130]
/usr/bin/swift-frontend(+0x1d6a1e4)[0xaaaad40aa1e4]
/usr/bin/swift-frontend(+0x1d6e6bc)[0xaaaad40ae6bc]
/usr/bin/swift-frontend(+0x1d6c9f4)[0xaaaad40ac9f4]
/usr/bin/swift-frontend(+0x1d6648c)[0xaaaad40a648c]
/usr/bin/swift-frontend(+0x1380394)[0xaaaad36c0394]
/usr/bin/swift-frontend(+0x137faa0)[0xaaaad36bfaa0]
/usr/bin/swift-frontend(+0x1381c10)[0xaaaad36c1c10]
/usr/bin/swift-frontend(+0x137e2ec)[0xaaaad36be2ec]
/usr/bin/swift-frontend(+0x1384018)[0xaaaad36c4018]
/usr/bin/swift-frontend(+0x1436298)[0xaaaad3776298]
/usr/bin/swift-frontend(+0x1388228)[0xaaaad36c8228]
/usr/bin/swift-frontend(+0x13853a4)[0xaaaad36c53a4]
/usr/bin/swift-frontend(+0xd913c0)[0xaaaad30d13c0]
/usr/bin/swift-frontend(+0xda404c)[0xaaaad30e404c]
/usr/bin/swift-frontend(+0xd94020)[0xaaaad30d4020]
/usr/bin/swift-frontend(+0xd92c54)[0xaaaad30d2c54]
/usr/bin/swift-frontend(+0xc18fa4)[0xaaaad2f58fa4]
/lib/aarch64-linux-gnu/libc.so.6(+0x273fc)[0xffff8f6673fc]
/lib/aarch64-linux-gnu/libc.so.6(__libc_start_main+0x98)[0xffff8f6674cc]
/usr/bin/swift-frontend(+0xc17cf0)[0xaaaad2f57cf0]
error: fatalError

Steps to reproduce
Clone https://github.com/apple/swift-collections and build with

swift test --enable-code-coverage

Expected behavior
no crash

Environment

  • Swift compiler version info Swift version 5.9-dev (LLVM 8ef0b2ab8e410d9, Swift 76d60fd) Target: aarch64-unknown-linux-gnu
  • Docker: swiftlang/swift:nightly-main-jammy
@dnadoba dnadoba added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels labels Apr 11, 2023
@AnthonyLatsis AnthonyLatsis added code coverage Area → source tooling: code coverage crash Bug: A crash, i.e., an abnormal termination of software source tooling Area: IDE support, SourceKit, and other source tooling swift 5.9 SILGen Area → compiler: The SIL generation stage verifier compiler The Swift compiler itself and removed triage needed This issue needs more specific labels labels Apr 11, 2023
@dnadoba
Copy link
Contributor Author

dnadoba commented Apr 17, 2023

Can be reproduced with swift-log as well
# swift test --enable-code-coverage
/src/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values
                switch dependency {
                ^
/src/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: note: handle unknown values using "@unknown default"
                switch dependency {
                ^
/src/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values
                switch dependency {
                ^
/src/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: note: handle unknown values using "@unknown default"
                switch dependency {
                ^
Building for debugging...
error: compile command failed due to signal 6 (use -v to see invocation)
Broken instruction!
  copy_addr [take] %177 to [init] %176 : $*any LogHandler // id: %178
in scope
{

   parent: {
  
     parent: {
    
       parent: {
      
         parent: {
        
           parent: {
          
             parent: {
            /src/Sources/Logging/Logging.swift:1087:9
               parent: @$s7Logging19MultiplexLogHandlerV16metadataProviderAA6LoggerV08MetadataF0VSgvg
              }
            
            }
          
          }
        
        }
      
      }
    
    }
  
  }
Previous, non-contiguous scope set by  %177 = unchecked_take_enum_data_addr %168 : $*Optional<any LogHandler>, #Optional.some!enumelt // user: %178
in scope
{

   parent: {
  
     parent: {
    
       parent: {
      
         parent: {
        
           parent: {
          /src/Sources/Logging/Logging.swift:1087:9
             parent: @$s7Logging19MultiplexLogHandlerV16metadataProviderAA6LoggerV08MetadataF0VSgvg
            }
          
          }
        
        }
      
      }
    
    }
  
  }
Please report a bug on bugs.swift.org
Pass -Xllvm -verify-di-holes=false to disable the verification
SIL verification failed: Basic block contains a non-contiguous lexical scope at -Onone: DS == LastSeenScope
Verifying instruction:
     %183 = apply %182<@opened("00DC31A6-DD06-11ED-A6FF-FEBDF8270133", any LogHandler) Self>(%180) : $@convention(witness_method: LogHandler) <τ_0_0 where τ_0_0 : LogHandler> (@in_guaranteed τ_0_0) -> @owned Optional<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1105:47, scope 0 // type-defs: %179; user: %184
->   switch_enum %183 : $Optional<Logger.MetadataProvider>, case #Optional.some!enumelt: bb18, case #Optional.none!enumelt: bb17, loc "/src/Sources/Logging/Logging.swift":1105:47, scope 0 // id: %184
In function:
sil_scope 1 { loc "/src/Sources/Logging/Logging.swift":1087:9 parent @$s7Logging19MultiplexLogHandlerV16metadataProviderAA6LoggerV08MetadataF0VSgvg : $@convention(method) (@guaranteed MultiplexLogHandler) -> @owned Optional<Logger.MetadataProvider> }
sil_scope 2 { loc "/src/Sources/Logging/Logging.swift":1088:13 parent 1 }
sil_scope 3 { loc "/src/Sources/Logging/Logging.swift":1088:41 parent 2 }
sil_scope 4 { loc "/src/Sources/Logging/Logging.swift":1089:17 parent 3 }
sil_scope 5 { loc "/src/Sources/Logging/Logging.swift":1089:39 parent 4 }
sil_scope 6 { loc "/src/Sources/Logging/Logging.swift":1089:77 parent 5 }
sil_scope 7 { loc "/src/Sources/Logging/Logging.swift":1090:21 parent 6 }
sil_scope 8 { loc "/src/Sources/Logging/Logging.swift":1090:55 parent 7 }
sil_scope 9 { loc "/src/Sources/Logging/Logging.swift":1090:78 parent 8 }
sil_scope 10 { loc "/src/Sources/Logging/Logging.swift":1092:28 parent 7 }
sil_scope 11 { loc "/src/Sources/Logging/Logging.swift":1095:24 parent 4 }
sil_scope 12 { loc "/src/Sources/Logging/Logging.swift":1095:58 parent 11 }
sil_scope 13 { loc "/src/Sources/Logging/Logging.swift":1095:81 parent 12 }
sil_scope 14 { loc "/src/Sources/Logging/Logging.swift":1097:24 parent 11 }
sil_scope 15 { loc "/src/Sources/Logging/Logging.swift":1100:20 parent 2 }
sil_scope 16 { loc "/src/Sources/Logging/Logging.swift":1101:21 parent 15 }
sil_scope 17 { loc "/src/Sources/Logging/Logging.swift":1101:60 parent 16 }
sil_scope 18 { loc "/src/Sources/Logging/Logging.swift":1102:21 parent 16 }
sil_scope 19 { loc "/src/Sources/Logging/Logging.swift":1102:55 parent 18 }
sil_scope 20 { loc "/src/Sources/Logging/Logging.swift":1104:17 parent 18 }
sil_scope 21 { loc "/src/Sources/Logging/Logging.swift":1104:46 parent 20 }
sil_scope 22 { loc "/src/Sources/Logging/Logging.swift":1105:21 parent 21 }
sil_scope 23 { loc "/src/Sources/Logging/Logging.swift":1105:39 parent 22 }
sil_scope 24 { loc "/src/Sources/Logging/Logging.swift":1105:64 parent 23 }
sil_scope 25 { loc "/src/Sources/Logging/Logging.swift":1109:17 parent 18 }
sil_scope 26 { loc "/src/Sources/Logging/Logging.swift":1109:51 parent 25 }
sil_scope 27 { loc "/src/Sources/Logging/Logging.swift":1109:74 parent 26 }
sil_scope 28 { loc "/src/Sources/Logging/Logging.swift":1112:17 parent 18 }
sil_scope 29 { loc "/src/Sources/Logging/Logging.swift":1112:47 parent 28 }

// MultiplexLogHandler.metadataProvider.getter, loc "/src/Sources/Logging/Logging.swift":1087:9, scope 1
sil [ossa] @$s7Logging19MultiplexLogHandlerV16metadataProviderAA6LoggerV08MetadataF0VSgvg : $@convention(method) (@guaranteed MultiplexLogHandler) -> @owned Optional<Logger.MetadataProvider> {
// %0 "self"                                      // users: %210, %161, %146, %119, %95, %55, %21, %4, %1
bb0(%0 : @guaranteed $MultiplexLogHandler):
  debug_value %0 : $MultiplexLogHandler, let, name "self", argno 1, implicit, loc "/src/Sources/Logging/Logging.swift":1087:9, scope 1 // id: %1
  increment_profiler_counter 0, "$s7Logging19MultiplexLogHandlerV16metadataProviderAA6LoggerV08MetadataF0VSgvg", num_counters 10, hash 0, loc "/src/Sources/Logging/Logging.swift":1087:13, scope 1 // id: %2
  %3 = metatype $@thin Int.Type, loc "/src/Sources/Logging/Logging.swift":1088:36, scope 1 // user: %16
  %4 = struct_extract %0 : $MultiplexLogHandler, #MultiplexLogHandler.handlers, loc "/src/Sources/Logging/Logging.swift":1088:21, scope 2 // user: %5
  %5 = copy_value %4 : $Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1088:21, scope 2 // users: %10, %6
  %6 = begin_borrow %5 : $Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1088:30, scope 2 // users: %9, %8
  // function_ref Array.count.getter
  %7 = function_ref @$sSa5countSivg : $@convention(method) <τ_0_0> (@guaranteed Array<τ_0_0>) -> Int, loc "/src/Sources/Logging/Logging.swift":1088:30, scope 2 // user: %8
  %8 = apply %7<any LogHandler>(%6) : $@convention(method) <τ_0_0> (@guaranteed Array<τ_0_0>) -> Int, loc "/src/Sources/Logging/Logging.swift":1088:30, scope 2 // user: %16
  end_borrow %6 : $Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1088:30, scope 2 // id: %9
  destroy_value %5 : $Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1088:21, scope 2 // id: %10
  %11 = integer_literal $Builtin.IntLiteral, 1, loc "/src/Sources/Logging/Logging.swift":1088:39, scope 2 // user: %14
  %12 = metatype $@thin Int.Type, loc "/src/Sources/Logging/Logging.swift":1088:39, scope 2 // user: %14
  // function_ref Int.init(_builtinIntegerLiteral:)
  %13 = function_ref @$sSi22_builtinIntegerLiteralSiBI_tcfC : $@convention(method) (Builtin.IntLiteral, @thin Int.Type) -> Int, loc "/src/Sources/Logging/Logging.swift":1088:39, scope 2 // user: %14
  %14 = apply %13(%11, %12) : $@convention(method) (Builtin.IntLiteral, @thin Int.Type) -> Int, loc "/src/Sources/Logging/Logging.swift":1088:39, scope 2 // user: %16
  // function_ref static Int.== infix(_:_:)
  %15 = function_ref @$sSi2eeoiySbSi_SitFZ : $@convention(method) (Int, Int, @thin Int.Type) -> Bool, loc "/src/Sources/Logging/Logging.swift":1088:36, scope 2 // user: %16
  %16 = apply %15(%8, %14, %3) : $@convention(method) (Int, Int, @thin Int.Type) -> Bool, loc "/src/Sources/Logging/Logging.swift":1088:36, scope 2 // user: %17
  %17 = struct_extract %16 : $Bool, #Bool._value, loc "/src/Sources/Logging/Logging.swift":1088:36, scope 2 // user: %18
  cond_br %17, bb1, bb11, loc "/src/Sources/Logging/Logging.swift":1088:36, scope 2 // id: %18

bb1:                                              // Preds: bb0
  increment_profiler_counter 1, "$s7Logging19MultiplexLogHandlerV16metadataProviderAA6LoggerV08MetadataF0VSgvg", num_counters 10, hash 0, loc "/src/Sources/Logging/Logging.swift":1088:41, scope 3 // id: %19
  %20 = alloc_stack $Optional<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1089:58, scope 4 // users: %47, %37, %92, %91, %36, %30
  %21 = struct_extract %0 : $MultiplexLogHandler, #MultiplexLogHandler.handlers, loc "/src/Sources/Logging/Logging.swift":1089:44, scope 4 // user: %22
  %22 = copy_value %21 : $Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1089:44, scope 4 // users: %35, %23
  %23 = begin_borrow %22 : $Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1089:53, scope 4 // users: %34, %25
  %24 = alloc_stack $Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1089:53, scope 4 // users: %46, %90, %25
  %25 = store_borrow %23 to %24 : $*Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1089:53, scope 4 // users: %33, %26
  %26 = load [copy] %25 : $*Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1089:53, scope 4 // user: %28
  %27 = alloc_stack $Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1089:53, scope 4 // users: %32, %31, %30, %28
  store %26 to [init] %27 : $*Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1089:53, scope 4 // id: %28
  // function_ref Collection.first.getter
  %29 = function_ref @$sSlsE5first7ElementQzSgvg : $@convention(method) <τ_0_0 where τ_0_0 : Collection> (@in_guaranteed τ_0_0) -> @out Optional<τ_0_0.Element>, loc "/src/Sources/Logging/Logging.swift":1089:53, scope 4 // user: %30
  %30 = apply %29<[any LogHandler]>(%20, %27) : $@convention(method) <τ_0_0 where τ_0_0 : Collection> (@in_guaranteed τ_0_0) -> @out Optional<τ_0_0.Element>, loc "/src/Sources/Logging/Logging.swift":1089:53, scope 4
  destroy_addr %27 : $*Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1089:53, scope 4 // id: %31
  dealloc_stack %27 : $*Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1089:53, scope 4 // id: %32
  end_borrow %25 : $*Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1089:53, scope 4 // id: %33
  end_borrow %23 : $Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1089:53, scope 4 // id: %34
  destroy_value %22 : $Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1089:44, scope 4 // id: %35
  switch_enum_addr %20 : $*Optional<any LogHandler>, case #Optional.some!enumelt: bb2, case #Optional.none!enumelt: bb7, loc "/src/Sources/Logging/Logging.swift":1089:58, scope 4 // id: %36

bb2:                                              // Preds: bb1
  %37 = unchecked_take_enum_data_addr %20 : $*Optional<any LogHandler>, #Optional.some!enumelt, loc "/src/Sources/Logging/Logging.swift":1089:58, scope 4 // users: %45, %38
  %38 = open_existential_addr immutable_access %37 : $*any LogHandler to $*@opened("00DB324C-DD06-11ED-A6FF-FEBDF8270133", any LogHandler) Self, loc "/src/Sources/Logging/Logging.swift":1089:60, scope 4 // users: %42, %41, %40, %39
  %39 = alloc_stack $@opened("00DB324C-DD06-11ED-A6FF-FEBDF8270133", any LogHandler) Self, loc "/src/Sources/Logging/Logging.swift":1089:60, scope 4 // type-defs: %38; users: %44, %43, %42, %40
  copy_addr %38 to [init] %39 : $*@opened("00DB324C-DD06-11ED-A6FF-FEBDF8270133", any LogHandler) Self, loc "/src/Sources/Logging/Logging.swift":1089:60, scope 4 // id: %40
  %41 = witness_method $@opened("00DB324C-DD06-11ED-A6FF-FEBDF8270133", any LogHandler) Self, #LogHandler.metadataProvider!getter : <Self where Self : LogHandler> (Self) -> () -> Logger.MetadataProvider?, %38 : $*@opened("00DB324C-DD06-11ED-A6FF-FEBDF8270133", any LogHandler) Self : $@convention(witness_method: LogHandler) <τ_0_0 where τ_0_0 : LogHandler> (@in_guaranteed τ_0_0) -> @owned Optional<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1089:60, scope 4 // type-defs: %38; user: %42
  %42 = apply %41<@opened("00DB324C-DD06-11ED-A6FF-FEBDF8270133", any LogHandler) Self>(%39) : $@convention(witness_method: LogHandler) <τ_0_0 where τ_0_0 : LogHandler> (@in_guaranteed τ_0_0) -> @owned Optional<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1089:60, scope 4 // type-defs: %38; user: %48
  destroy_addr %39 : $*@opened("00DB324C-DD06-11ED-A6FF-FEBDF8270133", any LogHandler) Self, loc "/src/Sources/Logging/Logging.swift":1089:60, scope 4 // id: %43
  dealloc_stack %39 : $*@opened("00DB324C-DD06-11ED-A6FF-FEBDF8270133", any LogHandler) Self, loc "/src/Sources/Logging/Logging.swift":1089:60, scope 4 // id: %44
  destroy_addr %37 : $*any LogHandler, loc "/src/Sources/Logging/Logging.swift":1089:60, scope 4 // id: %45
  dealloc_stack %24 : $*Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1089:60, scope 4 // id: %46
  dealloc_stack %20 : $*Optional<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1089:60, scope 4 // id: %47
  br bb3(%42 : $Optional<Logger.MetadataProvider>), loc "/src/Sources/Logging/Logging.swift":1089:60, scope 4 // id: %48

// %49                                            // user: %50
bb3(%49 : @owned $Optional<Logger.MetadataProvider>): // Preds: bb7 bb2
  switch_enum %49 : $Optional<Logger.MetadataProvider>, case #Optional.some!enumelt: bb4, case #Optional.none!enumelt: bb8, loc "/src/Sources/Logging/Logging.swift":1089:17, scope 4 // id: %50

// %51                                            // users: %88, %83, %52
bb4(%51 : @owned $Logger.MetadataProvider):       // Preds: bb3
  %52 = begin_borrow [lexical] %51 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1089:17, scope 4 // users: %87, %85, %82, %69, %53
  debug_value %52 : $Logger.MetadataProvider, let, name "innerHandler", loc "/src/Sources/Logging/Logging.swift":1089:24, scope 4 // id: %53
  increment_profiler_counter 2, "$s7Logging19MultiplexLogHandlerV16metadataProviderAA6LoggerV08MetadataF0VSgvg", num_counters 10, hash 0, loc "/src/Sources/Logging/Logging.swift":1089:77, scope 6 // id: %54
  %55 = struct_extract %0 : $MultiplexLogHandler, #MultiplexLogHandler._metadataProvider, loc "/src/Sources/Logging/Logging.swift":1090:60, scope 7 // user: %56
  %56 = copy_value %55 : $Optional<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1090:60, scope 7 // user: %57
  switch_enum %56 : $Optional<Logger.MetadataProvider>, case #Optional.some!enumelt: bb5, case #Optional.none!enumelt: bb6, loc "/src/Sources/Logging/Logging.swift":1090:21, scope 7 // id: %57

// %58                                            // users: %81, %59
bb5(%58 : @owned $Logger.MetadataProvider):       // Preds: bb4
  %59 = begin_borrow [lexical] %58 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1090:21, scope 7 // users: %80, %73, %60
  debug_value %59 : $Logger.MetadataProvider, let, name "multiplexHandlerProvider", loc "/src/Sources/Logging/Logging.swift":1090:28, scope 7 // id: %60
  increment_profiler_counter 3, "$s7Logging19MultiplexLogHandlerV16metadataProviderAA6LoggerV08MetadataF0VSgvg", num_counters 10, hash 0, loc "/src/Sources/Logging/Logging.swift":1090:78, scope 9 // id: %61
  %62 = metatype $@thin Logger.MetadataProvider.Type, loc "/src/Sources/Logging/Logging.swift":1091:32, scope 9 // user: %78
  %63 = integer_literal $Builtin.Word, 2, loc "/src/Sources/Logging/Logging.swift":1091:43, scope 9 // user: %65
  // function_ref _allocateUninitializedArray<A>(_:)
  %64 = function_ref @$ss27_allocateUninitializedArrayySayxG_BptBwlF : $@convention(thin) <τ_0_0> (Builtin.Word) -> (@owned Array<τ_0_0>, Builtin.RawPointer), loc "/src/Sources/Logging/Logging.swift":1091:43, scope 9 // user: %65
  %65 = apply %64<Logger.MetadataProvider>(%63) : $@convention(thin) <τ_0_0> (Builtin.Word) -> (@owned Array<τ_0_0>, Builtin.RawPointer), loc "/src/Sources/Logging/Logging.swift":1091:43, scope 9 // user: %66
  (%66, %67) = destructure_tuple %65 : $(Array<Logger.MetadataProvider>, Builtin.RawPointer), loc "/src/Sources/Logging/Logging.swift":1091:43, scope 9 // users: %76, %68
  %68 = pointer_to_address %67 : $Builtin.RawPointer to [strict] $*Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1091:43, scope 9 // users: %72, %70
  %69 = copy_value %52 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1091:44, scope 9 // user: %70
  store %69 to [init] %68 : $*Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1091:44, scope 9 // id: %70
  %71 = integer_literal $Builtin.Word, 1, loc "/src/Sources/Logging/Logging.swift":1091:43, scope 9 // user: %72
  %72 = index_addr %68 : $*Logger.MetadataProvider, %71 : $Builtin.Word, loc "/src/Sources/Logging/Logging.swift":1091:43, scope 9 // user: %74
  %73 = copy_value %59 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1091:58, scope 9 // user: %74
  store %73 to [init] %72 : $*Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1091:58, scope 9 // id: %74
  // function_ref _finalizeUninitializedArray<A>(_:)
  %75 = function_ref @$ss27_finalizeUninitializedArrayySayxGABnlF : $@convention(thin) <τ_0_0> (@owned Array<τ_0_0>) -> @owned Array<τ_0_0>, loc "/src/Sources/Logging/Logging.swift":1091:43, scope 9 // user: %76
  %76 = apply %75<Logger.MetadataProvider>(%66) : $@convention(thin) <τ_0_0> (@owned Array<τ_0_0>) -> @owned Array<τ_0_0>, loc "/src/Sources/Logging/Logging.swift":1091:43, scope 9 // users: %79, %78
  // function_ref static Logger.MetadataProvider.multiplex(_:)
  %77 = function_ref @$s7Logging6LoggerV16MetadataProviderV9multiplexyAESgSayAEGFZ : $@convention(method) (@guaranteed Array<Logger.MetadataProvider>, @thin Logger.MetadataProvider.Type) -> @owned Optional<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1091:33, scope 9 // user: %78
  %78 = apply %77(%76, %62) : $@convention(method) (@guaranteed Array<Logger.MetadataProvider>, @thin Logger.MetadataProvider.Type) -> @owned Optional<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1091:33, scope 9 // user: %84
  destroy_value %76 : $Array<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1091:83, scope 9 // id: %79
  end_borrow %59 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1117:9, scope 9 // id: %80
  destroy_value %58 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1117:9, scope 9 // id: %81
  end_borrow %52 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1117:9, scope 9 // id: %82
  destroy_value %51 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1117:9, scope 9 // id: %83
  br bb26(%78 : $Optional<Logger.MetadataProvider>), loc "/src/Sources/Logging/Logging.swift":1091:25, scope 9 // id: %84

bb6:                                              // Preds: bb4
  %85 = copy_value %52 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1093:32, scope 10 // user: %86
  %86 = enum $Optional<Logger.MetadataProvider>, #Optional.some!enumelt, %85 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1093:32, scope 10 // user: %89
  end_borrow %52 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1117:9, scope 10 // id: %87
  destroy_value %51 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1117:9, scope 10 // id: %88
  br bb26(%86 : $Optional<Logger.MetadataProvider>), loc "/src/Sources/Logging/Logging.swift":1093:25, scope 10 // id: %89

bb7:                                              // Preds: bb1
  dealloc_stack %24 : $*Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1089:60, scope 4 // id: %90
  destroy_addr %20 : $*Optional<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1089:60, scope 4 // id: %91
  dealloc_stack %20 : $*Optional<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1089:60, scope 4 // id: %92
  %93 = enum $Optional<Logger.MetadataProvider>, #Optional.none!enumelt, loc "/src/Sources/Logging/Logging.swift":1089:60, scope 4 // user: %94
  br bb3(%93 : $Optional<Logger.MetadataProvider>), loc "/src/Sources/Logging/Logging.swift":1089:60, scope 4 // id: %94

bb8:                                              // Preds: bb3
  %95 = struct_extract %0 : $MultiplexLogHandler, #MultiplexLogHandler._metadataProvider, loc "/src/Sources/Logging/Logging.swift":1095:63, scope 11 // user: %96
  %96 = copy_value %95 : $Optional<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1095:63, scope 11 // user: %97
  switch_enum %96 : $Optional<Logger.MetadataProvider>, case #Optional.some!enumelt: bb9, case #Optional.none!enumelt: bb10, loc "/src/Sources/Logging/Logging.swift":1095:24, scope 11 // id: %97

// %98                                            // users: %105, %99
bb9(%98 : @owned $Logger.MetadataProvider):       // Preds: bb8
  %99 = begin_borrow [lexical] %98 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1095:24, scope 11 // users: %104, %102, %100
  debug_value %99 : $Logger.MetadataProvider, let, name "multiplexHandlerProvider", loc "/src/Sources/Logging/Logging.swift":1095:31, scope 11 // id: %100
  increment_profiler_counter 4, "$s7Logging19MultiplexLogHandlerV16metadataProviderAA6LoggerV08MetadataF0VSgvg", num_counters 10, hash 0, loc "/src/Sources/Logging/Logging.swift":1095:81, scope 13 // id: %101
  %102 = copy_value %99 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1096:28, scope 13 // user: %103
  %103 = enum $Optional<Logger.MetadataProvider>, #Optional.some!enumelt, %102 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1096:28, scope 13 // user: %106
  end_borrow %99 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1117:9, scope 13 // id: %104
  destroy_value %98 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1117:9, scope 13 // id: %105
  br bb26(%103 : $Optional<Logger.MetadataProvider>), loc "/src/Sources/Logging/Logging.swift":1096:21, scope 13 // id: %106

bb10:                                             // Preds: bb8
  %107 = enum $Optional<Logger.MetadataProvider>, #Optional.none!enumelt, loc "/src/Sources/Logging/Logging.swift":1098:28, scope 14 // user: %108
  br bb26(%107 : $Optional<Logger.MetadataProvider>), loc "/src/Sources/Logging/Logging.swift":1098:21, scope 14 // id: %108

bb11:                                             // Preds: bb0
  %109 = alloc_box ${ var Array<Logger.MetadataProvider> }, var, name "providers", loc "/src/Sources/Logging/Logging.swift":1101:21, scope 16 // users: %258, %262, %110
  %110 = project_box %109 : ${ var Array<Logger.MetadataProvider> }, 0, loc "/src/Sources/Logging/Logging.swift":1101:21, scope 16 // users: %252, %230, %221, %197, %155, %117
  %111 = integer_literal $Builtin.Word, 0, loc "/src/Sources/Logging/Logging.swift":1101:60, scope 17 // user: %113
  // function_ref _allocateUninitializedArray<A>(_:)
  %112 = function_ref @$ss27_allocateUninitializedArrayySayxG_BptBwlF : $@convention(thin) <τ_0_0> (Builtin.Word) -> (@owned Array<τ_0_0>, Builtin.RawPointer), loc "/src/Sources/Logging/Logging.swift":1101:60, scope 17 // user: %113
  %113 = apply %112<Logger.MetadataProvider>(%111) : $@convention(thin) <τ_0_0> (Builtin.Word) -> (@owned Array<τ_0_0>, Builtin.RawPointer), loc "/src/Sources/Logging/Logging.swift":1101:60, scope 17 // user: %114
  (%114, %115) = destructure_tuple %113 : $(Array<Logger.MetadataProvider>, Builtin.RawPointer), loc "/src/Sources/Logging/Logging.swift":1101:60, scope 17 // users: %117, %116
  %116 = pointer_to_address %115 : $Builtin.RawPointer to [strict] $*Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1101:60, scope 17
  store %114 to [init] %110 : $*Array<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1101:60, scope 17 // id: %117
  %118 = metatype $@thin Optional<Logger.MetadataProvider>.Type, loc "/src/Sources/Logging/Logging.swift":1102:79, scope 17 // user: %127
  %119 = struct_extract %0 : $MultiplexLogHandler, #MultiplexLogHandler._metadataProvider, loc "/src/Sources/Logging/Logging.swift":1102:61, scope 19 // user: %120
  %120 = copy_value %119 : $Optional<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1102:61, scope 19 // user: %122
  %121 = alloc_stack $Optional<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1102:61, scope 19 // users: %129, %128, %127, %122
  store %120 to [init] %121 : $*Optional<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1102:61, scope 19 // id: %122
  %123 = metatype $@thin _OptionalNilComparisonType.Type, loc "/src/Sources/Logging/Logging.swift":1102:82, scope 19 // user: %125
  // function_ref _OptionalNilComparisonType.init(nilLiteral:)
  %124 = function_ref @$ss26_OptionalNilComparisonTypeV10nilLiteralAByt_tcfC : $@convention(method) (@thin _OptionalNilComparisonType.Type) -> _OptionalNilComparisonType, loc "/src/Sources/Logging/Logging.swift":1102:82, scope 19 // user: %125
  %125 = apply %124(%123) : $@convention(method) (@thin _OptionalNilComparisonType.Type) -> _OptionalNilComparisonType, loc "/src/Sources/Logging/Logging.swift":1102:82, scope 19 // user: %127
  // function_ref static Optional.!= infix(_:_:)
  %126 = function_ref @$sSq2neoiySbxSg_s26_OptionalNilComparisonTypeVtFZ : $@convention(method) <τ_0_0> (@in_guaranteed Optional<τ_0_0>, _OptionalNilComparisonType, @thin Optional<τ_0_0>.Type) -> Bool, loc "/src/Sources/Logging/Logging.swift":1102:79, scope 19 // user: %127
  %127 = apply %126<Logger.MetadataProvider>(%121, %125, %118) : $@convention(method) <τ_0_0> (@in_guaranteed Optional<τ_0_0>, _OptionalNilComparisonType, @thin Optional<τ_0_0>.Type) -> Bool, loc "/src/Sources/Logging/Logging.swift":1102:79, scope 19 // user: %130
  destroy_addr %121 : $*Optional<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1102:82, scope 19 // id: %128
  dealloc_stack %121 : $*Optional<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1102:82, scope 19 // id: %129
  %130 = struct_extract %127 : $Bool, #Bool._value, loc "/src/Sources/Logging/Logging.swift":1102:79, scope 19 // user: %131
  cond_br %130, bb12, bb13, loc "/src/Sources/Logging/Logging.swift":1102:79, scope 19 // id: %131

bb12:                                             // Preds: bb11
  increment_profiler_counter 5, "$s7Logging19MultiplexLogHandlerV16metadataProviderAA6LoggerV08MetadataF0VSgvg", num_counters 10, hash 0, loc "/src/Sources/Logging/Logging.swift":1102:88, scope 19 // id: %132
  %133 = integer_literal $Builtin.IntLiteral, 1, loc "/src/Sources/Logging/Logging.swift":1102:88, scope 19 // user: %136
  %134 = metatype $@thin Int.Type, loc "/src/Sources/Logging/Logging.swift":1102:88, scope 19 // user: %136
  // function_ref Int.init(_builtinIntegerLiteral:)
  %135 = function_ref @$sSi22_builtinIntegerLiteralSiBI_tcfC : $@convention(method) (Builtin.IntLiteral, @thin Int.Type) -> Int, loc "/src/Sources/Logging/Logging.swift":1102:88, scope 19 // user: %136
  %136 = apply %135(%133, %134) : $@convention(method) (Builtin.IntLiteral, @thin Int.Type) -> Int, loc "/src/Sources/Logging/Logging.swift":1102:88, scope 19 // user: %137
  br bb14(%136 : $Int), loc "/src/Sources/Logging/Logging.swift":1102:88, scope 19 // id: %137

bb13:                                             // Preds: bb11
  %138 = integer_literal $Builtin.IntLiteral, 0, loc "/src/Sources/Logging/Logging.swift":1102:92, scope 19 // user: %141
  %139 = metatype $@thin Int.Type, loc "/src/Sources/Logging/Logging.swift":1102:92, scope 19 // user: %141
  // function_ref Int.init(_builtinIntegerLiteral:)
  %140 = function_ref @$sSi22_builtinIntegerLiteralSiBI_tcfC : $@convention(method) (Builtin.IntLiteral, @thin Int.Type) -> Int, loc "/src/Sources/Logging/Logging.swift":1102:92, scope 19 // user: %141
  %141 = apply %140(%138, %139) : $@convention(method) (Builtin.IntLiteral, @thin Int.Type) -> Int, loc "/src/Sources/Logging/Logging.swift":1102:92, scope 19 // user: %142
  br bb14(%141 : $Int), loc "/src/Sources/Logging/Logging.swift":1102:92, scope 19 // id: %142

// %143                                           // users: %154, %144
bb14(%143 : $Int):                                // Preds: bb13 bb12
  debug_value %143 : $Int, let, name "additionalMetadataProviderCount", loc "/src/Sources/Logging/Logging.swift":1102:21, scope 18 // id: %144
  %145 = metatype $@thin Int.Type, loc "/src/Sources/Logging/Logging.swift":1103:63, scope 19 // user: %154
  %146 = struct_extract %0 : $MultiplexLogHandler, #MultiplexLogHandler.handlers, loc "/src/Sources/Logging/Logging.swift":1103:48, scope 18 // user: %147
  %147 = copy_value %146 : $Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1103:48, scope 18 // users: %152, %148
  %148 = begin_borrow %147 : $Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1103:57, scope 18 // users: %151, %150
  // function_ref Array.count.getter
  %149 = function_ref @$sSa5countSivg : $@convention(method) <τ_0_0> (@guaranteed Array<τ_0_0>) -> Int, loc "/src/Sources/Logging/Logging.swift":1103:57, scope 18 // user: %150
  %150 = apply %149<any LogHandler>(%148) : $@convention(method) <τ_0_0> (@guaranteed Array<τ_0_0>) -> Int, loc "/src/Sources/Logging/Logging.swift":1103:57, scope 18 // user: %154
  end_borrow %148 : $Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1103:57, scope 18 // id: %151
  destroy_value %147 : $Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1103:48, scope 18 // id: %152
  // function_ref static Int.+ infix(_:_:)
  %153 = function_ref @$sSi1poiyS2i_SitFZ : $@convention(method) (Int, Int, @thin Int.Type) -> Int, loc "/src/Sources/Logging/Logging.swift":1103:63, scope 18 // user: %154
  %154 = apply %153(%150, %143, %145) : $@convention(method) (Int, Int, @thin Int.Type) -> Int, loc "/src/Sources/Logging/Logging.swift":1103:63, scope 18 // user: %157
  %155 = begin_access [modify] [unknown] %110 : $*Array<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1103:17, scope 18 // users: %158, %157
  // function_ref Array.reserveCapacity(_:)
  %156 = function_ref @$sSa15reserveCapacityyySiF : $@convention(method) <τ_0_0> (Int, @inout Array<τ_0_0>) -> (), loc "/src/Sources/Logging/Logging.swift":1103:27, scope 18 // user: %157
  %157 = apply %156<Logger.MetadataProvider>(%154, %155) : $@convention(method) <τ_0_0> (Int, @inout Array<τ_0_0>) -> (), loc "/src/Sources/Logging/Logging.swift":1103:27, scope 18
  end_access %155 : $*Array<Logger.MetadataProvider>, loc * "/src/Sources/Logging/Logging.swift":1103:17, scope 18 // id: %158
  %159 = alloc_box ${ var IndexingIterator<Array<any LogHandler>> }, var, name "$handler$generator", loc "/src/Sources/Logging/Logging.swift":1104:32, scope 18 // users: %209, %160
  %160 = project_box %159 : ${ var IndexingIterator<Array<any LogHandler>> }, 0, loc "/src/Sources/Logging/Logging.swift":1104:32, scope 18 // users: %170, %166
  %161 = struct_extract %0 : $MultiplexLogHandler, #MultiplexLogHandler.handlers, loc "/src/Sources/Logging/Logging.swift":1104:37, scope 20 // user: %162
  %162 = copy_value %161 : $Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1104:37, scope 20 // user: %164
  %163 = alloc_stack $Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1104:37, scope 20 // users: %167, %166, %164
  store %162 to [init] %163 : $*Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1104:37, scope 20 // id: %164
  // function_ref Collection<>.makeIterator()
  %165 = function_ref @$sSlss16IndexingIteratorVyxG0B0RtzrlE04makeB0ACyF : $@convention(method) <τ_0_0 where τ_0_0 : Collection, τ_0_0.Iterator == IndexingIterator<τ_0_0>> (@in τ_0_0) -> @out IndexingIterator<τ_0_0>, scope 20 // user: %166
  %166 = apply %165<[any LogHandler]>(%160, %163) : $@convention(method) <τ_0_0 where τ_0_0 : Collection, τ_0_0.Iterator == IndexingIterator<τ_0_0>> (@in τ_0_0) -> @out IndexingIterator<τ_0_0>, loc "/src/Sources/Logging/Logging.swift":1104:37, scope 20
  dealloc_stack %163 : $*Array<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1104:37, scope 20 // id: %167
  %168 = alloc_stack $Optional<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1104:17, scope 20 // users: %208, %177, %174, %172
  br bb15, loc "/src/Sources/Logging/Logging.swift":1104:17, scope 20 // id: %169

bb15:                                             // Preds: bb19 bb14
  %170 = begin_access [modify] [unknown] %160 : $*IndexingIterator<Array<any LogHandler>>, loc "/src/Sources/Logging/Logging.swift":1104:17, scope 20 // users: %173, %172
  // function_ref IndexingIterator.next()
  %171 = function_ref @$ss16IndexingIteratorV4next7ElementQzSgyF : $@convention(method) <τ_0_0 where τ_0_0 : Collection> (@inout IndexingIterator<τ_0_0>) -> @out Optional<τ_0_0.Element>, scope 20 // user: %172
  %172 = apply %171<[any LogHandler]>(%168, %170) : $@convention(method) <τ_0_0 where τ_0_0 : Collection> (@inout IndexingIterator<τ_0_0>) -> @out Optional<τ_0_0.Element>, loc "/src/Sources/Logging/Logging.swift":1104:17, scope 20
  end_access %170 : $*IndexingIterator<Array<any LogHandler>>, loc * "/src/Sources/Logging/Logging.swift":1104:17, scope 20 // id: %173
  switch_enum_addr %168 : $*Optional<any LogHandler>, case #Optional.some!enumelt: bb16, case #Optional.none!enumelt: bb20, loc "/src/Sources/Logging/Logging.swift":1104:17, scope 20 // id: %174

bb16:                                             // Preds: bb15
  increment_profiler_counter 6, "$s7Logging19MultiplexLogHandlerV16metadataProviderAA6LoggerV08MetadataF0VSgvg", num_counters 10, hash 0, loc "/src/Sources/Logging/Logging.swift":1104:46, scope 21 // id: %175
  %176 = alloc_stack [lexical] $any LogHandler, let, name "handler", loc "/src/Sources/Logging/Logging.swift":1104:21, scope 20 // users: %206, %205, %179, %178
  %177 = unchecked_take_enum_data_addr %168 : $*Optional<any LogHandler>, #Optional.some!enumelt, loc "/src/Sources/Logging/Logging.swift":1104:17, scope 20 // user: %178
  copy_addr [take] %177 to [init] %176 : $*any LogHandler, loc "/src/Sources/Logging/Logging.swift":1104:46, scope 21 // id: %178
  %179 = open_existential_addr immutable_access %176 : $*any LogHandler to $*@opened("00DC31A6-DD06-11ED-A6FF-FEBDF8270133", any LogHandler) Self, loc "/src/Sources/Logging/Logging.swift":1105:47, scope 22 // users: %183, %182, %181, %180
  %180 = alloc_stack $@opened("00DC31A6-DD06-11ED-A6FF-FEBDF8270133", any LogHandler) Self, loc "/src/Sources/Logging/Logging.swift":1105:47, scope 22 // type-defs: %179; users: %192, %191, %186, %185, %183, %181
  copy_addr %179 to [init] %180 : $*@opened("00DC31A6-DD06-11ED-A6FF-FEBDF8270133", any LogHandler) Self, loc "/src/Sources/Logging/Logging.swift":1105:47, scope 22 // id: %181
  %182 = witness_method $@opened("00DC31A6-DD06-11ED-A6FF-FEBDF8270133", any LogHandler) Self, #LogHandler.metadataProvider!getter : <Self where Self : LogHandler> (Self) -> () -> Logger.MetadataProvider?, %179 : $*@opened("00DC31A6-DD06-11ED-A6FF-FEBDF8270133", any LogHandler) Self : $@convention(witness_method: LogHandler) <τ_0_0 where τ_0_0 : LogHandler> (@in_guaranteed τ_0_0) -> @owned Optional<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1105:47, scope 22 // type-defs: %179; user: %183
  %183 = apply %182<@opened("00DC31A6-DD06-11ED-A6FF-FEBDF8270133", any LogHandler) Self>(%180) : $@convention(witness_method: LogHandler) <τ_0_0 where τ_0_0 : LogHandler> (@in_guaranteed τ_0_0) -> @owned Optional<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1105:47, scope 22 // type-defs: %179; user: %184
  switch_enum %183 : $Optional<Logger.MetadataProvider>, case #Optional.some!enumelt: bb18, case #Optional.none!enumelt: bb17, loc "/src/Sources/Logging/Logging.swift":1105:47, scope 22 // id: %184

bb17:                                             // Preds: bb16
  destroy_addr %180 : $*@opened("00DC31A6-DD06-11ED-A6FF-FEBDF8270133", any LogHandler) Self, loc "/src/Sources/Logging/Logging.swift":1105:47, scope 22 // id: %185
  dealloc_stack %180 : $*@opened("00DC31A6-DD06-11ED-A6FF-FEBDF8270133", any LogHandler) Self, loc "/src/Sources/Logging/Logging.swift":1107:21, scope 22 // id: %186
  br bb19, loc "/src/Sources/Logging/Logging.swift":1105:47, scope 22 // id: %187

// %188                                           // users: %203, %189
bb18(%188 : @owned $Logger.MetadataProvider):     // Preds: bb16
  %189 = begin_borrow [lexical] %188 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1105:47, scope 22 // users: %202, %194, %190
  debug_value %189 : $Logger.MetadataProvider, let, name "provider", loc "/src/Sources/Logging/Logging.swift":1105:28, scope 22 // id: %190
  destroy_addr %180 : $*@opened("00DC31A6-DD06-11ED-A6FF-FEBDF8270133", any LogHandler) Self, loc "/src/Sources/Logging/Logging.swift":1105:47, scope 22 // id: %191
  dealloc_stack %180 : $*@opened("00DC31A6-DD06-11ED-A6FF-FEBDF8270133", any LogHandler) Self, loc "/src/Sources/Logging/Logging.swift":1105:47, scope 22 // id: %192
  increment_profiler_counter 7, "$s7Logging19MultiplexLogHandlerV16metadataProviderAA6LoggerV08MetadataF0VSgvg", num_counters 10, hash 0, loc "/src/Sources/Logging/Logging.swift":1105:64, scope 24 // id: %193
  %194 = copy_value %189 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1106:42, scope 24 // user: %196
  %195 = alloc_stack $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1106:42, scope 24 // users: %201, %199, %196
  store %194 to [init] %195 : $*Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1106:42, scope 24 // id: %196
  %197 = begin_access [modify] [unknown] %110 : $*Array<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1106:25, scope 24 // users: %200, %199
  // function_ref Array.append(_:)
  %198 = function_ref @$sSa6appendyyxnF : $@convention(method) <τ_0_0> (@in τ_0_0, @inout Array<τ_0_0>) -> (), loc "/src/Sources/Logging/Logging.swift":1106:35, scope 24 // user: %199
  %199 = apply %198<Logger.MetadataProvider>(%195, %197) : $@convention(method) <τ_0_0> (@in τ_0_0, @inout Array<τ_0_0>) -> (), loc "/src/Sources/Logging/Logging.swift":1106:35, scope 24
  end_access %197 : $*Array<Logger.MetadataProvider>, loc * "/src/Sources/Logging/Logging.swift":1106:25, scope 24 // id: %200
  dealloc_stack %195 : $*Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1106:50, scope 24 // id: %201
  end_borrow %189 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1107:21, scope 24 // id: %202
  destroy_value %188 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1107:21, scope 24 // id: %203
  br bb19, loc "/src/Sources/Logging/Logging.swift":1107:21, scope 24 // id: %204

bb19:                                             // Preds: bb18 bb17
  destroy_addr %176 : $*any LogHandler, loc "/src/Sources/Logging/Logging.swift":1108:17, scope 24 // id: %205
  dealloc_stack %176 : $*any LogHandler, loc "/src/Sources/Logging/Logging.swift":1108:17, scope 24 // id: %206
  br bb15, loc "/src/Sources/Logging/Logging.swift":1108:17, scope 21 // id: %207

bb20:                                             // Preds: bb15
  dealloc_stack %168 : $*Optional<any LogHandler>, loc "/src/Sources/Logging/Logging.swift":1108:17, scope 20 // id: %208
  destroy_value %159 : ${ var IndexingIterator<Array<any LogHandler>> }, loc "/src/Sources/Logging/Logging.swift":1108:17, scope 20 // id: %209
  %210 = struct_extract %0 : $MultiplexLogHandler, #MultiplexLogHandler._metadataProvider, loc "/src/Sources/Logging/Logging.swift":1109:56, scope 25 // user: %211
  %211 = copy_value %210 : $Optional<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1109:56, scope 25 // user: %212
  switch_enum %211 : $Optional<Logger.MetadataProvider>, case #Optional.some!enumelt: bb22, case #Optional.none!enumelt: bb21, loc "/src/Sources/Logging/Logging.swift":1109:17, scope 25 // id: %212

bb21:                                             // Preds: bb20
  br bb23, loc "/src/Sources/Logging/Logging.swift":1109:17, scope 25 // id: %213

// %214                                           // users: %227, %215
bb22(%214 : @owned $Logger.MetadataProvider):     // Preds: bb20
  %215 = begin_borrow [lexical] %214 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1109:17, scope 25 // users: %226, %218, %216
  debug_value %215 : $Logger.MetadataProvider, let, name "multiplexHandlerProvider", loc "/src/Sources/Logging/Logging.swift":1109:24, scope 25 // id: %216
  increment_profiler_counter 8, "$s7Logging19MultiplexLogHandlerV16metadataProviderAA6LoggerV08MetadataF0VSgvg", num_counters 10, hash 0, loc "/src/Sources/Logging/Logging.swift":1109:74, scope 27 // id: %217
  %218 = copy_value %215 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1110:38, scope 27 // user: %220
  %219 = alloc_stack $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1110:38, scope 27 // users: %225, %223, %220
  store %218 to [init] %219 : $*Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1110:38, scope 27 // id: %220
  %221 = begin_access [modify] [unknown] %110 : $*Array<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1110:21, scope 27 // users: %224, %223
  // function_ref Array.append(_:)
  %222 = function_ref @$sSa6appendyyxnF : $@convention(method) <τ_0_0> (@in τ_0_0, @inout Array<τ_0_0>) -> (), loc "/src/Sources/Logging/Logging.swift":1110:31, scope 27 // user: %223
  %223 = apply %222<Logger.MetadataProvider>(%219, %221) : $@convention(method) <τ_0_0> (@in τ_0_0, @inout Array<τ_0_0>) -> (), loc "/src/Sources/Logging/Logging.swift":1110:31, scope 27
  end_access %221 : $*Array<Logger.MetadataProvider>, loc * "/src/Sources/Logging/Logging.swift":1110:21, scope 27 // id: %224
  dealloc_stack %219 : $*Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1110:62, scope 27 // id: %225
  end_borrow %215 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1111:17, scope 27 // id: %226
  destroy_value %214 : $Logger.MetadataProvider, loc "/src/Sources/Logging/Logging.swift":1111:17, scope 27 // id: %227
  br bb23, loc "/src/Sources/Logging/Logging.swift":1111:17, scope 27 // id: %228

bb23:                                             // Preds: bb22 bb21
  %229 = metatype $@thin Bool.Type, loc "/src/Sources/Logging/Logging.swift":1112:23, scope 29 // user: %247
  %230 = begin_access [read] [unknown] %110 : $*Array<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1112:24, scope 29 // users: %232, %231
  %231 = load [copy] %230 : $*Array<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1112:24, scope 29 // users: %245, %233
  end_access %230 : $*Array<Logger.MetadataProvider>, loc * "/src/Sources/Logging/Logging.swift":1112:24, scope 29 // id: %232
  %233 = begin_borrow %231 : $Array<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1112:34, scope 28 // users: %244, %235
  %234 = alloc_stack $Array<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1112:34, scope 28 // users: %248, %235
  %235 = store_borrow %233 to %234 : $*Array<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1112:34, scope 28 // users: %243, %236
  %236 = load [copy] %235 : $*Array<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1112:34, scope 28 // user: %238
  %237 = alloc_stack $Array<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1112:34, scope 28 // users: %242, %241, %240, %238
  store %236 to [init] %237 : $*Array<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1112:34, scope 28 // id: %238
  // function_ref Collection.isEmpty.getter
  %239 = function_ref @$sSlsE7isEmptySbvg : $@convention(method) <τ_0_0 where τ_0_0 : Collection> (@in_guaranteed τ_0_0) -> Bool, loc "/src/Sources/Logging/Logging.swift":1112:34, scope 28 // user: %240
  %240 = apply %239<[Logger.MetadataProvider]>(%237) : $@convention(method) <τ_0_0 where τ_0_0 : Collection> (@in_guaranteed τ_0_0) -> Bool, loc "/src/Sources/Logging/Logging.swift":1112:34, scope 28 // user: %247
  destroy_addr %237 : $*Array<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1112:34, scope 28 // id: %241
  dealloc_stack %237 : $*Array<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1112:34, scope 28 // id: %242
  end_borrow %235 : $*Array<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1112:34, scope 28 // id: %243
  end_borrow %233 : $Array<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1112:34, scope 28 // id: %244
  destroy_value %231 : $Array<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1112:24, scope 28 // id: %245
  // function_ref static Bool.! prefix(_:)
  %246 = function_ref @$sSb1nopyS2bFZ : $@convention(method) (Bool, @thin Bool.Type) -> Bool, loc "/src/Sources/Logging/Logging.swift":1112:23, scope 28 // user: %247
  %247 = apply %246(%240, %229) : $@convention(method) (Bool, @thin Bool.Type) -> Bool, loc "/src/Sources/Logging/Logging.swift":1112:23, scope 28 // user: %249
  dealloc_stack %234 : $*Array<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1112:34, scope 28 // id: %248
  %249 = struct_extract %247 : $Bool, #Bool._value, loc "/src/Sources/Logging/Logging.swift":1112:23, scope 28 // user: %250
  cond_br %249, bb24, bb25, loc "/src/Sources/Logging/Logging.swift":1112:23, scope 28 // id: %250

bb24:                                             // Preds: bb23
  %251 = metatype $@thin Logger.MetadataProvider.Type, loc "/src/Sources/Logging/Logging.swift":1115:24, scope 28 // user: %256
  %252 = begin_access [read] [unknown] %110 : $*Array<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1115:35, scope 28 // users: %254, %253
  %253 = load [copy] %252 : $*Array<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1115:35, scope 28 // users: %257, %256
  end_access %252 : $*Array<Logger.MetadataProvider>, loc * "/src/Sources/Logging/Logging.swift":1115:35, scope 28 // id: %254
  // function_ref static Logger.MetadataProvider.multiplex(_:)
  %255 = function_ref @$s7Logging6LoggerV16MetadataProviderV9multiplexyAESgSayAEGFZ : $@convention(method) (@guaranteed Array<Logger.MetadataProvider>, @thin Logger.MetadataProvider.Type) -> @owned Optional<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1115:25, scope 28 // user: %256
  %256 = apply %255(%253, %251) : $@convention(method) (@guaranteed Array<Logger.MetadataProvider>, @thin Logger.MetadataProvider.Type) -> @owned Optional<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1115:25, scope 28 // user: %259
  destroy_value %253 : $Array<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1115:44, scope 28 // id: %257
  destroy_value %109 : ${ var Array<Logger.MetadataProvider> }, loc "/src/Sources/Logging/Logging.swift":1117:9, scope 28 // id: %258
  br bb26(%256 : $Optional<Logger.MetadataProvider>), loc "/src/Sources/Logging/Logging.swift":1115:17, scope 28 // id: %259

bb25:                                             // Preds: bb23
  increment_profiler_counter 9, "$s7Logging19MultiplexLogHandlerV16metadataProviderAA6LoggerV08MetadataF0VSgvg", num_counters 10, hash 0, loc "/src/Sources/Logging/Logging.swift":1112:47, scope 29 // id: %260
  %261 = enum $Optional<Logger.MetadataProvider>, #Optional.none!enumelt, loc "/src/Sources/Logging/Logging.swift":1113:28, scope 29 // user: %263
  destroy_value %109 : ${ var Array<Logger.MetadataProvider> }, loc "/src/Sources/Logging/Logging.swift":1117:9, scope 29 // id: %262
  br bb26(%261 : $Optional<Logger.MetadataProvider>), loc "/src/Sources/Logging/Logging.swift":1113:21, scope 29 // id: %263

// %264                                           // user: %265
bb26(%264 : @owned $Optional<Logger.MetadataProvider>): // Preds: bb24 bb25 bb10 bb9 bb6 bb5
  return %264 : $Optional<Logger.MetadataProvider>, loc "/src/Sources/Logging/Logging.swift":1117:9, scope 28 // id: %265
} // end sil function '$s7Logging19MultiplexLogHandlerV16metadataProviderAA6LoggerV08MetadataF0VSgvg'

Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.	Program arguments: /usr/bin/swift-frontend -frontend -c /src/Sources/Logging/Locks.swift /src/Sources/Logging/LogHandler.swift -primary-file /src/Sources/Logging/Logging.swift -primary-file /src/Sources/Logging/MetadataProvider.swift -emit-dependencies-path /src/.build/aarch64-unknown-linux-gnu/debug/Logging.build/Logging.d -emit-reference-dependencies-path /src/.build/aarch64-unknown-linux-gnu/debug/Logging.build/Logging.swiftdeps -emit-dependencies-path /src/.build/aarch64-unknown-linux-gnu/debug/Logging.build/MetadataProvider.d -emit-reference-dependencies-path /src/.build/aarch64-unknown-linux-gnu/debug/Logging.build/MetadataProvider.swiftdeps -target aarch64-unknown-linux-gnu -Xllvm -aarch64-use-tbi -disable-objc-interop -I /src/.build/aarch64-unknown-linux-gnu/debug -color-diagnostics -enable-testing -g -module-cache-path /src/.build/aarch64-unknown-linux-gnu/debug/ModuleCache -profile-generate -profile-coverage-mapping -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -new-driver-path /usr/bin/swift-driver -empty-abi-descriptor -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -resource-dir /usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -fPIC -module-name Logging -parse-as-library -o /src/.build/aarch64-unknown-linux-gnu/debug/Logging.build/Logging.swift.o -o /src/.build/aarch64-unknown-linux-gnu/debug/Logging.build/MetadataProvider.swift.o -index-store-path /src/.build/aarch64-unknown-linux-gnu/debug/index/store -index-system-modules
1.	Swift version 5.9-dev (LLVM 8277d73ee656251, Swift 4de53fc2e7cee4d)
2.	Compiling with the current language version
3.	While evaluating request ASTLoweringRequest(Lowering AST to SIL for file "/src/Sources/Logging/Logging.swift")
4.	While silgen emitFunction SIL function "@$s7Logging19MultiplexLogHandlerV16metadataProviderAA6LoggerV08MetadataF0VSgvg".
 for getter for metadataProvider (at /src/Sources/Logging/Logging.swift:1086:16)
5.	While verifying SIL function "@$s7Logging19MultiplexLogHandlerV16metadataProviderAA6LoggerV08MetadataF0VSgvg".
 for getter for metadataProvider (at /src/Sources/Logging/Logging.swift:1086:16)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
/usr/bin/swift-frontend(+0x69824ec)[0xaaaae07b24ec]
/usr/bin/swift-frontend(+0x69804dc)[0xaaaae07b04dc]
/usr/bin/swift-frontend(+0x6982900)[0xaaaae07b2900]
linux-vdso.so.1(__kernel_rt_sigreturn+0x0)[0xffffbeadf78c]
/lib/aarch64-linux-gnu/libc.so.6(+0x7f200)[0xffffbdfbf200]
/lib/aarch64-linux-gnu/libc.so.6(raise+0x1c)[0xffffbdf7a67c]
/lib/aarch64-linux-gnu/libc.so.6(abort+0xe4)[0xffffbdf67130]
/usr/bin/swift-frontend(+0x1d6a058)[0xaaaadbb9a058]
/usr/bin/swift-frontend(+0x1d6e530)[0xaaaadbb9e530]
/usr/bin/swift-frontend(+0x1d6c868)[0xaaaadbb9c868]
/usr/bin/swift-frontend(+0x1d66300)[0xaaaadbb96300]
/usr/bin/swift-frontend(+0x13804f0)[0xaaaadb1b04f0]
/usr/bin/swift-frontend(+0x137fbfc)[0xaaaadb1afbfc]
/usr/bin/swift-frontend(+0x1381d6c)[0xaaaadb1b1d6c]
/usr/bin/swift-frontend(+0x137e448)[0xaaaadb1ae448]
/usr/bin/swift-frontend(+0x1446520)[0xaaaadb276520]
/usr/bin/swift-frontend(+0x23e9a08)[0xaaaadc219a08]
/usr/bin/swift-frontend(+0x1446774)[0xaaaadb276774]
/usr/bin/swift-frontend(+0x1446488)[0xaaaadb276488]
/usr/bin/swift-frontend(+0x1442f5c)[0xaaaadb272f5c]
/usr/bin/swift-frontend(+0x1442e80)[0xaaaadb272e80]
/usr/bin/swift-frontend(+0x1384174)[0xaaaadb1b4174]
/usr/bin/swift-frontend(+0x14363f4)[0xaaaadb2663f4]
/usr/bin/swift-frontend(+0x1388384)[0xaaaadb1b8384]
/usr/bin/swift-frontend(+0x1385630)[0xaaaadb1b5630]
/usr/bin/swift-frontend(+0xd91310)[0xaaaadabc1310]
/usr/bin/swift-frontend(+0xda410c)[0xaaaadabd410c]
/usr/bin/swift-frontend(+0xd940e0)[0xaaaadabc40e0]
/usr/bin/swift-frontend(+0xd92d14)[0xaaaadabc2d14]
/usr/bin/swift-frontend(+0xc19064)[0xaaaadaa49064]
/lib/aarch64-linux-gnu/libc.so.6(+0x273fc)[0xffffbdf673fc]
/lib/aarch64-linux-gnu/libc.so.6(__libc_start_main+0x98)[0xffffbdf674cc]
/usr/bin/swift-frontend(+0xc17db0)[0xaaaadaa47db0]

error: fatalError

@dnadoba
Copy link
Contributor Author

dnadoba commented Apr 17, 2023

and swift-algorithms
# swift test --enable-code-coverage
Fetching https://github.com/apple/swift-numerics
Fetched https://github.com/apple/swift-numerics (1.17s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.2 (0.25s)
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.2
Building for debugging...
error: emit-module command failed due to signal 6 (use -v to see invocation)
Broken instruction!
  %86 = metatype $@thin Bool.Type                 // user: %99
in scope
{

   parent: {
  
     parent: {
    
       parent: {
      
         parent: {
        
           parent: {
          
             parent: {
            /src/Sources/Algorithms/Chunked.swift:244:15
               parent: @$sSl10AlgorithmsE7chunked2bySay11SubSequenceQzGSb7ElementQz_AHtKXE_tKF
              }
            
            }
          
          }
        
        }
      
      }
    
    }
  
  }
Previous, non-contiguous scope set by  %81 = unchecked_take_enum_data_addr %68 : $*Optional<(index: Self.Index, element: Self.Element)>, #Optional.some!enumelt // users: %83, %82
in scope
{

   parent: {
  
     parent: {
    
       parent: {
      
         parent: {
        
           parent: {
          /src/Sources/Algorithms/Chunked.swift:244:15
             parent: @$sSl10AlgorithmsE7chunked2bySay11SubSequenceQzGSb7ElementQz_AHtKXE_tKF
            }
          
          }
        
        }
      
      }
    
    }
  
  }
Please report a bug on bugs.swift.org
Pass -Xllvm -verify-di-holes=false to disable the verification
SIL verification failed: Basic block contains a non-contiguous lexical scope at -Onone: DS == LastSeenScope
Verifying instruction:
     %80 = alloc_stack [lexical] $Self.Element, let, name "element", loc "/src/Sources/Algorithms/Chunked.swift":253:17, scope 0 // users: %143, %142, %137, %93, %222, %221, %85
     %89 = alloc_stack $Self.Element, loc "/src/Sources/Algorithms/Chunked.swift":254:33, scope 0 // users: %97, %96, %93, %219, %218, %90
     %92 = begin_borrow %87 : $@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0, @in_guaranteed τ_0_1) -> (Bool, @error any Error) for <Self.Element, Self.Element>, loc "/src/Sources/Algorithms/Chunked.swift":254:15, scope 0 // users: %95, %93, %217
->   try_apply %92(%89, %80) : $@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0, @in_guaranteed τ_0_1) -> (Bool, @error any Error) for <Self.Element, Self.Element>, normal bb4, error bb14, loc "/src/Sources/Algorithms/Chunked.swift":254:15, scope 0 // id: %93
In function:
sil_scope 1 { loc "/src/Sources/Algorithms/Chunked.swift":244:15 parent @$sSl10AlgorithmsE7chunked2bySay11SubSequenceQzGSb7ElementQz_AHtKXE_tKF : $@convention(method) <τ_0_0 where τ_0_0 : Collection> (@guaranteed @noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0, @in_guaranteed τ_0_1) -> (Bool, @error any Error) for <τ_0_0.Element, τ_0_0.Element>, @in_guaranteed τ_0_0) -> (@owned Array<τ_0_0.SubSequence>, @error any Error) }
sil_scope 2 { loc "/src/Sources/Algorithms/Chunked.swift":247:5 parent 1 }
sil_scope 3 { loc "/src/Sources/Algorithms/Chunked.swift":247:25 parent 2 }
sil_scope 4 { loc "/src/Sources/Algorithms/Chunked.swift":248:9 parent 2 }
sil_scope 5 { loc "/src/Sources/Algorithms/Chunked.swift":248:33 parent 4 }
sil_scope 6 { loc "/src/Sources/Algorithms/Chunked.swift":250:9 parent 4 }
sil_scope 7 { loc "/src/Sources/Algorithms/Chunked.swift":250:17 parent 6 }
sil_scope 8 { loc "/src/Sources/Algorithms/Chunked.swift":251:9 parent 6 }
sil_scope 9 { loc "/src/Sources/Algorithms/Chunked.swift":251:19 parent 8 }
sil_scope 10 { loc "/src/Sources/Algorithms/Chunked.swift":253:5 parent 8 }
sil_scope 11 { loc "/src/Sources/Algorithms/Chunked.swift":253:51 parent 10 }
sil_scope 12 { loc "/src/Sources/Algorithms/Chunked.swift":254:7 parent 11 }
sil_scope 13 { loc "/src/Sources/Algorithms/Chunked.swift":254:51 parent 12 }
sil_scope 14 { loc "/src/Sources/Algorithms/Chunked.swift":261:5 parent 8 }
sil_scope 15 { loc "/src/Sources/Algorithms/Chunked.swift":261:26 parent 14 }

// Collection.chunked(by:), loc "/src/Sources/Algorithms/Chunked.swift":244:15, scope 1
sil [serialized] [ossa] @$sSl10AlgorithmsE7chunked2bySay11SubSequenceQzGSb7ElementQz_AHtKXE_tKF : $@convention(method) <Self where Self : Collection> (@guaranteed @noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0, @in_guaranteed τ_0_1) -> (Bool, @error any Error) for <Self.Element, Self.Element>, @in_guaranteed Self) -> (@owned Array<Self.SubSequence>, @error any Error) {
// %0 "belongInSameGroup"                         // users: %87, %2
// %1 "self"                                      // users: %182, %156, %115, %59, %43, %30, %8, %3
bb0(%0 : @guaranteed $@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0, @in_guaranteed τ_0_1) -> (Bool, @error any Error) for <Self.Element, Self.Element>, %1 : $*Self):
  debug_value %0 : $@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0, @in_guaranteed τ_0_1) -> (Bool, @error any Error) for <Self.Element, Self.Element>, let, name "belongInSameGroup", argno 1, loc "/src/Sources/Algorithms/Chunked.swift":245:8, scope 1 // id: %2
  debug_value %1 : $*Self, let, name "self", argno 2, implicit, expr op_deref, loc "/src/Sources/Algorithms/Chunked.swift":244:15, scope 1 // id: %3
  debug_value undef : $any Error, var, name "$error", argno 3, loc "/src/Sources/Algorithms/Chunked.swift":246:5, scope 1 // id: %4
  increment_profiler_counter 0, "$sSl10AlgorithmsE7chunked2bySay11SubSequenceQzGSb7ElementQz_AHtKXE_tKF", num_counters 5, hash 0, loc "/src/Sources/Algorithms/Chunked.swift":246:31, scope 1 // id: %5
  %6 = metatype $@thin Bool.Type, loc "/src/Sources/Algorithms/Chunked.swift":247:11, scope 3 // user: %13
  %7 = alloc_stack $Self, loc "/src/Sources/Algorithms/Chunked.swift":247:12, scope 2 // users: %14, %11, %10, %8
  copy_addr %1 to [init] %7 : $*Self, loc "/src/Sources/Algorithms/Chunked.swift":247:12, scope 2 // id: %8
  %9 = witness_method $Self, #Collection.isEmpty!getter : <Self where Self : Collection> (Self) -> () -> Bool : $@convention(witness_method: Collection) <τ_0_0 where τ_0_0 : Collection> (@in_guaranteed τ_0_0) -> Bool, loc "/src/Sources/Algorithms/Chunked.swift":247:12, scope 2 // user: %10
  %10 = apply %9<Self>(%7) : $@convention(witness_method: Collection) <τ_0_0 where τ_0_0 : Collection> (@in_guaranteed τ_0_0) -> Bool, loc "/src/Sources/Algorithms/Chunked.swift":247:12, scope 2 // user: %13
  destroy_addr %7 : $*Self, loc "/src/Sources/Algorithms/Chunked.swift":247:12, scope 2 // id: %11
  // function_ref static Bool.! prefix(_:)
  %12 = function_ref @$sSb1nopyS2bFZ : $@convention(method) (Bool, @thin Bool.Type) -> Bool, loc "/src/Sources/Algorithms/Chunked.swift":247:11, scope 2 // user: %13
  %13 = apply %12(%10, %6) : $@convention(method) (Bool, @thin Bool.Type) -> Bool, loc "/src/Sources/Algorithms/Chunked.swift":247:11, scope 2 // user: %15
  dealloc_stack %7 : $*Self, loc "/src/Sources/Algorithms/Chunked.swift":247:12, scope 2 // id: %14
  %15 = struct_extract %13 : $Bool, #Bool._value, loc "/src/Sources/Algorithms/Chunked.swift":247:11, scope 2 // user: %16
  cond_br %15, bb1, bb12, loc "/src/Sources/Algorithms/Chunked.swift":247:11, scope 2 // id: %16

bb1:                                              // Preds: bb0
  %17 = alloc_box $<τ_0_0 where τ_0_0 : Collection> { var Array<τ_0_0.SubSequence> } <Self>, var, name "result", loc "/src/Sources/Algorithms/Chunked.swift":248:9, scope 4 // users: %204, %232, %18
  %18 = project_box %17 : $<τ_0_0 where τ_0_0 : Collection> { var Array<τ_0_0.SubSequence> } <Self>, 0, loc "/src/Sources/Algorithms/Chunked.swift":248:9, scope 4 // users: %197, %187, %120, %25
  %19 = integer_literal $Builtin.Word, 0, loc "/src/Sources/Algorithms/Chunked.swift":248:33, scope 5 // user: %21
  // function_ref _allocateUninitializedArray<A>(_:)
  %20 = function_ref @$ss27_allocateUninitializedArrayySayxG_BptBwlF : $@convention(thin) <τ_0_0> (Builtin.Word) -> (@owned Array<τ_0_0>, Builtin.RawPointer), loc "/src/Sources/Algorithms/Chunked.swift":248:33, scope 5 // user: %21
  %21 = apply %20<Self.SubSequence>(%19) : $@convention(thin) <τ_0_0> (Builtin.Word) -> (@owned Array<τ_0_0>, Builtin.RawPointer), loc "/src/Sources/Algorithms/Chunked.swift":248:33, scope 5 // user: %22
  (%22, %23) = destructure_tuple %21 : $(Array<Self.SubSequence>, Builtin.RawPointer), loc "/src/Sources/Algorithms/Chunked.swift":248:33, scope 5 // users: %25, %24
  %24 = pointer_to_address %23 : $Builtin.RawPointer to [strict] $*Self.SubSequence, loc "/src/Sources/Algorithms/Chunked.swift":248:33, scope 5
  store %22 to [init] %18 : $*Array<Self.SubSequence>, loc "/src/Sources/Algorithms/Chunked.swift":248:33, scope 5 // id: %25
  %26 = alloc_box $<τ_0_0 where τ_0_0 : Collection> { var τ_0_0.Index } <Self>, var, name "start", loc "/src/Sources/Algorithms/Chunked.swift":250:9, scope 6 // users: %203, %231, %27
  %27 = begin_borrow [lexical] %26 : $<τ_0_0 where τ_0_0 : Collection> { var τ_0_0.Index } <Self>, loc "/src/Sources/Algorithms/Chunked.swift":250:9, scope 6 // users: %202, %230, %28
  %28 = project_box %27 : $<τ_0_0 where τ_0_0 : Collection> { var τ_0_0.Index } <Self>, 0, loc "/src/Sources/Algorithms/Chunked.swift":250:9, scope 6 // users: %173, %151, %130, %106, %38, %32
  %29 = alloc_stack $Self, loc "/src/Sources/Algorithms/Chunked.swift":250:17, scope 7 // users: %34, %33, %32, %30
  copy_addr %1 to [init] %29 : $*Self, loc "/src/Sources/Algorithms/Chunked.swift":250:17, scope 7 // id: %30
  %31 = witness_method $Self, #Collection.startIndex!getter : <Self where Self : Collection> (Self) -> () -> Self.Index : $@convention(witness_method: Collection) <τ_0_0 where τ_0_0 : Collection> (@in_guaranteed τ_0_0) -> @out τ_0_0.Index, loc "/src/Sources/Algorithms/Chunked.swift":250:17, scope 7 // user: %32
  %32 = apply %31<Self>(%28, %29) : $@convention(witness_method: Collection) <τ_0_0 where τ_0_0 : Collection> (@in_guaranteed τ_0_0) -> @out τ_0_0.Index, loc "/src/Sources/Algorithms/Chunked.swift":250:17, scope 7
  destroy_addr %29 : $*Self, loc "/src/Sources/Algorithms/Chunked.swift":250:17, scope 7 // id: %33
  dealloc_stack %29 : $*Self, loc "/src/Sources/Algorithms/Chunked.swift":250:17, scope 7 // id: %34
  %35 = alloc_box $<τ_0_0 where τ_0_0 : Collection> { var τ_0_0.Element } <Self>, var, name "current", loc "/src/Sources/Algorithms/Chunked.swift":251:9, scope 8 // users: %201, %229, %36
  %36 = begin_borrow [lexical] %35 : $<τ_0_0 where τ_0_0 : Collection> { var τ_0_0.Element } <Self>, loc "/src/Sources/Algorithms/Chunked.swift":251:9, scope 8 // users: %200, %228, %37
  %37 = project_box %36 : $<τ_0_0 where τ_0_0 : Collection> { var τ_0_0.Element } <Self>, 0, loc "/src/Sources/Algorithms/Chunked.swift":251:9, scope 8 // users: %138, %88, %47
  %38 = begin_access [read] [unknown] %28 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":251:24, scope 8 // users: %41, %40
  %39 = alloc_stack $Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":251:24, scope 8 // users: %52, %51, %45, %40
  copy_addr %38 to [init] %39 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":251:24, scope 8 // id: %40
  end_access %38 : $*Self.Index, loc * "/src/Sources/Algorithms/Chunked.swift":251:24, scope 8 // id: %41
  %42 = alloc_stack $Self, loc "/src/Sources/Algorithms/Chunked.swift":251:23, scope 9 // users: %50, %49, %45, %43
  copy_addr %1 to [init] %42 : $*Self, loc "/src/Sources/Algorithms/Chunked.swift":251:23, scope 9 // id: %43
  %44 = witness_method $Self, #Collection.subscript!read : <Self where Self : Collection> (Self) -> (Self.Index) -> () : $@yield_once @convention(witness_method: Collection) <τ_0_0 where τ_0_0 : Collection> (@in_guaranteed τ_0_0.Index, @in_guaranteed τ_0_0) -> @yields @in_guaranteed τ_0_0.Element, loc "/src/Sources/Algorithms/Chunked.swift":251:23, scope 9 // user: %45
  (%45, %46) = begin_apply %44<Self>(%39, %42) : $@yield_once @convention(witness_method: Collection) <τ_0_0 where τ_0_0 : Collection> (@in_guaranteed τ_0_0.Index, @in_guaranteed τ_0_0) -> @yields @in_guaranteed τ_0_0.Element, loc "/src/Sources/Algorithms/Chunked.swift":251:23, scope 9 // users: %47, %48
  copy_addr %45 to [init] %37 : $*Self.Element, loc "/src/Sources/Algorithms/Chunked.swift":251:23, scope 9 // id: %47
  end_apply %46, loc "/src/Sources/Algorithms/Chunked.swift":251:29, scope 9 // id: %48
  destroy_addr %42 : $*Self, loc "/src/Sources/Algorithms/Chunked.swift":251:29, scope 9 // id: %49
  dealloc_stack %42 : $*Self, loc "/src/Sources/Algorithms/Chunked.swift":251:29, scope 9 // id: %50
  destroy_addr %39 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":251:29, scope 9 // id: %51
  dealloc_stack %39 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":251:29, scope 9 // id: %52
  %53 = alloc_box $<τ_0_0 where τ_0_0 : Collection> { var IndexingIterator<Slice<IndexedCollection<τ_0_0>>> } <Self>, var, name "$generator", loc "/src/Sources/Algorithms/Chunked.swift":253:29, scope 9 // users: %149, %227, %54
  %54 = begin_borrow [lexical] %53 : $<τ_0_0 where τ_0_0 : Collection> { var IndexingIterator<Slice<IndexedCollection<τ_0_0>>> } <Self>, loc "/src/Sources/Algorithms/Chunked.swift":253:29, scope 9 // users: %148, %226, %55
  %55 = project_box %54 : $<τ_0_0 where τ_0_0 : Collection> { var IndexingIterator<Slice<IndexedCollection<τ_0_0>>> } <Self>, 0, loc "/src/Sources/Algorithms/Chunked.swift":253:29, scope 9 // users: %71, %66
  %56 = alloc_stack $Slice<IndexedCollection<Self>>, loc * "/src/Sources/Algorithms/Chunked.swift":253:39, scope 9 // users: %67, %66, %63
  %57 = alloc_stack $IndexedCollection<Self>, loc * "/src/Sources/Algorithms/Chunked.swift":253:29, scope 9 // users: %64, %63, %59
  // function_ref Collection.indexed()
  %58 = function_ref @$sSl10AlgorithmsE7indexedAA17IndexedCollectionVyxGyF : $@convention(method) <τ_0_0 where τ_0_0 : Collection> (@in_guaranteed τ_0_0) -> @out IndexedCollection<τ_0_0>, loc "/src/Sources/Algorithms/Chunked.swift":253:29, scope 10 // user: %59
  %59 = apply %58<Self>(%57, %1) : $@convention(method) <τ_0_0 where τ_0_0 : Collection> (@in_guaranteed τ_0_0) -> @out IndexedCollection<τ_0_0>, loc "/src/Sources/Algorithms/Chunked.swift":253:29, scope 10
  // function_ref default argument 0 of Collection.dropFirst(_:)
  %60 = function_ref @$sSlsE9dropFirsty11SubSequenceQzSiFfA_ : $@convention(thin) <τ_0_0 where τ_0_0 : Collection> () -> Int, loc "/src/Sources/Algorithms/Chunked.swift":253:48, scope 10 // user: %61
  %61 = apply %60<IndexedCollection<Self>>() : $@convention(thin) <τ_0_0 where τ_0_0 : Collection> () -> Int, loc "/src/Sources/Algorithms/Chunked.swift":253:48, scope 10 // user: %63
  // function_ref Collection.dropFirst(_:)
  %62 = function_ref @$sSlsE9dropFirsty11SubSequenceQzSiF : $@convention(method) <τ_0_0 where τ_0_0 : Collection> (Int, @in τ_0_0) -> @out τ_0_0.SubSequence, loc "/src/Sources/Algorithms/Chunked.swift":253:39, scope 10 // user: %63
  %63 = apply %62<IndexedCollection<Self>>(%56, %61, %57) : $@convention(method) <τ_0_0 where τ_0_0 : Collection> (Int, @in τ_0_0) -> @out τ_0_0.SubSequence, loc "/src/Sources/Algorithms/Chunked.swift":253:39, scope 10
  dealloc_stack %57 : $*IndexedCollection<Self>, loc "/src/Sources/Algorithms/Chunked.swift":253:49, scope 10 // id: %64
  // function_ref Collection<>.makeIterator()
  %65 = function_ref @$sSlss16IndexingIteratorVyxG0B0RtzrlE04makeB0ACyF : $@convention(method) <τ_0_0 where τ_0_0 : Collection, τ_0_0.Iterator == IndexingIterator<τ_0_0>> (@in τ_0_0) -> @out IndexingIterator<τ_0_0>, scope 10 // user: %66
  %66 = apply %65<Slice<IndexedCollection<Self>>>(%55, %56) : $@convention(method) <τ_0_0 where τ_0_0 : Collection, τ_0_0.Iterator == IndexingIterator<τ_0_0>> (@in τ_0_0) -> @out IndexingIterator<τ_0_0>, loc "/src/Sources/Algorithms/Chunked.swift":253:39, scope 10
  dealloc_stack %56 : $*Slice<IndexedCollection<Self>>, loc "/src/Sources/Algorithms/Chunked.swift":253:49, scope 10 // id: %67
  %68 = alloc_stack $Optional<(index: Self.Index, element: Self.Element)>, loc "/src/Sources/Algorithms/Chunked.swift":253:5, scope 10 // users: %147, %225, %81, %77, %75
  br bb2, loc "/src/Sources/Algorithms/Chunked.swift":253:5, scope 10 // id: %69

bb2:                                              // Preds: bb7 bb1
  %70 = alloc_stack $Optional<(index: Self.Index, element: Self.Element)>, loc * "/src/Sources/Algorithms/Chunked.swift":253:5, scope 10 // users: %76, %75, %73
  %71 = begin_access [modify] [unknown] %55 : $*IndexingIterator<Slice<IndexedCollection<Self>>>, loc "/src/Sources/Algorithms/Chunked.swift":253:5, scope 10 // users: %74, %73
  // function_ref IndexingIterator.next()
  %72 = function_ref @$ss16IndexingIteratorV4next7ElementQzSgyF : $@convention(method) <τ_0_0 where τ_0_0 : Collection> (@inout IndexingIterator<τ_0_0>) -> @out Optional<τ_0_0.Element>, scope 10 // user: %73
  %73 = apply %72<Slice<IndexedCollection<Self>>>(%70, %71) : $@convention(method) <τ_0_0 where τ_0_0 : Collection> (@inout IndexingIterator<τ_0_0>) -> @out Optional<τ_0_0.Element>, loc "/src/Sources/Algorithms/Chunked.swift":253:5, scope 10
  end_access %71 : $*IndexingIterator<Slice<IndexedCollection<Self>>>, loc * "/src/Sources/Algorithms/Chunked.swift":253:5, scope 10 // id: %74
  copy_addr [take] %70 to [init] %68 : $*Optional<(index: Self.Index, element: Self.Element)>, loc "/src/Sources/Algorithms/Chunked.swift":253:39, scope 10 // id: %75
  dealloc_stack %70 : $*Optional<(index: Self.Index, element: Self.Element)>, loc "/src/Sources/Algorithms/Chunked.swift":259:5, scope 10 // id: %76
  switch_enum_addr %68 : $*Optional<(index: Self.Index, element: Self.Element)>, case #Optional.some!enumelt: bb3, case #Optional.none!enumelt: bb8, loc "/src/Sources/Algorithms/Chunked.swift":253:5, scope 10 // id: %77

bb3:                                              // Preds: bb2
  increment_profiler_counter 2, "$sSl10AlgorithmsE7chunked2bySay11SubSequenceQzGSb7ElementQz_AHtKXE_tKF", num_counters 5, hash 0, loc "/src/Sources/Algorithms/Chunked.swift":253:51, scope 11 // id: %78
  %79 = alloc_stack [lexical] $Self.Index, let, name "index", loc "/src/Sources/Algorithms/Chunked.swift":253:10, scope 10 // users: %145, %144, %129, %111, %224, %223, %84
  %80 = alloc_stack [lexical] $Self.Element, let, name "element", loc "/src/Sources/Algorithms/Chunked.swift":253:17, scope 10 // users: %143, %142, %137, %93, %222, %221, %85
  %81 = unchecked_take_enum_data_addr %68 : $*Optional<(index: Self.Index, element: Self.Element)>, #Optional.some!enumelt, loc "/src/Sources/Algorithms/Chunked.swift":253:5, scope 10 // users: %83, %82
  %82 = tuple_element_addr %81 : $*(index: Self.Index, element: Self.Element), 0, loc "/src/Sources/Algorithms/Chunked.swift":253:26, scope 10 // user: %84
  %83 = tuple_element_addr %81 : $*(index: Self.Index, element: Self.Element), 1, loc "/src/Sources/Algorithms/Chunked.swift":253:26, scope 10 // user: %85
  copy_addr [take] %82 to [init] %79 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":253:26, scope 10 // id: %84
  copy_addr [take] %83 to [init] %80 : $*Self.Element, loc "/src/Sources/Algorithms/Chunked.swift":253:26, scope 10 // id: %85
  %86 = metatype $@thin Bool.Type, loc "/src/Sources/Algorithms/Chunked.swift":254:14, scope 11 // user: %99
  %87 = copy_value %0 : $@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0, @in_guaranteed τ_0_1) -> (Bool, @error any Error) for <Self.Element, Self.Element>, loc "/src/Sources/Algorithms/Chunked.swift":254:15, scope 12 // users: %100, %220, %92
  %88 = begin_access [read] [unknown] %37 : $*Self.Element, loc "/src/Sources/Algorithms/Chunked.swift":254:33, scope 12 // users: %91, %90
  %89 = alloc_stack $Self.Element, loc "/src/Sources/Algorithms/Chunked.swift":254:33, scope 12 // users: %97, %96, %93, %219, %218, %90
  copy_addr %88 to [init] %89 : $*Self.Element, loc "/src/Sources/Algorithms/Chunked.swift":254:33, scope 12 // id: %90
  end_access %88 : $*Self.Element, loc * "/src/Sources/Algorithms/Chunked.swift":254:33, scope 12 // id: %91
  %92 = begin_borrow %87 : $@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0, @in_guaranteed τ_0_1) -> (Bool, @error any Error) for <Self.Element, Self.Element>, loc "/src/Sources/Algorithms/Chunked.swift":254:15, scope 12 // users: %95, %93, %217
  try_apply %92(%89, %80) : $@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0, @in_guaranteed τ_0_1) -> (Bool, @error any Error) for <Self.Element, Self.Element>, normal bb4, error bb14, loc "/src/Sources/Algorithms/Chunked.swift":254:15, scope 12 // id: %93

// %94                                            // user: %99
bb4(%94 : $Bool):                                 // Preds: bb3
  end_borrow %92 : $@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0, @in_guaranteed τ_0_1) -> (Bool, @error any Error) for <Self.Element, Self.Element>, loc "/src/Sources/Algorithms/Chunked.swift":254:49, scope 12 // id: %95
  destroy_addr %89 : $*Self.Element, loc "/src/Sources/Algorithms/Chunked.swift":254:49, scope 12 // id: %96
  dealloc_stack %89 : $*Self.Element, loc "/src/Sources/Algorithms/Chunked.swift":254:49, scope 12 // id: %97
  // function_ref static Bool.! prefix(_:)
  %98 = function_ref @$sSb1nopyS2bFZ : $@convention(method) (Bool, @thin Bool.Type) -> Bool, loc "/src/Sources/Algorithms/Chunked.swift":254:14, scope 12 // user: %99
  %99 = apply %98(%94, %86) : $@convention(method) (Bool, @thin Bool.Type) -> Bool, loc "/src/Sources/Algorithms/Chunked.swift":254:14, scope 12 // user: %101
  destroy_value %87 : $@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0, @in_guaranteed τ_0_1) -> (Bool, @error any Error) for <Self.Element, Self.Element>, loc "/src/Sources/Algorithms/Chunked.swift":254:49, scope 12 // id: %100
  %101 = struct_extract %99 : $Bool, #Bool._value, loc "/src/Sources/Algorithms/Chunked.swift":254:14, scope 12 // user: %102
  cond_br %101, bb5, bb6, loc "/src/Sources/Algorithms/Chunked.swift":254:14, scope 12 // id: %102

bb5:                                              // Preds: bb4
  increment_profiler_counter 3, "$sSl10AlgorithmsE7chunked2bySay11SubSequenceQzGSb7ElementQz_AHtKXE_tKF", num_counters 5, hash 0, loc "/src/Sources/Algorithms/Chunked.swift":254:51, scope 13 // id: %103
  %104 = alloc_stack $Range<Self.Index>, loc * "/src/Sources/Algorithms/Chunked.swift":255:33, scope 13 // users: %127, %126, %118, %111
  %105 = metatype $@thick Self.Index.Type, loc "/src/Sources/Algorithms/Chunked.swift":255:33, scope 13 // user: %111
  %106 = begin_access [read] [unknown] %28 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":255:28, scope 13 // users: %109, %108
  %107 = alloc_stack $Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":255:28, scope 13 // users: %113, %112, %111, %108
  copy_addr %106 to [init] %107 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":255:28, scope 13 // id: %108
  end_access %106 : $*Self.Index, loc * "/src/Sources/Algorithms/Chunked.swift":255:28, scope 13 // id: %109
  // function_ref static Comparable...< infix(_:_:)
  %110 = function_ref @$sSLsE3zzloiySnyxGx_xtFZ : $@convention(method) <τ_0_0 where τ_0_0 : Comparable> (@in_guaranteed τ_0_0, @in_guaranteed τ_0_0, @thick τ_0_0.Type) -> @out Range<τ_0_0>, loc "/src/Sources/Algorithms/Chunked.swift":255:33, scope 13 // user: %111
  %111 = apply %110<Self.Index>(%104, %107, %79, %105) : $@convention(method) <τ_0_0 where τ_0_0 : Comparable> (@in_guaranteed τ_0_0, @in_guaranteed τ_0_0, @thick τ_0_0.Type) -> @out Range<τ_0_0>, loc "/src/Sources/Algorithms/Chunked.swift":255:33, scope 13
  destroy_addr %107 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":255:36, scope 13 // id: %112
  dealloc_stack %107 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":255:36, scope 13 // id: %113
  %114 = alloc_stack $Self, loc "/src/Sources/Algorithms/Chunked.swift":255:27, scope 13 // users: %125, %119, %118, %115
  copy_addr %1 to [init] %114 : $*Self, loc "/src/Sources/Algorithms/Chunked.swift":255:27, scope 13 // id: %115
  %116 = alloc_stack $Self.SubSequence, loc * "/src/Sources/Algorithms/Chunked.swift":255:27, scope 13 // users: %124, %122, %118
  %117 = witness_method $Self, #Collection.subscript!getter : <Self where Self : Collection> (Self) -> (Range<Self.Index>) -> Self.SubSequence : $@convention(witness_method: Collection) <τ_0_0 where τ_0_0 : Collection> (@in_guaranteed Range<τ_0_0.Index>, @in_guaranteed τ_0_0) -> @out τ_0_0.SubSequence, loc "/src/Sources/Algorithms/Chunked.swift":255:27, scope 13 // user: %118
  %118 = apply %117<Self>(%116, %104, %114) : $@convention(witness_method: Collection) <τ_0_0 where τ_0_0 : Collection> (@in_guaranteed Range<τ_0_0.Index>, @in_guaranteed τ_0_0) -> @out τ_0_0.SubSequence, loc "/src/Sources/Algorithms/Chunked.swift":255:27, scope 13
  destroy_addr %114 : $*Self, loc "/src/Sources/Algorithms/Chunked.swift":255:41, scope 13 // id: %119
  %120 = begin_access [modify] [unknown] %18 : $*Array<Self.SubSequence>, loc "/src/Sources/Algorithms/Chunked.swift":255:9, scope 13 // users: %123, %122
  // function_ref Array.append(_:)
  %121 = function_ref @$sSa6appendyyxnF : $@convention(method) <τ_0_0> (@in τ_0_0, @inout Array<τ_0_0>) -> (), loc "/src/Sources/Algorithms/Chunked.swift":255:16, scope 13 // user: %122
  %122 = apply %121<Self.SubSequence>(%116, %120) : $@convention(method) <τ_0_0> (@in τ_0_0, @inout Array<τ_0_0>) -> (), loc "/src/Sources/Algorithms/Chunked.swift":255:16, scope 13
  end_access %120 : $*Array<Self.SubSequence>, loc * "/src/Sources/Algorithms/Chunked.swift":255:9, scope 13 // id: %123
  dealloc_stack %116 : $*Self.SubSequence, loc "/src/Sources/Algorithms/Chunked.swift":255:42, scope 13 // id: %124
  dealloc_stack %114 : $*Self, loc "/src/Sources/Algorithms/Chunked.swift":255:42, scope 13 // id: %125
  destroy_addr %104 : $*Range<Self.Index>, loc "/src/Sources/Algorithms/Chunked.swift":255:42, scope 13 // id: %126
  dealloc_stack %104 : $*Range<Self.Index>, loc "/src/Sources/Algorithms/Chunked.swift":255:42, scope 13 // id: %127
  %128 = alloc_stack $Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":256:17, scope 13 // users: %133, %131, %129
  copy_addr %79 to [init] %128 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":256:17, scope 13 // id: %129
  %130 = begin_access [modify] [unknown] %28 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":256:15, scope 13 // users: %132, %131
  copy_addr [take] %128 to %130 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":256:15, scope 13 // id: %131
  end_access %130 : $*Self.Index, loc * "/src/Sources/Algorithms/Chunked.swift":256:15, scope 13 // id: %132
  dealloc_stack %128 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":256:17, scope 13 // id: %133
  br bb7, loc "/src/Sources/Algorithms/Chunked.swift":257:7, scope 13 // id: %134

bb6:                                              // Preds: bb4
  br bb7, loc "/src/Sources/Algorithms/Chunked.swift":254:7, scope 12 // id: %135

bb7:                                              // Preds: bb5 bb6
  %136 = alloc_stack $Self.Element, loc "/src/Sources/Algorithms/Chunked.swift":258:17, scope 11 // users: %141, %139, %137
  copy_addr %80 to [init] %136 : $*Self.Element, loc "/src/Sources/Algorithms/Chunked.swift":258:17, scope 11 // id: %137
  %138 = begin_access [modify] [unknown] %37 : $*Self.Element, loc "/src/Sources/Algorithms/Chunked.swift":258:15, scope 11 // users: %140, %139
  copy_addr [take] %136 to %138 : $*Self.Element, loc "/src/Sources/Algorithms/Chunked.swift":258:15, scope 11 // id: %139
  end_access %138 : $*Self.Element, loc * "/src/Sources/Algorithms/Chunked.swift":258:15, scope 11 // id: %140
  dealloc_stack %136 : $*Self.Element, loc "/src/Sources/Algorithms/Chunked.swift":258:17, scope 11 // id: %141
  destroy_addr %80 : $*Self.Element, loc "/src/Sources/Algorithms/Chunked.swift":259:5, scope 11 // id: %142
  dealloc_stack %80 : $*Self.Element, loc "/src/Sources/Algorithms/Chunked.swift":259:5, scope 11 // id: %143
  destroy_addr %79 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":259:5, scope 11 // id: %144
  dealloc_stack %79 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":259:5, scope 11 // id: %145
  br bb2, loc "/src/Sources/Algorithms/Chunked.swift":259:5, scope 11 // id: %146

bb8:                                              // Preds: bb2
  dealloc_stack %68 : $*Optional<(index: Self.Index, element: Self.Element)>, loc "/src/Sources/Algorithms/Chunked.swift":259:5, scope 10 // id: %147
  end_borrow %54 : $<τ_0_0 where τ_0_0 : Collection> { var IndexingIterator<Slice<IndexedCollection<τ_0_0>>> } <Self>, loc "/src/Sources/Algorithms/Chunked.swift":259:5, scope 10 // id: %148
  destroy_value %53 : $<τ_0_0 where τ_0_0 : Collection> { var IndexingIterator<Slice<IndexedCollection<τ_0_0>>> } <Self>, loc "/src/Sources/Algorithms/Chunked.swift":259:5, scope 10 // id: %149
  %150 = metatype $@thick Self.Index.Type, loc "/src/Sources/Algorithms/Chunked.swift":261:14, scope 10 // user: %162
  %151 = begin_access [read] [unknown] %28 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":261:8, scope 10 // users: %154, %153
  %152 = alloc_stack $Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":261:8, scope 10 // users: %167, %166, %162, %153
  copy_addr %151 to [init] %152 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":261:8, scope 10 // id: %153
  end_access %151 : $*Self.Index, loc * "/src/Sources/Algorithms/Chunked.swift":261:8, scope 10 // id: %154
  %155 = alloc_stack $Self, loc "/src/Sources/Algorithms/Chunked.swift":261:17, scope 14 // users: %165, %160, %159, %156
  copy_addr %1 to [init] %155 : $*Self, loc "/src/Sources/Algorithms/Chunked.swift":261:17, scope 14 // id: %156
  %157 = alloc_stack $Self.Index, loc * "/src/Sources/Algorithms/Chunked.swift":261:17, scope 14 // users: %164, %163, %162, %159
  %158 = witness_method $Self, #Collection.endIndex!getter : <Self where Self : Collection> (Self) -> () -> Self.Index : $@convention(witness_method: Collection) <τ_0_0 where τ_0_0 : Collection> (@in_guaranteed τ_0_0) -> @out τ_0_0.Index, loc "/src/Sources/Algorithms/Chunked.swift":261:17, scope 14 // user: %159
  %159 = apply %158<Self>(%157, %155) : $@convention(witness_method: Collection) <τ_0_0 where τ_0_0 : Collection> (@in_guaranteed τ_0_0) -> @out τ_0_0.Index, loc "/src/Sources/Algorithms/Chunked.swift":261:17, scope 14
  destroy_addr %155 : $*Self, loc "/src/Sources/Algorithms/Chunked.swift":261:17, scope 14 // id: %160
  // function_ref static Equatable.!= infix(_:_:)
  %161 = function_ref @$sSQsE2neoiySbx_xtFZ : $@convention(method) <τ_0_0 where τ_0_0 : Equatable> (@in_guaranteed τ_0_0, @in_guaranteed τ_0_0, @thick τ_0_0.Type) -> Bool, loc "/src/Sources/Algorithms/Chunked.swift":261:14, scope 14 // user: %162
  %162 = apply %161<Self.Index>(%152, %157, %150) : $@convention(method) <τ_0_0 where τ_0_0 : Equatable> (@in_guaranteed τ_0_0, @in_guaranteed τ_0_0, @thick τ_0_0.Type) -> Bool, loc "/src/Sources/Algorithms/Chunked.swift":261:14, scope 14 // user: %168
  destroy_addr %157 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":261:17, scope 14 // id: %163
  dealloc_stack %157 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":261:17, scope 14 // id: %164
  dealloc_stack %155 : $*Self, loc "/src/Sources/Algorithms/Chunked.swift":261:17, scope 14 // id: %165
  destroy_addr %152 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":261:17, scope 14 // id: %166
  dealloc_stack %152 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":261:17, scope 14 // id: %167
  %168 = struct_extract %162 : $Bool, #Bool._value, loc "/src/Sources/Algorithms/Chunked.swift":261:14, scope 14 // user: %169
  cond_br %168, bb9, bb10, loc "/src/Sources/Algorithms/Chunked.swift":261:14, scope 14 // id: %169

bb9:                                              // Preds: bb8
  increment_profiler_counter 4, "$sSl10AlgorithmsE7chunked2bySay11SubSequenceQzGSb7ElementQz_AHtKXE_tKF", num_counters 5, hash 0, loc "/src/Sources/Algorithms/Chunked.swift":261:26, scope 15 // id: %170
  %171 = alloc_stack $PartialRangeFrom<Self.Index>, loc * "/src/Sources/Algorithms/Chunked.swift":262:31, scope 15 // users: %194, %193, %185, %178
  %172 = metatype $@thick Self.Index.Type, loc "/src/Sources/Algorithms/Chunked.swift":262:31, scope 15 // user: %178
  %173 = begin_access [read] [unknown] %28 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":262:26, scope 15 // users: %176, %175
  %174 = alloc_stack $Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":262:26, scope 15 // users: %180, %179, %178, %175
  copy_addr %173 to [init] %174 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":262:26, scope 15 // id: %175
  end_access %173 : $*Self.Index, loc * "/src/Sources/Algorithms/Chunked.swift":262:26, scope 15 // id: %176
  // function_ref static Comparable.... postfix(_:)
  %177 = function_ref @$sSLsE3zzzoPys16PartialRangeFromVyxGxFZ : $@convention(method) <τ_0_0 where τ_0_0 : Comparable> (@in_guaranteed τ_0_0, @thick τ_0_0.Type) -> @out PartialRangeFrom<τ_0_0>, loc "/src/Sources/Algorithms/Chunked.swift":262:31, scope 15 // user: %178
  %178 = apply %177<Self.Index>(%171, %174, %172) : $@convention(method) <τ_0_0 where τ_0_0 : Comparable> (@in_guaranteed τ_0_0, @thick τ_0_0.Type) -> @out PartialRangeFrom<τ_0_0>, loc "/src/Sources/Algorithms/Chunked.swift":262:31, scope 15
  destroy_addr %174 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":262:31, scope 15 // id: %179
  dealloc_stack %174 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":262:31, scope 15 // id: %180
  %181 = alloc_stack $Self, loc "/src/Sources/Algorithms/Chunked.swift":262:25, scope 15 // users: %192, %186, %185, %182
  copy_addr %1 to [init] %181 : $*Self, loc "/src/Sources/Algorithms/Chunked.swift":262:25, scope 15 // id: %182
  %183 = alloc_stack $Self.SubSequence, loc * "/src/Sources/Algorithms/Chunked.swift":262:25, scope 15 // users: %191, %189, %185
  // function_ref Collection.subscript.getter
  %184 = function_ref @$sSlsEy11SubSequenceQzqd__cSXRd__5BoundQyd__5IndexRtzluig : $@convention(method) <τ_0_0 where τ_0_0 : Collection><τ_1_0 where τ_1_0 : RangeExpression, τ_0_0.Index == τ_1_0.Bound> (@in_guaranteed τ_1_0, @in_guaranteed τ_0_0) -> @out τ_0_0.SubSequence, loc "/src/Sources/Algorithms/Chunked.swift":262:25, scope 15 // user: %185
  %185 = apply %184<Self, PartialRangeFrom<Self.Index>>(%183, %171, %181) : $@convention(method) <τ_0_0 where τ_0_0 : Collection><τ_1_0 where τ_1_0 : RangeExpression, τ_0_0.Index == τ_1_0.Bound> (@in_guaranteed τ_1_0, @in_guaranteed τ_0_0) -> @out τ_0_0.SubSequence, loc "/src/Sources/Algorithms/Chunked.swift":262:25, scope 15
  destroy_addr %181 : $*Self, loc "/src/Sources/Algorithms/Chunked.swift":262:34, scope 15 // id: %186
  %187 = begin_access [modify] [unknown] %18 : $*Array<Self.SubSequence>, loc "/src/Sources/Algorithms/Chunked.swift":262:7, scope 15 // users: %190, %189
  // function_ref Array.append(_:)
  %188 = function_ref @$sSa6appendyyxnF : $@convention(method) <τ_0_0> (@in τ_0_0, @inout Array<τ_0_0>) -> (), loc "/src/Sources/Algorithms/Chunked.swift":262:14, scope 15 // user: %189
  %189 = apply %188<Self.SubSequence>(%183, %187) : $@convention(method) <τ_0_0> (@in τ_0_0, @inout Array<τ_0_0>) -> (), loc "/src/Sources/Algorithms/Chunked.swift":262:14, scope 15
  end_access %187 : $*Array<Self.SubSequence>, loc * "/src/Sources/Algorithms/Chunked.swift":262:7, scope 15 // id: %190
  dealloc_stack %183 : $*Self.SubSequence, loc "/src/Sources/Algorithms/Chunked.swift":262:35, scope 15 // id: %191
  dealloc_stack %181 : $*Self, loc "/src/Sources/Algorithms/Chunked.swift":262:35, scope 15 // id: %192
  destroy_addr %171 : $*PartialRangeFrom<Self.Index>, loc "/src/Sources/Algorithms/Chunked.swift":262:35, scope 15 // id: %193
  dealloc_stack %171 : $*PartialRangeFrom<Self.Index>, loc "/src/Sources/Algorithms/Chunked.swift":262:35, scope 15 // id: %194
  br bb11, loc "/src/Sources/Algorithms/Chunked.swift":263:5, scope 15 // id: %195

bb10:                                             // Preds: bb8
  br bb11, loc "/src/Sources/Algorithms/Chunked.swift":261:5, scope 14 // id: %196

bb11:                                             // Preds: bb9 bb10
  %197 = begin_access [read] [unknown] %18 : $*Array<Self.SubSequence>, loc "/src/Sources/Algorithms/Chunked.swift":265:12, scope 15 // users: %199, %198
  %198 = load [copy] %197 : $*Array<Self.SubSequence>, loc "/src/Sources/Algorithms/Chunked.swift":265:12, scope 15 // user: %205
  end_access %197 : $*Array<Self.SubSequence>, loc * "/src/Sources/Algorithms/Chunked.swift":265:12, scope 15 // id: %199
  end_borrow %36 : $<τ_0_0 where τ_0_0 : Collection> { var τ_0_0.Element } <Self>, loc "/src/Sources/Algorithms/Chunked.swift":266:3, scope 15 // id: %200
  destroy_value %35 : $<τ_0_0 where τ_0_0 : Collection> { var τ_0_0.Element } <Self>, loc "/src/Sources/Algorithms/Chunked.swift":266:3, scope 15 // id: %201
  end_borrow %27 : $<τ_0_0 where τ_0_0 : Collection> { var τ_0_0.Index } <Self>, loc "/src/Sources/Algorithms/Chunked.swift":266:3, scope 15 // id: %202
  destroy_value %26 : $<τ_0_0 where τ_0_0 : Collection> { var τ_0_0.Index } <Self>, loc "/src/Sources/Algorithms/Chunked.swift":266:3, scope 15 // id: %203
  destroy_value %17 : $<τ_0_0 where τ_0_0 : Collection> { var Array<τ_0_0.SubSequence> } <Self>, loc "/src/Sources/Algorithms/Chunked.swift":266:3, scope 15 // id: %204
  br bb13(%198 : $Array<Self.SubSequence>), loc "/src/Sources/Algorithms/Chunked.swift":265:5, scope 8 // id: %205

bb12:                                             // Preds: bb0
  increment_profiler_counter 1, "$sSl10AlgorithmsE7chunked2bySay11SubSequenceQzGSb7ElementQz_AHtKXE_tKF", num_counters 5, hash 0, loc "/src/Sources/Algorithms/Chunked.swift":247:25, scope 3 // id: %206
  %207 = integer_literal $Builtin.Word, 0, loc "/src/Sources/Algorithms/Chunked.swift":247:34, scope 3 // user: %209
  // function_ref _allocateUninitializedArray<A>(_:)
  %208 = function_ref @$ss27_allocateUninitializedArrayySayxG_BptBwlF : $@convention(thin) <τ_0_0> (Builtin.Word) -> (@owned Array<τ_0_0>, Builtin.RawPointer), loc "/src/Sources/Algorithms/Chunked.swift":247:34, scope 3 // user: %209
  %209 = apply %208<Self.SubSequence>(%207) : $@convention(thin) <τ_0_0> (Builtin.Word) -> (@owned Array<τ_0_0>, Builtin.RawPointer), loc "/src/Sources/Algorithms/Chunked.swift":247:34, scope 3 // user: %210
  (%210, %211) = destructure_tuple %209 : $(Array<Self.SubSequence>, Builtin.RawPointer), loc "/src/Sources/Algorithms/Chunked.swift":247:34, scope 3 // users: %213, %212
  %212 = pointer_to_address %211 : $Builtin.RawPointer to [strict] $*Self.SubSequence, loc "/src/Sources/Algorithms/Chunked.swift":247:34, scope 3
  br bb13(%210 : $Array<Self.SubSequence>), loc "/src/Sources/Algorithms/Chunked.swift":247:27, scope 3 // id: %213

// %214                                           // user: %215
bb13(%214 : @owned $Array<Self.SubSequence>):     // Preds: bb11 bb12
  return %214 : $Array<Self.SubSequence>, loc "/src/Sources/Algorithms/Chunked.swift":266:3, scope 8 // id: %215

// %216                                           // user: %233
bb14(%216 : @owned $any Error):                   // Preds: bb3
  end_borrow %92 : $@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0, @in_guaranteed τ_0_1) -> (Bool, @error any Error) for <Self.Element, Self.Element>, loc "/src/Sources/Algorithms/Chunked.swift":254:49, scope 12 // id: %217
  destroy_addr %89 : $*Self.Element, loc "/src/Sources/Algorithms/Chunked.swift":266:3, scope 12 // id: %218
  dealloc_stack %89 : $*Self.Element, loc "/src/Sources/Algorithms/Chunked.swift":266:3, scope 12 // id: %219
  destroy_value %87 : $@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0, @in_guaranteed τ_0_1) -> (Bool, @error any Error) for <Self.Element, Self.Element>, loc "/src/Sources/Algorithms/Chunked.swift":266:3, scope 12 // id: %220
  destroy_addr %80 : $*Self.Element, loc "/src/Sources/Algorithms/Chunked.swift":266:3, scope 12 // id: %221
  dealloc_stack %80 : $*Self.Element, loc "/src/Sources/Algorithms/Chunked.swift":266:3, scope 12 // id: %222
  destroy_addr %79 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":266:3, scope 12 // id: %223
  dealloc_stack %79 : $*Self.Index, loc "/src/Sources/Algorithms/Chunked.swift":266:3, scope 12 // id: %224
  dealloc_stack %68 : $*Optional<(index: Self.Index, element: Self.Element)>, loc "/src/Sources/Algorithms/Chunked.swift":266:3, scope 12 // id: %225
  end_borrow %54 : $<τ_0_0 where τ_0_0 : Collection> { var IndexingIterator<Slice<IndexedCollection<τ_0_0>>> } <Self>, loc "/src/Sources/Algorithms/Chunked.swift":266:3, scope 12 // id: %226
  destroy_value %53 : $<τ_0_0 where τ_0_0 : Collection> { var IndexingIterator<Slice<IndexedCollection<τ_0_0>>> } <Self>, loc "/src/Sources/Algorithms/Chunked.swift":266:3, scope 12 // id: %227
  end_borrow %36 : $<τ_0_0 where τ_0_0 : Collection> { var τ_0_0.Element } <Self>, loc "/src/Sources/Algorithms/Chunked.swift":266:3, scope 12 // id: %228
  destroy_value %35 : $<τ_0_0 where τ_0_0 : Collection> { var τ_0_0.Element } <Self>, loc "/src/Sources/Algorithms/Chunked.swift":266:3, scope 12 // id: %229
  end_borrow %27 : $<τ_0_0 where τ_0_0 : Collection> { var τ_0_0.Index } <Self>, loc "/src/Sources/Algorithms/Chunked.swift":266:3, scope 12 // id: %230
  destroy_value %26 : $<τ_0_0 where τ_0_0 : Collection> { var τ_0_0.Index } <Self>, loc "/src/Sources/Algorithms/Chunked.swift":266:3, scope 12 // id: %231
  destroy_value %17 : $<τ_0_0 where τ_0_0 : Collection> { var Array<τ_0_0.SubSequence> } <Self>, loc "/src/Sources/Algorithms/Chunked.swift":266:3, scope 12 // id: %232
  throw %216 : $any Error, loc "/src/Sources/Algorithms/Chunked.swift":254:49, scope 8 // id: %233
} // end sil function '$sSl10AlgorithmsE7chunked2bySay11SubSequenceQzGSb7ElementQz_AHtKXE_tKF'

Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.	Program arguments: /usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /src/Sources/Algorithms/AdjacentPairs.swift /src/Sources/Algorithms/Chain.swift /src/Sources/Algorithms/Chunked.swift /src/Sources/Algorithms/Combinations.swift /src/Sources/Algorithms/Compacted.swift /src/Sources/Algorithms/Cycle.swift /src/Sources/Algorithms/EitherSequence.swift /src/Sources/Algorithms/FirstNonNil.swift /src/Sources/Algorithms/FlattenCollection.swift /src/Sources/Algorithms/Indexed.swift /src/Sources/Algorithms/Intersperse.swift /src/Sources/Algorithms/Joined.swift /src/Sources/Algorithms/MinMax.swift /src/Sources/Algorithms/Partition.swift /src/Sources/Algorithms/Permutations.swift /src/Sources/Algorithms/Product.swift /src/Sources/Algorithms/RandomSample.swift /src/Sources/Algorithms/Reductions.swift /src/Sources/Algorithms/Rotate.swift /src/Sources/Algorithms/Split.swift /src/Sources/Algorithms/Stride.swift /src/Sources/Algorithms/Suffix.swift /src/Sources/Algorithms/Trim.swift /src/Sources/Algorithms/Unique.swift /src/Sources/Algorithms/Windows.swift -target aarch64-unknown-linux-gnu -Xllvm -aarch64-use-tbi -disable-objc-interop -I /src/.build/aarch64-unknown-linux-gnu/debug -color-diagnostics -enable-testing -g -module-cache-path /src/.build/aarch64-unknown-linux-gnu/debug/ModuleCache -profile-generate -profile-coverage-mapping -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -new-driver-path /usr/bin/swift-driver -empty-abi-descriptor -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -resource-dir /usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -fmodule-map-file=/src/.build/checkouts/swift-numerics/Sources/_NumericsShims/include/module.modulemap -Xcc -I -Xcc /src/.build/checkouts/swift-numerics/Sources/_NumericsShims/include -Xcc -fPIC -module-name Algorithms -emit-module-doc-path /src/.build/aarch64-unknown-linux-gnu/debug/Algorithms.swiftdoc -emit-module-source-info-path /src/.build/aarch64-unknown-linux-gnu/debug/Algorithms.swiftsourceinfo -emit-dependencies-path /src/.build/aarch64-unknown-linux-gnu/debug/Algorithms.build/Algorithms.emit-module.d -parse-as-library -o /src/.build/aarch64-unknown-linux-gnu/debug/Algorithms.swiftmodule
1.	Swift version 5.9-dev (LLVM 8277d73ee656251, Swift 4de53fc2e7cee4d)
2.	Compiling with the current language version
3.	While evaluating request ASTLoweringRequest(Lowering AST to SIL for module Algorithms)
4.	While silgen emitFunction SIL function "@$sSl10AlgorithmsE7chunked2bySay11SubSequenceQzGSb7ElementQz_AHtKXE_tKF".
 for 'chunked(by:)' (at /src/Sources/Algorithms/Chunked.swift:244:10)
5.	While verifying SIL function "@$sSl10AlgorithmsE7chunked2bySay11SubSequenceQzGSb7ElementQz_AHtKXE_tKF".
 for 'chunked(by:)' (at /src/Sources/Algorithms/Chunked.swift:244:10)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
/usr/bin/swift-frontend(+0x69824ec)[0xaaaad1e624ec]
/usr/bin/swift-frontend(+0x69804dc)[0xaaaad1e604dc]
/usr/bin/swift-frontend(+0x6982900)[0xaaaad1e62900]
linux-vdso.so.1(__kernel_rt_sigreturn+0x0)[0xffff9564178c]
/lib/aarch64-linux-gnu/libc.so.6(+0x7f200)[0xffff94b1f200]
/lib/aarch64-linux-gnu/libc.so.6(raise+0x1c)[0xffff94ada67c]
/lib/aarch64-linux-gnu/libc.so.6(abort+0xe4)[0xffff94ac7130]
/usr/bin/swift-frontend(+0x1d6a058)[0xaaaacd24a058]
/usr/bin/swift-frontend(+0x1d6e530)[0xaaaacd24e530]
/usr/bin/swift-frontend(+0x1d6c868)[0xaaaacd24c868]
/usr/bin/swift-frontend(+0x1d66300)[0xaaaacd246300]
/usr/bin/swift-frontend(+0x13804f0)[0xaaaacc8604f0]
/usr/bin/swift-frontend(+0x137fbfc)[0xaaaacc85fbfc]
/usr/bin/swift-frontend(+0x1381d6c)[0xaaaacc861d6c]
/usr/bin/swift-frontend(+0x137e448)[0xaaaacc85e448]
/usr/bin/swift-frontend(+0x1447e84)[0xaaaacc927e84]
/usr/bin/swift-frontend(+0x14436f8)[0xaaaacc9236f8]
/usr/bin/swift-frontend(+0x1443684)[0xaaaacc923684]
/usr/bin/swift-frontend(+0x1384174)[0xaaaacc864174]
/usr/bin/swift-frontend(+0x14363f4)[0xaaaacc9163f4]
/usr/bin/swift-frontend(+0x1388384)[0xaaaacc868384]
/usr/bin/swift-frontend(+0x1385500)[0xaaaacc865500]
/usr/bin/swift-frontend(+0xd91480)[0xaaaacc271480]
/usr/bin/swift-frontend(+0xda410c)[0xaaaacc28410c]
/usr/bin/swift-frontend(+0xd940e0)[0xaaaacc2740e0]
/usr/bin/swift-frontend(+0xd92d14)[0xaaaacc272d14]
/usr/bin/swift-frontend(+0xc19064)[0xaaaacc0f9064]
/lib/aarch64-linux-gnu/libc.so.6(+0x273fc)[0xffff94ac73fc]
/lib/aarch64-linux-gnu/libc.so.6(__libc_start_main+0x98)[0xffff94ac74cc]
/usr/bin/swift-frontend(+0xc17db0)[0xaaaacc0f7db0]

error: fatalError

@dnadoba
Copy link
Contributor Author

dnadoba commented Apr 17, 2023

Could reduce it to this one line function:

func foo(sequence: some Sequence) {
    for _ in sequence {}
}
Crash log
# swift test --enable-code-coverage
Building for debugging...
error: compile command failed due to signal 6 (use -v to see invocation)
Broken instruction!
  br bb1                                          // id: %21
in scope
{

   parent: {
  
     parent: {
    /src/Sources/PlaygroundExecutbale/Foo.swift:1:6
       parent: @$s20PlaygroundExecutbale3foo8sequenceyx_tSTRzlF
      }
    
    }
  
  }
Previous, non-contiguous scope set by  %19 = unchecked_take_enum_data_addr %11 : $*Optional<(some Sequence).Element>, #Optional.some!enumelt // user: %20
in scope
{

   parent: {
  /src/Sources/PlaygroundExecutbale/Foo.swift:1:6
     parent: @$s20PlaygroundExecutbale3foo8sequenceyx_tSTRzlF
    }
  
  }
Please report a bug on bugs.swift.org
Pass -Xllvm -verify-di-holes=false to disable the verification
SIL verification failed: Basic block contains a non-contiguous lexical scope at -Onone: DS == LastSeenScope
Verifying instruction:
->   br bb1, loc "/src/Sources/PlaygroundExecutbale/Foo.swift":2:24, scope 0 // id: %21
In function:
sil_scope 1 { loc "/src/Sources/PlaygroundExecutbale/Foo.swift":1:6 parent @$s20PlaygroundExecutbale3foo8sequenceyx_tSTRzlF : $@convention(thin) <τ_0_0 where τ_0_0 : Sequence> (@in_guaranteed τ_0_0) -> () }
sil_scope 2 { loc "/src/Sources/PlaygroundExecutbale/Foo.swift":2:5 parent 1 }
sil_scope 3 { loc "/src/Sources/PlaygroundExecutbale/Foo.swift":2:23 parent 2 }

// foo<A>(sequence:), loc "/src/Sources/PlaygroundExecutbale/Foo.swift":1:6, scope 1
sil [ossa] @$s20PlaygroundExecutbale3foo8sequenceyx_tSTRzlF : $@convention(thin) <<anonymous> where <anonymous> : Sequence> (@in_guaranteed <anonymous>) -> () {
// %0 "sequence"                                  // users: %7, %1
bb0(%0 : $*some Sequence):
  debug_value %0 : $*some Sequence, let, name "sequence", argno 1, expr op_deref, loc "/src/Sources/PlaygroundExecutbale/Foo.swift":1:10, scope 1 // id: %1
  increment_profiler_counter 0, "$s20PlaygroundExecutbale3foo8sequenceyx_tSTRzlF", num_counters 2, hash 0, loc "/src/Sources/PlaygroundExecutbale/Foo.swift":1:35, scope 1 // id: %2
  %3 = alloc_box $<τ_0_0 where τ_0_0 : Sequence> { var τ_0_0.Iterator } <some Sequence>, var, name "$generator", loc "/src/Sources/PlaygroundExecutbale/Foo.swift":2:14, scope 1 // users: %24, %4
  %4 = begin_borrow [lexical] %3 : $<τ_0_0 where τ_0_0 : Sequence> { var τ_0_0.Iterator } <some Sequence>, loc "/src/Sources/PlaygroundExecutbale/Foo.swift":2:14, scope 1 // users: %23, %5
  %5 = project_box %4 : $<τ_0_0 where τ_0_0 : Sequence> { var τ_0_0.Iterator } <some Sequence>, 0, loc "/src/Sources/PlaygroundExecutbale/Foo.swift":2:14, scope 1 // users: %13, %9
  %6 = alloc_stack $some Sequence, loc "/src/Sources/PlaygroundExecutbale/Foo.swift":2:14, scope 2 // users: %10, %9, %7
  copy_addr %0 to [init] %6 : $*some Sequence, loc "/src/Sources/PlaygroundExecutbale/Foo.swift":2:14, scope 2 // id: %7
  %8 = witness_method $some Sequence, #Sequence.makeIterator : <Self where Self : Sequence> (__owned Self) -> () -> Self.Iterator : $@convention(witness_method: Sequence) <τ_0_0 where τ_0_0 : Sequence> (@in τ_0_0) -> @out τ_0_0.Iterator, scope 2 // user: %9
  %9 = apply %8<some Sequence>(%5, %6) : $@convention(witness_method: Sequence) <τ_0_0 where τ_0_0 : Sequence> (@in τ_0_0) -> @out τ_0_0.Iterator, loc "/src/Sources/PlaygroundExecutbale/Foo.swift":2:14, scope 2
  dealloc_stack %6 : $*some Sequence, loc "/src/Sources/PlaygroundExecutbale/Foo.swift":2:14, scope 2 // id: %10
  %11 = alloc_stack $Optional<(some Sequence).Element>, loc "/src/Sources/PlaygroundExecutbale/Foo.swift":2:5, scope 2 // users: %22, %19, %17, %15
  br bb1, loc "/src/Sources/PlaygroundExecutbale/Foo.swift":2:5, scope 2 // id: %12

bb1:                                              // Preds: bb2 bb0
  %13 = begin_access [modify] [unknown] %5 : $*(some Sequence).Iterator, loc "/src/Sources/PlaygroundExecutbale/Foo.swift":2:5, scope 2 // users: %16, %15
  %14 = witness_method $(some Sequence).Iterator, #IteratorProtocol.next : <Self where Self : IteratorProtocol> (inout Self) -> () -> Self.Element? : $@convention(witness_method: IteratorProtocol) <τ_0_0 where τ_0_0 : IteratorProtocol> (@inout τ_0_0) -> @out Optional<τ_0_0.Element>, scope 2 // user: %15
  %15 = apply %14<(some Sequence).Iterator>(%11, %13) : $@convention(witness_method: IteratorProtocol) <τ_0_0 where τ_0_0 : IteratorProtocol> (@inout τ_0_0) -> @out Optional<τ_0_0.Element>, loc "/src/Sources/PlaygroundExecutbale/Foo.swift":2:5, scope 2
  end_access %13 : $*(some Sequence).Iterator, loc * "/src/Sources/PlaygroundExecutbale/Foo.swift":2:5, scope 2 // id: %16
  switch_enum_addr %11 : $*Optional<(some Sequence).Element>, case #Optional.some!enumelt: bb2, case #Optional.none!enumelt: bb3, loc "/src/Sources/PlaygroundExecutbale/Foo.swift":2:5, scope 2 // id: %17

bb2:                                              // Preds: bb1
  increment_profiler_counter 1, "$s20PlaygroundExecutbale3foo8sequenceyx_tSTRzlF", num_counters 2, hash 0, loc "/src/Sources/PlaygroundExecutbale/Foo.swift":2:23, scope 3 // id: %18
  %19 = unchecked_take_enum_data_addr %11 : $*Optional<(some Sequence).Element>, #Optional.some!enumelt, loc "/src/Sources/PlaygroundExecutbale/Foo.swift":2:5, scope 2 // user: %20
  destroy_addr %19 : $*(some Sequence).Element, loc "/src/Sources/PlaygroundExecutbale/Foo.swift":2:24, scope 3 // id: %20
  br bb1, loc "/src/Sources/PlaygroundExecutbale/Foo.swift":2:24, scope 3 // id: %21

bb3:                                              // Preds: bb1
  dealloc_stack %11 : $*Optional<(some Sequence).Element>, loc "/src/Sources/PlaygroundExecutbale/Foo.swift":2:24, scope 2 // id: %22
  end_borrow %4 : $<τ_0_0 where τ_0_0 : Sequence> { var τ_0_0.Iterator } <some Sequence>, loc "/src/Sources/PlaygroundExecutbale/Foo.swift":2:24, scope 2 // id: %23
  destroy_value %3 : $<τ_0_0 where τ_0_0 : Sequence> { var τ_0_0.Iterator } <some Sequence>, loc "/src/Sources/PlaygroundExecutbale/Foo.swift":2:24, scope 2 // id: %24
  %25 = tuple (), loc "/src/Sources/PlaygroundExecutbale/Foo.swift":3:1, scope 2 // user: %26
  return %25 : $(), loc "/src/Sources/PlaygroundExecutbale/Foo.swift":3:1, scope 2 // id: %26
} // end sil function '$s20PlaygroundExecutbale3foo8sequenceyx_tSTRzlF'

Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.	Program arguments: /usr/bin/swift-frontend -frontend -c /src/Sources/PlaygroundExecutbale/Executable.swift -primary-file /src/Sources/PlaygroundExecutbale/Foo.swift -emit-dependencies-path /src/.build/aarch64-unknown-linux-gnu/debug/PlaygroundExecutbale.build/Foo.d -emit-reference-dependencies-path /src/.build/aarch64-unknown-linux-gnu/debug/PlaygroundExecutbale.build/Foo.swiftdeps -target aarch64-unknown-linux-gnu -Xllvm -aarch64-use-tbi -disable-objc-interop -I /src/.build/aarch64-unknown-linux-gnu/debug -color-diagnostics -enable-testing -g -module-cache-path /src/.build/aarch64-unknown-linux-gnu/debug/ModuleCache -profile-generate -profile-coverage-mapping -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -new-driver-path /usr/bin/swift-driver -entry-point-function-name PlaygroundExecutbale_main -warn-concurrency -empty-abi-descriptor -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -resource-dir /usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -fPIC -module-name PlaygroundExecutbale -o /src/.build/aarch64-unknown-linux-gnu/debug/PlaygroundExecutbale.build/Foo.swift.o -index-store-path /src/.build/aarch64-unknown-linux-gnu/debug/index/store -index-system-modules
1.	Swift version 5.9-dev (LLVM 8277d73ee656251, Swift 4de53fc2e7cee4d)
2.	Compiling with the current language version
3.	While evaluating request ASTLoweringRequest(Lowering AST to SIL for file "/src/Sources/PlaygroundExecutbale/Foo.swift")
4.	While silgen emitFunction SIL function "@$s20PlaygroundExecutbale3foo8sequenceyx_tSTRzlF".
 for 'foo(sequence:)' (at /src/Sources/PlaygroundExecutbale/Foo.swift:1:1)
5.	While verifying SIL function "@$s20PlaygroundExecutbale3foo8sequenceyx_tSTRzlF".
 for 'foo(sequence:)' (at /src/Sources/PlaygroundExecutbale/Foo.swift:1:1)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
/usr/bin/swift-frontend(+0x69824ec)[0xaaaab14d24ec]
/usr/bin/swift-frontend(+0x69804dc)[0xaaaab14d04dc]
/usr/bin/swift-frontend(+0x6982900)[0xaaaab14d2900]
linux-vdso.so.1(__kernel_rt_sigreturn+0x0)[0xffff8f16978c]
/lib/aarch64-linux-gnu/libc.so.6(+0x7f200)[0xffff8e63f200]
/lib/aarch64-linux-gnu/libc.so.6(raise+0x1c)[0xffff8e5fa67c]
/lib/aarch64-linux-gnu/libc.so.6(abort+0xe4)[0xffff8e5e7130]
/usr/bin/swift-frontend(+0x1d6a058)[0xaaaaac8ba058]
/usr/bin/swift-frontend(+0x1d6e530)[0xaaaaac8be530]
/usr/bin/swift-frontend(+0x1d6c868)[0xaaaaac8bc868]
/usr/bin/swift-frontend(+0x1d66300)[0xaaaaac8b6300]
/usr/bin/swift-frontend(+0x13804f0)[0xaaaaabed04f0]
/usr/bin/swift-frontend(+0x137fbfc)[0xaaaaabecfbfc]
/usr/bin/swift-frontend(+0x1381d6c)[0xaaaaabed1d6c]
/usr/bin/swift-frontend(+0x137e448)[0xaaaaabece448]
/usr/bin/swift-frontend(+0x1384174)[0xaaaaabed4174]
/usr/bin/swift-frontend(+0x14363f4)[0xaaaaabf863f4]
/usr/bin/swift-frontend(+0x1388384)[0xaaaaabed8384]
/usr/bin/swift-frontend(+0x1385630)[0xaaaaabed5630]
/usr/bin/swift-frontend(+0xd91310)[0xaaaaab8e1310]
/usr/bin/swift-frontend(+0xda410c)[0xaaaaab8f410c]
/usr/bin/swift-frontend(+0xd940e0)[0xaaaaab8e40e0]
/usr/bin/swift-frontend(+0xd92d14)[0xaaaaab8e2d14]
/usr/bin/swift-frontend(+0xc19064)[0xaaaaab769064]
/lib/aarch64-linux-gnu/libc.so.6(+0x273fc)[0xffff8e5e73fc]
/lib/aarch64-linux-gnu/libc.so.6(__libc_start_main+0x98)[0xffff8e5e74cc]
/usr/bin/swift-frontend(+0xc17db0)[0xaaaaab767db0]

error: fatalError

@AnthonyLatsis AnthonyLatsis added opaque types Feature → types: opaque types opaque parameter types Feature → types → opaque types: opaque parameter types labels Apr 17, 2023
@gwynne
Copy link
Contributor

gwynne commented Apr 20, 2023

🤦‍♀️ Sorry for the noise

@adrian-prantl
Copy link
Contributor

I believe that this is fixed on main now (at least I was unable to reproduce it).

@dnadoba
Copy link
Contributor Author

dnadoba commented Apr 23, 2023

Yes it is. Thanks!

@dnadoba dnadoba closed this as completed Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. code coverage Area → source tooling: code coverage compiler The Swift compiler itself crash Bug: A crash, i.e., an abnormal termination of software opaque parameter types Feature → types → opaque types: opaque parameter types opaque types Feature → types: opaque types SILGen Area → compiler: The SIL generation stage source tooling Area: IDE support, SourceKit, and other source tooling swift 5.9 verifier
Projects
None yet
Development

No branches or pull requests

4 participants