Google
 
   
Login
Username:

Password:


Lost Password?

Register now!
Search
Main Menu
top books
Polls
What do you think about php-deluxe.net?
Excellent!
Cool
Hmm..not bad
What the hell is this?
encyclopedia
recommendation
Freenet DSL
Who's Online
8 user(s) are online (4 user(s) are browsing encyclopedia)

Members: 0
Guests: 8

more...
browser tip
recommendation!
Sponsored
partner

Precondition

In logic a precondition is a condition that has to be met, before a main argument can have any value.

In computer programming, a precondition is a condition or predicate that must always be true just prior to the execution of some section of code or before an operation in a formal specification. Preconditions are sometimes tested using Assertion (computing) within the code itself. Often, preconditions are simply included in the documentation of the affected section of code. If a precondition is violated, the effect of the section of code becomes undefined and thus may or may not carry out its intended work. Computer security problems can arise due to incorrect preconditions – e.g., a section of code that has the precondition that the input is correct, when it may not be.

=See also=

*Design by contract *Postcondition *Hoare logic