A controlled variable and a target in each of a variable valve event and
lift control apparatus and a variable valve timing control apparatus are
input, to calculate target opening timing of an intake valve corresponding
to the target and also to calculate actual opening timing of the intake
valve corresponding to the controlled variable, to correct ignition timing
based on a deviation between the target opening timing and the actual
opening timing.