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

EOorg.EOeolang.EOfloat$EOsignum Maven / Gradle / Ivy

/*
 * This file was auto-generated by eolang-maven-plugin
 * on 2022-05-18T09:52:42.909Z. Don't edit it,
 * your changes will be discarded on the next build.
 *
 * The EO sources were compiled to XMIR on
 * 2022-05-18T09:51:40.771265Z by the compiler v.0.22.2.
 */

package EOorg.EOeolang;

import org.eolang.*;

//  
//    
//      
//       
//       0.0
//     
//     -1.0
//      
//        
//         
//         0.0
//       
//       0.0
//       1.0
//     
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
//   
// 
@XmirObject(name = "float$signum", oname = "signum", source = "/home/r/repo/target/eo/04-pull/org/eolang/float.eo")
public final class EOfloat$EOsignum extends PhDefault {
  public EOfloat$EOsignum(final Phi sigma) {
    super(sigma);
    this.add("φ", new AtOnce(new AtComposite(this, rho -> {
      Phi ret_base_base = new PhMethod(rho, "ρ");
        ret_base_base = new PhLocated(ret_base_base, 71, 6);
      Phi ret_base = new PhMethod(ret_base_base, "less");
      ret_base = new PhCopy(ret_base);
        Phi ret_base_1 = new EOfloat(rho);
          ret_base_1 = new PhLocated(ret_base_1, 71, 13);
          ret_base_1 = new PhWith(ret_base_1, "Δ", new Data.Value(0.0d));
        ret_base = new PhWith(ret_base, 0, ret_base_1);
      Phi ret = new PhMethod(ret_base, "if");
        ret = new PhLocated(ret, 70, 4);
      ret = new PhCopy(ret);
        Phi ret_1 = new EOfloat(rho);
          ret_1 = new PhLocated(ret_1, 72, 6);
          ret_1 = new PhWith(ret_1, "Δ", new Data.Value(-1.0d));
        Phi ret_2_base_base = new PhMethod(rho, "ρ");
          ret_2_base_base = new PhLocated(ret_2_base_base, 74, 8);
        Phi ret_2_base = new PhMethod(ret_2_base_base, "eq");
        ret_2_base = new PhCopy(ret_2_base);
          Phi ret_2_base_1 = new EOfloat(rho);
            ret_2_base_1 = new PhLocated(ret_2_base_1, 74, 13);
            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, 73, 6);
        ret_2 = new PhCopy(ret_2);
          Phi ret_2_1 = new EOfloat(rho);
            ret_2_1 = new PhLocated(ret_2_1, 75, 8);
            ret_2_1 = new PhWith(ret_2_1, "Δ", new Data.Value(0.0d));
          Phi ret_2_2 = new EOfloat(rho);
            ret_2_2 = new PhLocated(ret_2_2, 76, 8);
            ret_2_2 = new PhWith(ret_2_2, "Δ", new Data.Value(1.0d));
          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