All Downloads are FREE. Search and download functionalities are using the official Maven repository.

EOorg.EOeolang.EOmath.EOnumber$EOsignum Maven / Gradle / Ivy

/*
 * This file was auto-generated by eolang-maven-plugin
 * on 2022-07-25T15:16:23.401Z. Don't edit it,
 * your changes will be discarded on the next build.
 *
 * The EO sources were compiled to XMIR on
 * 2022-07-25T15:14:48.665082Z by the compiler v.0.24.0.
 */

package EOorg.EOeolang.EOmath;

import org.eolang.*;

//  
//    
//     
//      
//        
//          
//           
//         
//         0
//       
//       -1
//        
//          
//            
//             
//           
//           0
//         
//         0
//         1
//       
//     
//      
//        
//          
//           
//         
//         0.0
//       
//       -1.0
//        
//          
//            
//             
//           
//           0.0
//         
//         0.0
//         1.0
//       
//     
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
// 
@XmirObject(name = "number$signum", oname = "signum", source = "/home/r/repo/target/eo/04-pull/org/eolang/math/number.eo")
public final class EOnumber$EOsignum extends PhDefault {
  public EOnumber$EOsignum(final Phi sigma) {
    super(sigma);
    this.add("φ", new AtOnce(new AtComposite(this, rho -> {
      Phi ret_base = new PhMethod(new PhMethod(rho, "σ"), "is-int");
        ret_base = new PhLocated(ret_base, 173, 6);
      Phi ret = new PhMethod(ret_base, "if");
        ret = new PhLocated(ret, 172, 4);
      ret = new PhCopy(ret);
        Phi ret_1_base_base_base = new PhMethod(rho, "ρ");
          ret_1_base_base_base = new PhLocated(ret_1_base_base_base, 175, 8);
        Phi ret_1_base_base = new PhMethod(ret_1_base_base_base, "n");
          ret_1_base_base = new PhLocated(ret_1_base_base, 175, 9);
        Phi ret_1_base = new PhMethod(ret_1_base_base, "lt");
          ret_1_base = new PhLocated(ret_1_base, 175, 11);
        ret_1_base = new PhCopy(ret_1_base);
          Phi ret_1_base_1 = new EOorg.EOeolang.EOint(Phi.Φ);
            ret_1_base_1 = new PhLocated(ret_1_base_1, 175, 15);
            ret_1_base_1 = new PhWith(ret_1_base_1, "Δ", new Data.Value(0L));
          ret_1_base = new PhWith(ret_1_base, 0, ret_1_base_1);
        Phi ret_1 = new PhMethod(ret_1_base, "if");
          ret_1 = new PhLocated(ret_1, 174, 6);
        ret_1 = new PhCopy(ret_1);
          Phi ret_1_1 = new EOorg.EOeolang.EOint(Phi.Φ);
            ret_1_1 = new PhLocated(ret_1_1, 176, 8);
            ret_1_1 = new PhWith(ret_1_1, "Δ", new Data.Value(-1L));
          Phi ret_1_2_base_base_base = new PhMethod(rho, "ρ");
            ret_1_2_base_base_base = new PhLocated(ret_1_2_base_base_base, 178, 10);
          Phi ret_1_2_base_base = new PhMethod(ret_1_2_base_base_base, "n");
            ret_1_2_base_base = new PhLocated(ret_1_2_base_base, 178, 11);
          Phi ret_1_2_base = new PhMethod(ret_1_2_base_base, "eq");
            ret_1_2_base = new PhLocated(ret_1_2_base, 178, 13);
          ret_1_2_base = new PhCopy(ret_1_2_base);
            Phi ret_1_2_base_1 = new EOorg.EOeolang.EOint(Phi.Φ);
              ret_1_2_base_1 = new PhLocated(ret_1_2_base_1, 178, 17);
              ret_1_2_base_1 = new PhWith(ret_1_2_base_1, "Δ", new Data.Value(0L));
            ret_1_2_base = new PhWith(ret_1_2_base, 0, ret_1_2_base_1);
          Phi ret_1_2 = new PhMethod(ret_1_2_base, "if");
            ret_1_2 = new PhLocated(ret_1_2, 177, 8);
          ret_1_2 = new PhCopy(ret_1_2);
            Phi ret_1_2_1 = new EOorg.EOeolang.EOint(Phi.Φ);
              ret_1_2_1 = new PhLocated(ret_1_2_1, 179, 10);
              ret_1_2_1 = new PhWith(ret_1_2_1, "Δ", new Data.Value(0L));
            Phi ret_1_2_2 = new EOorg.EOeolang.EOint(Phi.Φ);
              ret_1_2_2 = new PhLocated(ret_1_2_2, 180, 10);
              ret_1_2_2 = new PhWith(ret_1_2_2, "Δ", new Data.Value(1L));
            ret_1_2 = new PhWith(ret_1_2, 0, ret_1_2_1);
            ret_1_2 = new PhWith(ret_1_2, 1, ret_1_2_2);
          ret_1 = new PhWith(ret_1, 0, ret_1_1);
          ret_1 = new PhWith(ret_1, 1, ret_1_2);
        Phi ret_2_base_base_base = new PhMethod(rho, "ρ");
          ret_2_base_base_base = new PhLocated(ret_2_base_base_base, 182, 8);
        Phi ret_2_base_base = new PhMethod(ret_2_base_base_base, "n");
          ret_2_base_base = new PhLocated(ret_2_base_base, 182, 9);
        Phi ret_2_base = new PhMethod(ret_2_base_base, "lt");
          ret_2_base = new PhLocated(ret_2_base, 182, 11);
        ret_2_base = new PhCopy(ret_2_base);
          Phi ret_2_base_1 = new EOorg.EOeolang.EOfloat(Phi.Φ);
            ret_2_base_1 = new PhLocated(ret_2_base_1, 182, 15);
            ret_2_base_1 = new PhWith(ret_2_base_1, "Δ", new Data.Value(0.0d));
          ret_2_base = new PhWith(ret_2_base, 0, ret_2_base_1);
        Phi ret_2 = new PhMethod(ret_2_base, "if");
          ret_2 = new PhLocated(ret_2, 181, 6);
        ret_2 = new PhCopy(ret_2);
          Phi ret_2_1 = new EOorg.EOeolang.EOfloat(Phi.Φ);
            ret_2_1 = new PhLocated(ret_2_1, 183, 8);
            ret_2_1 = new PhWith(ret_2_1, "Δ", new Data.Value(-1.0d));
          Phi ret_2_2_base_base_base = new PhMethod(rho, "ρ");
            ret_2_2_base_base_base = new PhLocated(ret_2_2_base_base_base, 185, 10);
          Phi ret_2_2_base_base = new PhMethod(ret_2_2_base_base_base, "n");
            ret_2_2_base_base = new PhLocated(ret_2_2_base_base, 185, 11);
          Phi ret_2_2_base = new PhMethod(ret_2_2_base_base, "eq");
            ret_2_2_base = new PhLocated(ret_2_2_base, 185, 13);
          ret_2_2_base = new PhCopy(ret_2_2_base);
            Phi ret_2_2_base_1 = new EOorg.EOeolang.EOfloat(Phi.Φ);
              ret_2_2_base_1 = new PhLocated(ret_2_2_base_1, 185, 17);
              ret_2_2_base_1 = new PhWith(ret_2_2_base_1, "Δ", new Data.Value(0.0d));
            ret_2_2_base = new PhWith(ret_2_2_base, 0, ret_2_2_base_1);
          Phi ret_2_2 = new PhMethod(ret_2_2_base, "if");
            ret_2_2 = new PhLocated(ret_2_2, 184, 8);
          ret_2_2 = new PhCopy(ret_2_2);
            Phi ret_2_2_1 = new EOorg.EOeolang.EOfloat(Phi.Φ);
              ret_2_2_1 = new PhLocated(ret_2_2_1, 186, 10);
              ret_2_2_1 = new PhWith(ret_2_2_1, "Δ", new Data.Value(0.0d));
            Phi ret_2_2_2 = new EOorg.EOeolang.EOfloat(Phi.Φ);
              ret_2_2_2 = new PhLocated(ret_2_2_2, 187, 10);
              ret_2_2_2 = new PhWith(ret_2_2_2, "Δ", new Data.Value(1.0d));
            ret_2_2 = new PhWith(ret_2_2, 0, ret_2_2_1);
            ret_2_2 = new PhWith(ret_2_2, 1, ret_2_2_2);
          ret_2 = new PhWith(ret_2, 0, ret_2_1);
          ret_2 = new PhWith(ret_2, 1, ret_2_2);
        ret = new PhWith(ret, 0, ret_1);
        ret = new PhWith(ret, 1, ret_2);
      return ret;
    })));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy