This is a somewhat general question about the architecture of programming languages and software.
I'm working on a human operating system and I'm using terminology from software development to talk about various "functions" and "procedures" that could be applicable to human behavior.
The question is: what do you usually call a procedure, which is made from other procedures when you're talking about programming languages or software?