Update circuit_simulation.c