compilation_unit {
  package_statement {
    package_name: "ExplorerTest"
  }
  is_api: true
  declarations {
    impl {
      kind: ExternalImpl
      impl_type {
        struct_literal {
        }
      }
      interface {
        call {
          function {
            identifier {
              name: "EqWith"
            }
          }
          argument {
            tuple_literal {
              fields {
                struct_literal {
                }
              }
            }
          }
        }
      }
      members {
        function {
          name {
            name: "Equal"
          }
          self_pattern {
            binding_pattern {
              name: "self"
              type {
                expression_pattern {
                  expression {
                    identifier {
                      name: "Self"
                    }
                  }
                }
              }
            }
          }
          param_pattern {
            fields {
              binding_pattern {
                name: "other"
                type {
                  expression_pattern {
                    expression {
                      identifier {
                        name: "Self"
                      }
                    }
                  }
                }
              }
            }
          }
          return_term {
            kind: Expression
            type {
              bool_type_literal {
              }
            }
          }
          body {
            statements {
              return_expression_statement {
                expression {
                  bool_literal {
                    value: true
                  }
                }
              }
            }
          }
        }
      }
      members {
        function {
          name {
            name: "NotEqual"
          }
          self_pattern {
            binding_pattern {
              name: "self"
              type {
                expression_pattern {
                  expression {
                    identifier {
                      name: "Self"
                    }
                  }
                }
              }
            }
          }
          param_pattern {
            fields {
              binding_pattern {
                name: "other"
                type {
                  expression_pattern {
                    expression {
                      identifier {
                        name: "Self"
                      }
                    }
                  }
                }
              }
            }
          }
          return_term {
            kind: Expression
            type {
              bool_type_literal {
              }
            }
          }
          body {
            statements {
              return_expression_statement {
                expression {
                  bool_literal {
                    value: false
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  declarations {
    function {
      name {
        name: "Main"
      }
      param_pattern {
      }
      return_term {
        kind: Expression
        type {
          int_type_literal {
          }
        }
      }
      body {
        statements {
          variable_definition {
            pattern {
              binding_pattern {
                name: "empty"
                type {
                  auto_pattern {
                  }
                }
              }
            }
            init {
              struct_literal {
              }
            }
            is_returned: false
          }
        }
        statements {
          if_statement {
            condition {
              operator {
                op: Eq
                arguments {
                  identifier {
                    name: "empty"
                  }
                }
                arguments {
                  struct_literal {
                  }
                }
              }
            }
            then_block {
              statements {
                return_expression_statement {
                  expression {
                    int_literal {
                      value: 0
                    }
                  }
                }
              }
            }
            else_block {
              statements {
                return_expression_statement {
                  expression {
                    int_literal {
                      value: 1
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
