compilation_unit {
  package_statement {
    package_name: "ExplorerTest"
  }
  is_api: true
  declarations {
    variable {
      binding {
        name: "y"
        type {
          expression_pattern {
            expression {
              int_type_literal {
              }
            }
          }
        }
      }
    }
  }
  declarations {
    function {
      name: "AssignIntTo"
      param_pattern {
        fields {
          binding_pattern {
            name: "x"
            type {
              expression_pattern {
                expression {
                  int_type_literal {
                  }
                }
              }
            }
          }
        }
        fields {
          binding_pattern {
            name: "destination"
            type {
              expression_pattern {
                expression {
                  operator {
                    op: Ptr
                    arguments {
                      int_type_literal {
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
      return_term {
        kind: Omitted
      }
      body {
        statements {
          assign {
            lhs {
              operator {
                op: Deref
                arguments {
                  identifier {
                    name: "destination"
                  }
                }
              }
            }
            rhs {
              identifier {
                name: "x"
              }
            }
          }
        }
      }
    }
  }
  declarations {
    function {
      name: "Main"
      param_pattern {
      }
      return_term {
        kind: Expression
        type {
          int_type_literal {
          }
        }
      }
      body {
        statements {
          expression_statement {
            expression {
              call {
                function {
                  identifier {
                    name: "AssignIntTo"
                  }
                }
                argument {
                  tuple_literal {
                    fields {
                      int_literal {
                        value: 42
                      }
                    }
                    fields {
                      operator {
                        op: AddressOf
                        arguments {
                          identifier {
                            name: "y"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
        statements {
          return_expression_statement {
            expression {
              identifier {
                name: "y"
              }
            }
          }
        }
      }
    }
  }
}
