Recent

Author Topic: Errors of the logic of the program [SOLVED]  (Read 1053 times)

pascal111

  • Sr. Member
  • ****
  • Posts: 423
  • Un trabajo en equipo para programas serias.
Errors of the logic of the program [SOLVED]
« on: May 07, 2021, 10:27:09 pm »
إذا عاين المُعالج حالة البيانات الممررة له من قِبل المترجم فوجدها صحيّة أي مقبولة فإنّهُ يتّبعها دون إدراكـ صحة المنطق فهل هناكـ تعديلات على المُنقّح ليستطيع تداركـ أخطاء المنطق أم أنّ ذلكـ نشاط بشري بحت.


google translate:

"If the wizard "processor" examines the state of the data passed to him "it" by the translator "compiler" and finds it correct, i.e. acceptable, then he "it" follows it without realizing the validity of the logic. Are there any modifications to the reviser "debugger" to be able to correct the errors of logic or is this purely human activity."
« Last Edit: May 07, 2021, 11:26:20 pm by pascal111 »
La chose par la chose est rappelé.

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: Errors of the logic of the program
« Reply #1 on: May 07, 2021, 11:01:31 pm »
For the moment purely human. A processor (the whole computer, in fact), the compiler, etc. are just machines and they will blindly try to do whatever you, the human, tell them to do, whether it makes sense or not.

The compiler programmers have programmed it to react to certain situations which are considered "errors", or at least "dubious" (when it emits a warning or a note), but if there are logical errors on an otherwise acceptable piece of code it will tranlate to machine code which the processor will try to execute.

At best a "logical" error will then produce a processor "fault" or exception (e.g. if you try to divide by zero); at worst it might destroy the whole system (e.g. if something makes it format the hard disk).
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

pascal111

  • Sr. Member
  • ****
  • Posts: 423
  • Un trabajo en equipo para programas serias.
Re: Errors of the logic of the program
« Reply #2 on: May 07, 2021, 11:25:07 pm »
من توضيحكـ زميل @lucamar علينا نحنُ المبرمجين أمر أخطاء منطق البرنامج إذ أنّ المُترجم لن يكون بارعاً بالدرجة الكافية وقد تؤول الأخطاء المنطقيّة كما ذكرت إلى ما لا يُحمد عقباه.


google translate:

"From your explanation, colleague @lucamar, we programmers have to issue logic errors in the program, as the compiler will not be proficient enough, and logic errors, as I you mentioned, may lead to unfortunate consequences."
La chose par la chose est rappelé.

 

TinyPortal © 2005-2018