arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1405.7962cs.PLcs.LO
收藏

用优化模理论和巧妙的程序语义编码计算最坏执行时间

How to Compute Worst-Case Execution Time by Optimization Modulo Theory and a Clever Encoding of Program Semantics

Julien Henry, Mihail Asavoae, David Monniaux, Claire Maïza

摘要:

在具有硬实时约束的系统中,有必要计算程序的最坏情况执行时间(WCET)的上界;越接近真实的WCET越好。对于具有固定时钟的同步无功控制回路尤其如此;循环体的WCET不得超过时钟周期。我们计算的WCET(或至少是一个封闭的上限)的解决方案的优化模理论的问题,考虑到语义的程序,在其他方法计算最长的路径是否是可行的,根据这些语义。优化模理论将可满足性模理论(SMT)扩展到最大化问题。将WCET问题立即编码为SMT产量公式对于所有当前的生产级求解器来说都是棘手的;这是在这些求解器中实现的SMT的DPLL(T)方法所固有的。通过结合一些适当的“削减”这些公式,我们大大减少了SMT求解器的计算时间。我们实验了我们的方法对各种控制程序,使用OTAWA分析仪作为基线和底层的微架构分析,我们的分析,并显示出显着的改善WCET绑定在各种基准和控制程序。

英文摘要:

In systems with hard real-time constraints, it is necessary to compute upper bounds on the worst-case execution time (WCET) of programs; the closer the bound to the real WCET, the better. This is especially the case of synchronous reactive control loops with a fixed clock; the WCET of the loop body must not exceed the clock period. We compute the WCET (or at least a close upper bound thereof) as the solution of an optimization modulo theory problem that takes into account the semantics of the program, in contrast to other methods that compute the longest path whether or not it is feasible according to these semantics. Optimization modulo theory extends satisfiability modulo theory (SMT) to maximization problems. Immediate encodings of WCET problems into SMT yield formulas intractable for all current production-grade solvers; this is inherent to the DPLL(T) approach to SMT implemented in these solvers. By conjoining some appropriate "cuts" to these formulas, we considerably reduce the computation time of the SMT-solver. We experimented our approach on a variety of control programs, using the OTAWA analyzer both as baseline and as underlying microarchitectural analysis for our analysis, and show notable improvement on the WCET bound on a variety of benchmarks and control programs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑