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: "empty"
                type {
                  expression_pattern {
                    expression {
                      struct_type_literal {
                      }
                    }
                  }
                }
              }
            }
            init {
              struct_type_literal {
              }
            }
          }
        }
        statements {
          assign {
            lhs {
              identifier {
                name: "empty"
              }
            }
            rhs {
              struct_type_literal {
              }
            }
          }
        }
        statements {
          if_statement {
            condition {
              primitive_operator {
                op: Not
                arguments {
                  primitive_operator {
                    op: Eq
                    arguments {
                      identifier {
                        name: "empty"
                      }
                    }
                    arguments {
                      struct_type_literal {
                      }
                    }
                  }
                }
              }
            }
            then_block {
              statements {
                return_statement {
                  expression {
                    int_literal {
                      value: 1
                    }
                  }
                }
              }
            }
          }
        }
        statements {
          match {
            expression {
              identifier {
                name: "empty"
              }
            }
            clauses {
              pattern {
                expression_pattern {
                  expression {
                    struct_type_literal {
                    }
                  }
                }
              }
              statement {
                block {
                  statements {
                    return_statement {
                      expression {
                        int_literal {
                          value: 0
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
        statements {
          return_statement {
            expression {
              int_literal {
                value: 1
              }
            }
          }
        }
      }
    }
  }
}
