我试图在frama-c中验证这一点。我不明白为什么后期条件无法验证。有谁可以帮助我吗? 我最初做了一个基础案例和归纳案例的公理。问题是后置条件未经验证。所有循环不变都是真的。
(select * from mytable where group_id = 1)
union all
(select * from mytable where group_id = 2 order by compulsary = 1 desc, eot desc limit 2)
union all
(select * from mytable where group_id = 3 order by compulsary = 1 desc, eot desc limit 1)
union all
(select * from mytable where group_id = 4 order by compulsary = 1 desc, eot desc limit 1)
order by group_id, no, code
;