```plantuml
@startuml
[*] --> check : requestGenerate
state "检查中" as check{
    [*] --> ic
    ic --> [*]:[success]
    state "输入检查中" as ic
    ||
    [*] --> rc
    rc --> [*]:[success]
    state "相关性检查中" as rc
}
state "生成中" as generate

check --> [*] : [fail]
check --> generate
generate --> [*]:[fail]

state "已保存" as saved
state "已生成" as generated
generate --> generated : [success]
generated --> [*] : [fail]
generated --> saved : save
@enduml
```