compilation_unit {
  package_statement {
    package_name: "ExplorerTest"
  }
  is_api: true
  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 {
              struct_literal {
                fields {
                  name: "x"
                  expression {
                    int_literal {
                      value: 0
                    }
                  }
                }
                fields {
                  name: "y"
                  expression {
                    int_literal {
                      value: 1
                    }
                  }
                }
              }
            }
          }
        }
        statements {
          assign {
            lhs {
              identifier {
                name: "x"
              }
            }
            rhs {
              struct_literal {
                fields {
                  name: "x"
                  expression {
                    int_literal {
                      value: 5
                    }
                  }
                }
                fields {
                  name: "y"
                  expression {
                    primitive_operator {
                      op: Neg
                      arguments {
                        int_literal {
                          value: 5
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
        statements {
          return_statement {
            expression {
              primitive_operator {
                op: Add
                arguments {
                  simple_member_access {
                    field: "x"
                    object {
                      identifier {
                        name: "x"
                      }
                    }
                  }
                }
                arguments {
                  simple_member_access {
                    field: "y"
                    object {
                      identifier {
                        name: "x"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
