On the inadequacy of ordinary preconditions for the practical design and verification of programs

作者
Robert Laurence Baber
标识
DOI:10.1109/issre.1998.730770
摘要

A mathematical basis for verifying computer programs has existed for some time but is used in practice only relatively infrequently. One of the reasons often cited for this lack of acceptance is that the proposed approaches fail to address certain questions of practical importance, e.g. whether a program even executes successfully or not. The commonly propounded proof rules do not deal with "run time" errors. While such considerations can be brought into a formal analysis of program correctness, previously proposed methods add extra steps and significant complexity to the process or are at least perceived by many to do so. Traditional approaches to program correctness distinguish between partial and total correctness. Very frequently the only difference between them is the consideration of whether loops terminate or not. This is not sufficient in practice, where the failure of even a simple assignment statement to execute must be considered. Three levels of correctness are required: partial correctness (as defined traditionally), semi-strictly total correctness and strictly total correctness. Semi-strictly total correctness guarantees that each individual statement in the program executes with a defined result (no "run time" errors) but permits loops (and recursive calls) to execute indefinitely. Strictly total correctness guarantees in addition that execution of the entire program terminates. The paper presents straightforward extensions to traditional proof rules for semi-strict and strict preconditions.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
菜心完成签到 ,获得积分10
刚刚
打打应助超越梦想采纳,获得10
1秒前
1秒前
Orange应助威武寒珊采纳,获得10
2秒前
duobao鱼发布了新的文献求助10
4秒前
5秒前
chenjinyi发布了新的文献求助50
5秒前
Blossom发布了新的文献求助10
6秒前
一昂发布了新的文献求助10
6秒前
害怕的惜文完成签到,获得积分10
6秒前
7秒前
乐乐应助emilybei采纳,获得80
8秒前
脑洞疼应助海洋饼干42采纳,获得10
8秒前
10秒前
10秒前
qianlan发布了新的文献求助10
11秒前
11秒前
爆米花应助高兴的小采纳,获得10
12秒前
13秒前
13秒前
科目三应助张一迪采纳,获得10
13秒前
山城的酒完成签到,获得积分10
13秒前
超越梦想发布了新的文献求助10
14秒前
16秒前
XZM发布了新的文献求助10
17秒前
18秒前
OrthoZhun完成签到 ,获得积分10
19秒前
19秒前
爆米花应助小鸭子采纳,获得10
21秒前
21秒前
威灵仙完成签到,获得积分10
22秒前
绮罗完成签到 ,获得积分10
22秒前
22秒前
威武寒珊发布了新的文献求助10
22秒前
渡人舟应助科研通管家采纳,获得10
23秒前
小不遛w发布了新的文献求助50
23秒前
传奇3应助科研通管家采纳,获得10
23秒前
23秒前
Ava应助科研通管家采纳,获得10
23秒前
23秒前
高分求助中
APA handbook of comparative psychology: Basic concepts, methods, neural substrate, and behavior 1000
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
The fast track to determining transfer functions of linear circuits: The student guide 500
Römisch-Germanische Forschungen 500
Electric machines: theory, operating applications, and controls 500
The Analytical and Numerical Solution of Electric and Magnetic Fields 500
When Is Two-Stage Sample Robust Optimization Asymptotically Optimal? 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7602854
求助须知:如何正确求助?哪些是违规求助? 9178899
关于积分的说明 19656853
捐赠科研通 7178252
什么是DOI,文献DOI怎么找? 3269095
关于科研通互助平台的介绍 2433276
邀请新用户注册赠送积分活动 2262941