1. A method for automatically generating a component fault tree of a safety-critical system, the method comprising: providing a continuous function chart for each system component of the safety-critical system and generating for each provided continuous function chart a corresponding component fault tree element, wherein inports and outports of the component fault tree element are generated and interconnected based on unique names of inputs and outputs of the corresponding continuous function chart of the respective system component; generating, by a processor, input failure modes and output failure modes for each generated component fault tree element based on generic mapping between connector types in the continuous function chart and failure types of failure modes of the respective component fault tree element; and connecting, by the processor, for each generated component fault tree element of the system component the input failure modes of the respective component fault tree element to output failure modes of the respective component fault tree element via internal failure propagation paths based on interconnected function blocks of the continuous function chart of the respective system component.