compilation_unit {
  package_statement {
    package_name: "ExplorerTest"
  }
  is_api: true
  declarations {
    function {
      name: "identFn"
      param_pattern {
        fields {
          binding_pattern {
            name: "x"
            type {
              expression_pattern {
                expression {
                  int_type_literal {
                  }
                }
              }
            }
          }
        }
      }
      return_term {
        kind: Expression
        type {
          int_type_literal {
          }
        }
      }
      body {
        statements {
          return_expression_statement {
            expression {
              identifier {
                name: "x"
              }
            }
          }
        }
      }
    }
  }
  declarations {
    function {
      name: "Main"
      param_pattern {
      }
      return_term {
        kind: Expression
        type {
          int_type_literal {
          }
        }
      }
      body {
        statements {
          variable_definition {
            pattern {
              binding_pattern {
                name: "x"
                type {
                  expression_pattern {
                    expression {
                      int_type_literal {
                      }
                    }
                  }
                }
              }
            }
            init {
              operator {
                op: Mod
                arguments {
                  int_literal {
                    value: 7
                  }
                }
                arguments {
                  int_literal {
                    value: 2
                  }
                }
              }
            }
            is_returned: false
          }
        }
        statements {
          if_statement {
            condition {
              operator {
                op: Not
                arguments {
                  operator {
                    op: Eq
                    arguments {
                      identifier {
                        name: "x"
                      }
                    }
                    arguments {
                      int_literal {
                        value: 1
                      }
                    }
                  }
                }
              }
            }
            then_block {
              statements {
                return_expression_statement {
                  expression {
                    int_literal {
                      value: 1
                    }
                  }
                }
              }
            }
          }
        }
        statements {
          assign {
            lhs {
              identifier {
                name: "x"
              }
            }
            rhs {
              operator {
                op: Mod
                arguments {
                  operator {
                    op: Mul
                    arguments {
                      int_literal {
                        value: 3
                      }
                    }
                    arguments {
                      int_literal {
                        value: 3
                      }
                    }
                  }
                }
                arguments {
                  int_literal {
                    value: 3
                  }
                }
              }
            }
          }
        }
        statements {
          if_statement {
            condition {
              operator {
                op: Not
                arguments {
                  operator {
                    op: Eq
                    arguments {
                      identifier {
                        name: "x"
                      }
                    }
                    arguments {
                      int_literal {
                        value: 0
                      }
                    }
                  }
                }
              }
            }
            then_block {
              statements {
                return_expression_statement {
                  expression {
                    int_literal {
                      value: 2
                    }
                  }
                }
              }
            }
          }
        }
        statements {
          assign {
            lhs {
              identifier {
                name: "x"
              }
            }
            rhs {
              operator {
                op: Mod
                arguments {
                  operator {
                    op: Add
                    arguments {
                      operator {
                        op: Add
                        arguments {
                          operator {
                            op: Add
                            arguments {
                              int_literal {
                                value: 4
                              }
                            }
                            arguments {
                              int_literal {
                                value: 4
                              }
                            }
                          }
                        }
                        arguments {
                          int_literal {
                            value: 4
                          }
                        }
                      }
                    }
                    arguments {
                      int_literal {
                        value: 4
                      }
                    }
                  }
                }
                arguments {
                  operator {
                    op: Add
                    arguments {
                      int_literal {
                        value: 2
                      }
                    }
                    arguments {
                      int_literal {
                        value: 1
                      }
                    }
                  }
                }
              }
            }
          }
        }
        statements {
          if_statement {
            condition {
              operator {
                op: Not
                arguments {
                  operator {
                    op: Eq
                    arguments {
                      identifier {
                        name: "x"
                      }
                    }
                    arguments {
                      int_literal {
                        value: 1
                      }
                    }
                  }
                }
              }
            }
            then_block {
              statements {
                return_expression_statement {
                  expression {
                    int_literal {
                      value: 3
                    }
                  }
                }
              }
            }
          }
        }
        statements {
          assign {
            lhs {
              identifier {
                name: "x"
              }
            }
            rhs {
              operator {
                op: Mod
                arguments {
                  int_literal {
                    value: 15
                  }
                }
                arguments {
                  operator {
                    op: Add
                    arguments {
                      call {
                        function {
                          identifier {
                            name: "identFn"
                          }
                        }
                        argument {
                          tuple_literal {
                            fields {
                              int_literal {
                                value: 2
                              }
                            }
                          }
                        }
                      }
                    }
                    arguments {
                      int_literal {
                        value: 1
                      }
                    }
                  }
                }
              }
            }
          }
        }
        statements {
          if_statement {
            condition {
              operator {
                op: Not
                arguments {
                  operator {
                    op: Eq
                    arguments {
                      identifier {
                        name: "x"
                      }
                    }
                    arguments {
                      int_literal {
                        value: 0
                      }
                    }
                  }
                }
              }
            }
            then_block {
              statements {
                return_expression_statement {
                  expression {
                    int_literal {
                      value: 4
                    }
                  }
                }
              }
            }
          }
        }
        statements {
          assign {
            lhs {
              identifier {
                name: "x"
              }
            }
            rhs {
              operator {
                op: Mod
                arguments {
                  operator {
                    op: Neg
                    arguments {
                      int_literal {
                        value: 15
                      }
                    }
                  }
                }
                arguments {
                  int_literal {
                    value: 7
                  }
                }
              }
            }
          }
        }
        statements {
          if_statement {
            condition {
              operator {
                op: Not
                arguments {
                  operator {
                    op: Eq
                    arguments {
                      identifier {
                        name: "x"
                      }
                    }
                    arguments {
                      operator {
                        op: Neg
                        arguments {
                          int_literal {
                            value: 1
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
            then_block {
              statements {
                return_expression_statement {
                  expression {
                    int_literal {
                      value: 5
                    }
                  }
                }
              }
            }
          }
        }
        statements {
          assign {
            lhs {
              identifier {
                name: "x"
              }
            }
            rhs {
              operator {
                op: Mod
                arguments {
                  int_literal {
                    value: 15
                  }
                }
                arguments {
                  operator {
                    op: Neg
                    arguments {
                      int_literal {
                        value: 7
                      }
                    }
                  }
                }
              }
            }
          }
        }
        statements {
          if_statement {
            condition {
              operator {
                op: Not
                arguments {
                  operator {
                    op: Eq
                    arguments {
                      identifier {
                        name: "x"
                      }
                    }
                    arguments {
                      int_literal {
                        value: 1
                      }
                    }
                  }
                }
              }
            }
            then_block {
              statements {
                return_expression_statement {
                  expression {
                    int_literal {
                      value: 6
                    }
                  }
                }
              }
            }
          }
        }
        statements {
          assign {
            lhs {
              identifier {
                name: "x"
              }
            }
            rhs {
              operator {
                op: Mod
                arguments {
                  operator {
                    op: Neg
                    arguments {
                      int_literal {
                        value: 15
                      }
                    }
                  }
                }
                arguments {
                  operator {
                    op: Neg
                    arguments {
                      call {
                        function {
                          identifier {
                            name: "identFn"
                          }
                        }
                        argument {
                          tuple_literal {
                            fields {
                              int_literal {
                                value: 7
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
        statements {
          if_statement {
            condition {
              operator {
                op: Not
                arguments {
                  operator {
                    op: Eq
                    arguments {
                      identifier {
                        name: "x"
                      }
                    }
                    arguments {
                      operator {
                        op: Neg
                        arguments {
                          int_literal {
                            value: 1
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
            then_block {
              statements {
                return_expression_statement {
                  expression {
                    int_literal {
                      value: 7
                    }
                  }
                }
              }
            }
          }
        }
        statements {
          return_expression_statement {
            expression {
              int_literal {
                value: 0
              }
            }
          }
        }
      }
    }
  }
}
