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: "y"
                type {
                  expression_pattern {
                    expression {
                      int_type_literal {
                      }
                    }
                  }
                }
              }
            }
            init {
              int_literal {
                value: 0
              }
            }
          }
        }
        statements {
          continuation {
            name: "k"
            body {
              statements {
                variable_definition {
                  pattern {
                    binding_pattern {
                      name: "x"
                      type {
                        expression_pattern {
                          expression {
                            int_type_literal {
                            }
                          }
                        }
                      }
                    }
                  }
                  init {
                    int_literal {
                      value: 0
                    }
                  }
                }
              }
              statements {
                assign {
                  lhs {
                    identifier {
                      name: "x"
                    }
                  }
                  rhs {
                    primitive_operator {
                      op: Add
                      arguments {
                        identifier {
                          name: "x"
                        }
                      }
                      arguments {
                        int_literal {
                          value: 1
                        }
                      }
                    }
                  }
                }
              }
              statements {
                await_statement {
                }
              }
              statements {
                assign {
                  lhs {
                    identifier {
                      name: "x"
                    }
                  }
                  rhs {
                    primitive_operator {
                      op: Add
                      arguments {
                        identifier {
                          name: "x"
                        }
                      }
                      arguments {
                        int_literal {
                          value: 2
                        }
                      }
                    }
                  }
                }
              }
              statements {
                assign {
                  lhs {
                    identifier {
                      name: "y"
                    }
                  }
                  rhs {
                    identifier {
                      name: "x"
                    }
                  }
                }
              }
            }
          }
        }
        statements {
          run {
            argument {
              identifier {
                name: "k"
              }
            }
          }
        }
        statements {
          run {
            argument {
              identifier {
                name: "k"
              }
            }
          }
        }
        statements {
          return_statement {
            expression {
              identifier {
                name: "y"
              }
            }
          }
        }
      }
    }
  }
}
