Article View: comp.arch
Article #218Re: Documentation (was Re: Performance of xchg reg,reg)
From: Thomas Koenig
Date: Mon, 19 Oct 2026 07:44
Date: Mon, 19 Oct 2026 07:44
51 lines
2920 bytes
2920 bytes
John Savard <quadibloc@invalid.com> schrieb:
> On Sun, 18 Oct 2026 09:45:00 -0400, George Neuner
><gneuner2@comcast.net> wrote:
>
>>The problem with the original report was that they attempted with the
>>grammar turn [at least some kinds of] semantic errors into syntax
>>errors.
>
> Obviously, there's no way one can enable a compiler to flag logic
> errors in programs.
>A Turing-complete language can calculate anything,
> so how can it tell you that you were calculating this when you wanted
> to calculate that?
There are three possibilities: a) A formal verification can succeed,
b) it can fail to make a determination, or c) it can show up bugs.
c) is already implemented with many compiler warnings and errors,
a simple example:
$ cat do.f90
program main
implicit none
integer :: i
real, dimension(5) :: a
do i=1,6
a(i) = i + 2
end do
print *,a
end
$ gfortran do.f90
do.f90:6:6:
5 | do i=1,6
| 2
6 | a(i) = i + 2
| 1
Warning: Array reference at (1) out of bounds (6 > 5) in loop beginning at (2)
If you develop code with formal verification and hit b), you have the
option of not accepting the code.
I believe Lean is a language which implements a) and shows missing
goals for b), but I have never worked with it.
--
This USENET posting was made without artificial intelligence,
artificial impertinence, artificial arrogance, artificial stupidity,
artificial flavorings or artificial colorants.
Technical Details
Message-ID:
<11b4hop$1re7j$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<2026Oct13.104347@mips.complang.tuwien.ac.at> <11au1vu$3ks5m$2@dont-email.me> <11aunpn$8c6$1@reader2.panix.com> <1792257076-5857@newsgrouper.org> <11b0bd3$b5b$1@reader2.panix.com> <1792265982-5857@newsgrouper.org> <11b0nak$iems$9@dont-email.me> <kqg9dl5oj9l0dih5kvnrif2fv91ns8lgs3@4ax.com> <6ad5609b.8505984@news.eternal-september.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Thomas Koenig <tkoenig@netcologne.de> Newsgroups: comp.arch Subject: Re: Documentation (was Re: Performance of xchg reg,reg) Date: Mon, 19 Oct 2026 07:44:25 -0000 (UTC) Organization: A noiseless patient Spider Lines: 51 Message-ID: <11b4hop$1re7j$1@dont-email.me> References: <2026Oct13.104347@mips.complang.tuwien.ac.at> <11au1vu$3ks5m$2@dont-email.me> <11aunpn$8c6$1@reader2.panix.com> <1792257076-5857@newsgrouper.org> <11b0bd3$b5b$1@reader2.panix.com> <1792265982-5857@newsgrouper.org> <11b0nak$iems$9@dont-email.me> <kqg9dl5oj9l0dih5kvnrif2fv91ns8lgs3@4ax.com> <6ad5609b.8505984@news.eternal-september.org> Injection-Date: Mon, 19 Oct 2026 07:44:26 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1947891"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187Wfv040uIlNrtjQ2cb/ZyS2aBpu9XyqA="; posting-host="ceacc5a02aa252f196a3e0a280f0ec67" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:saHra/JeGXtZComtBEwTckB0HI8= sha256:roNBe9+TEwlASVnbaHW4sRiZm9IMtUYRzU0jyaW2z9U= sha1:lj8SJa4kYAl+h9WYB/vV/HSXPDE= sha256:9PVibdCOryVs7Vm1ucZBRJa+lAhYjmhx0e0wHcD4EP0=