Fly-by-wire technology provides the possibility to protect aircraft from entering a stall condition.
This video shows how the stall protection at low speed is tuned during several flight tests with different maneuvers performed.
This allows for certain parameters to be tuned such as the maximum angle of attack.