Metrics

Synthetic results


Defined function (18):
  Timer_start (3 calls); main (0 call); Timer_elapsedTime (2 calls); Timer_tick (2 calls); Limiter_out (3 calls); Ramp_out (2 calls); Ramp_getDir (1 call); Sleep (1 call); PT1_Filter (3 calls); Time (3 calls); Ramp_getValue (0 call); Ramp_targetReached (0 call); RoCo_init (1 call); RoCo_process (1 call); Sim_process (1 call); Interpolate_from_curve (3 calls); Sim_init (1 call); Turn_on_delay (3 calls);

Undefined functions (3):
  fabs (9 calls); fprintf (2 calls); exp (1 call);

Potential entry points (3):
  main; Ramp_getValue; Ramp_targetReached;

SLOC: (420)
Number of if statements: (100)
Number of assignments: (207)
Number of loops: (2)
Number of calls: (42)
Number of gotos: (13)
Number of pointer access: (50)

Detailed results


sim.c


Function #If stmts
#Assignments
#Loops
#Calls
#Gotos
#Pointer accesses
#Exits
Cyclomatic value
Sim_process 4 22 0 2 1 0 1 5
Sim_init 0 11 0 0 0 0 1 1

roco.c


Function #If stmts
#Assignments
#Loops
#Calls
#Gotos
#Pointer accesses
#Exits
Cyclomatic value
RoCo_init 0 34 0 0 0 0 1 1
RoCo_process 71 85 0 29 11 0 1 72

main.c


Function #If stmts
#Assignments
#Loops
#Calls
#Gotos
#Pointer accesses
#Exits
Cyclomatic value
main 7 20 1 10 0 0 1 9

impls.c


Function #If stmts
#Assignments
#Loops
#Calls
#Gotos
#Pointer accesses
#Exits
Cyclomatic value
PT1_Filter 1 3 0 1 0 4 1 2
Interpolate_from_curve 4 6 1 0 0 14 1 6
Turn_on_delay 2 5 0 0 0 4 1 3
Timer_start 0 1 0 0 0 1 1 1
Timer_elapsedTime 0 1 0 0 0 1 1 1
Timer_tick 0 1 0 0 0 2 1 1
Sleep 0 1 0 0 0 0 1 1
Time 0 0 0 0 0 0 1 1
Ramp_out 9 11 0 0 1 20 1 10
Ramp_getDir 0 1 0 0 0 1 1 1
Ramp_getValue 0 1 0 0 0 1 1 1
Ramp_targetReached 0 1 0 0 0 2 1 1
Limiter_out 2 3 0 0 0 0 1 3