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
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
KarryLiu完成签到,获得积分10
刚刚
隐形曼青的应助被CT采纳,获得10
1秒前
rain完成签到,获得积分10
1秒前
科研通AI6.3的应助被林小北采纳,获得10
1秒前
魁梧的觅山完成签到,获得积分10
1秒前
小溪苏完成签到 ,获得积分10
1秒前
伤訫凉皮完成签到 ,获得积分10
2秒前
30040完成签到,获得积分10
2秒前
貘戏完成签到,获得积分10
2秒前
zhu完成签到,获得积分10
3秒前
tuyibo完成签到,获得积分10
3秒前
mzh关注了科研通微信公众号
3秒前
VV完成签到,获得积分10
3秒前
11111完成签到,获得积分10
4秒前
诩阽完成签到,获得积分10
4秒前
4秒前
佐助完成签到 ,获得积分10
5秒前
江苏大猩猩完成签到,获得积分10
5秒前
5秒前
浮华乱世完成签到,获得积分10
5秒前
5秒前
雅尔达完成签到 ,获得积分10
5秒前
瑞水南郡完成签到,获得积分10
5秒前
嘻嘻嘻完成签到,获得积分10
5秒前
研友_599Y85完成签到,获得积分10
6秒前
新野完成签到,获得积分10
6秒前
研友_nEW4G8完成签到,获得积分10
6秒前
thinking完成签到,获得积分10
6秒前
罗格朗因完成签到 ,获得积分10
7秒前
er2222完成签到,获得积分10
7秒前
ayzxdz完成签到,获得积分10
7秒前
斯特芬尼完成签到 ,获得积分10
8秒前
科研通AI6.3的应助被川川子采纳,获得10
8秒前
dagongren完成签到,获得积分0
8秒前
WRWRWR完成签到,获得积分10
8秒前
jiang完成签到,获得积分10
8秒前
懒洋洋完成签到 ,获得积分10
8秒前
9秒前
小包子完成签到,获得积分10
9秒前
花落知多少完成签到,获得积分10
10秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
拉伸高分子熔体中缠结行为的模拟和小角中子散射研究 2000
Handbook of Sport Coaching Research 1000
Middleton's Allergy 2-Volume Set Principles and Practice 10th Edition 500
Orthognathic Surgery - 2 Volume Set 500
Sex, Aging, and Death in a Medieval Medical Compendium: Trinity College Cambridge MS R.14.52, Its Texts, Language, and Scribe 450
Handbook of Statistics Volume 53: Statistics in Industry and Government 300
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8202655
求助须知:如何正确求助?哪些是违规求助? 9586613
关于积分的说明 21906267
捐赠科研通 7805624
什么是DOI,文献DOI怎么找? 3440262
关于科研通互助平台的介绍 2563155
邀请新用户注册赠送积分活动 2487476