compilation_unit {
  package_statement {
    package_name: "ExplorerTest"
  }
  is_api: true
  declarations {
    function {
      name: "F"
      param_pattern {
        fields {
          binding_pattern {
            name: "n"
            type {
              expression_pattern {
                expression {
                  int_type_literal {
                  }
                }
              }
            }
          }
        }
        fields {
          binding_pattern {
            name: "p"
            type {
              expression_pattern {
                expression {
                  primitive_operator {
                    op: Ptr
                    arguments {
                      int_type_literal {
                      }
                    }
                  }
                }
              }
            }
          }
        }
        fields {
          binding_pattern {
            name: "q"
            type {
              expression_pattern {
                expression {
                  primitive_operator {
                    op: Ptr
                    arguments {
                      primitive_operator {
                        op: Ptr
                        arguments {
                          primitive_operator {
                            op: Ptr
                            arguments {
                              int_type_literal {
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
      return_term {
        kind: Expression
        type {
          primitive_operator {
            op: Ptr
            arguments {
              int_type_literal {
              }
            }
          }
        }
      }
      body {
        statements {
          variable_definition {
            pattern {
              binding_pattern {
                name: "a"
                type {
                  expression_pattern {
                    expression {
                      int_type_literal {
                      }
                    }
                  }
                }
              }
            }
            init {
              primitive_operator {
                op: Mul
                arguments {
                  identifier {
                    name: "n"
                  }
                }
                arguments {
                  primitive_operator {
                    op: Deref
                    arguments {
                      identifier {
                        name: "p"
                      }
                    }
                  }
                }
              }
            }
          }
        }
        statements {
          variable_definition {
            pattern {
              binding_pattern {
                name: "b"
                type {
                  expression_pattern {
                    expression {
                      int_type_literal {
                      }
                    }
                  }
                }
              }
            }
            init {
              primitive_operator {
                op: Mul
                arguments {
                  identifier {
                    name: "a"
                  }
                }
                arguments {
                  identifier {
                    name: "n"
                  }
                }
              }
            }
          }
        }
        statements {
          assign {
            lhs {
              primitive_operator {
                op: Deref
                arguments {
                  identifier {
                    name: "p"
                  }
                }
              }
            }
            rhs {
              primitive_operator {
                op: Mul
                arguments {
                  identifier {
                    name: "b"
                  }
                }
                arguments {
                  primitive_operator {
                    op: Deref
                    arguments {
                      identifier {
                        name: "p"
                      }
                    }
                  }
                }
              }
            }
          }
        }
        statements {
          assign {
            lhs {
              primitive_operator {
                op: Deref
                arguments {
                  primitive_operator {
                    op: Deref
                    arguments {
                      identifier {
                        name: "q"
                      }
                    }
                  }
                }
              }
            }
            rhs {
              identifier {
                name: "p"
              }
            }
          }
        }
        statements {
          return_statement {
            expression {
              primitive_operator {
                op: Deref
                arguments {
                  primitive_operator {
                    op: Deref
                    arguments {
                      identifier {
                        name: "q"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  declarations {
    function {
      name: "Main"
      param_pattern {
      }
      return_term {
        kind: Expression
        type {
          int_type_literal {
          }
        }
      }
      body {
        statements {
          return_statement {
            expression {
              int_literal {
                value: 0
              }
            }
          }
        }
      }
    }
  }
}
