compilation_unit {
  package_statement {
    package_name: "ExplorerTest"
  }
  is_api: true
  declarations {
    class_declaration {
      name: "LazyNe"
      members {
        variable {
          binding {
            name: "v1"
            type {
              expression_pattern {
                expression {
                  int_type_literal {
                  }
                }
              }
            }
          }
        }
      }
      members {
        variable {
          binding {
            name: "v2"
            type {
              expression_pattern {
                expression {
                  int_type_literal {
                  }
                }
              }
            }
          }
        }
      }
      members {
        impl {
          kind: InternalImpl
          impl_type {
            identifier {
              name: "Self"
            }
          }
          interface {
            call {
              function {
                identifier {
                  name: "ImplicitAs"
                }
              }
              argument {
                tuple_literal {
                  fields {
                    bool_type_literal {
                    }
                  }
                }
              }
            }
          }
          members {
            function {
              name: "Convert"
              me_pattern {
                binding_pattern {
                  name: "me"
                  type {
                    expression_pattern {
                      expression {
                        identifier {
                          name: "Self"
                        }
                      }
                    }
                  }
                }
              }
              param_pattern {
              }
              return_term {
                kind: Expression
                type {
                  bool_type_literal {
                  }
                }
              }
              body {
                statements {
                  return_expression_statement {
                    expression {
                      operator {
                        op: Not
                        arguments {
                          operator {
                            op: Eq
                            arguments {
                              simple_member_access {
                                field: "v1"
                                object {
                                  identifier {
                                    name: "me"
                                  }
                                }
                              }
                            }
                            arguments {
                              simple_member_access {
                                field: "v2"
                                object {
                                  identifier {
                                    name: "me"
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
      members {
        function {
          name: "Make"
          param_pattern {
            fields {
              binding_pattern {
                name: "v1"
                type {
                  expression_pattern {
                    expression {
                      int_type_literal {
                      }
                    }
                  }
                }
              }
            }
            fields {
              binding_pattern {
                name: "v2"
                type {
                  expression_pattern {
                    expression {
                      int_type_literal {
                      }
                    }
                  }
                }
              }
            }
          }
          return_term {
            kind: Expression
            type {
              identifier {
                name: "Self"
              }
            }
          }
          body {
            statements {
              return_expression_statement {
                expression {
                  struct_literal {
                    fields {
                      name: "v1"
                      expression {
                        identifier {
                          name: "v1"
                        }
                      }
                    }
                    fields {
                      name: "v2"
                      expression {
                        identifier {
                          name: "v2"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  declarations {
    function {
      name: "Main"
      param_pattern {
      }
      return_term {
        kind: Expression
        type {
          int_type_literal {
          }
        }
      }
      body {
        statements {
          variable_definition {
            pattern {
              binding_pattern {
                name: "x"
                type {
                  auto_pattern {
                  }
                }
              }
            }
            init {
              int_literal {
                value: 2
              }
            }
            is_returned: false
          }
        }
        statements {
          while_statement {
            condition {
              call {
                function {
                  simple_member_access {
                    field: "Make"
                    object {
                      identifier {
                        name: "LazyNe"
                      }
                    }
                  }
                }
                argument {
                  tuple_literal {
                    fields {
                      identifier {
                        name: "x"
                      }
                    }
                    fields {
                      int_literal {
                        value: 0
                      }
                    }
                  }
                }
              }
            }
            body {
              statements {
                assign {
                  lhs {
                    identifier {
                      name: "x"
                    }
                  }
                  rhs {
                    operator {
                      op: Sub
                      arguments {
                        identifier {
                          name: "x"
                        }
                      }
                      arguments {
                        int_literal {
                          value: 1
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
        statements {
          return_expression_statement {
            expression {
              identifier {
                name: "x"
              }
            }
          }
        }
      }
    }
  }
}
