
spoon.examples.distcalc.src.Fac Maven / Gradle / Ivy
The newest version!
package spoon.examples.distcalc.src;
import spoon.examples.distcalc.annotation.Node;
public abstract class Fac implements Services {
@SuppressWarnings("unused")
@Node
long fac01(long n) {
pre: if (n == 0 || n == 1);
fun: fac(n);
return 1;
}
@SuppressWarnings("unused")
@Node
long facN(long n) {
pre: if (n > 1);
fun: fac(n);
return n * fac(n - 1);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy