]> matita.cs.unibo.it Git - pkg-cerco/frama-c-cost-plugin.git/blob - plugin/tests/success/fact.c
Imported Upstream version 0.1
[pkg-cerco/frama-c-cost-plugin.git] / plugin / tests / success / fact.c
1
2 int fact (int n) {
3   int i, res = 1;
4
5   for (i = 1 ; i <= n ; i++) res *= i;
6
7   return res;
8 }
9
10 int main () {
11   return (fact(10));
12 }