Union contracts as a side-effect Clause Samples

Union contracts as a side-effect. In Nickel, the failure of a function contract can always be traced back to a single call. For example, take the function f with a simple contract attached of Figure 11. The whole program fails with a contract error blaming f because the return value of the second call f 5 violates the Positive con- tract. The first call to f does not matter, and f 5 is a single and independent witness of the contract violation. The user is pointed to this one location in practice. This single witness property can be justified as follows. Apart from the error reporting part (although this is the cru- cial bit in practice!), the current contract system of Nickel can be implemented purely as a library, requiring only a fail primitive to abort the execution. In practice, applying a function contract to f replaces it with a f¹ that performs the additional checks. Thus, since the core language is pure (albeit partial, if only because fail), the failure of f¹ 5 must be independent of its environment and of any previous call to f¹. ✞ ☎ 1 let f | Positive → Positive 2 = fun x ⇒ x - 7 in 3 ( f 10) + ( f 5) This behavior indicates that union contracts introduce side-effects. The result of f 5 now depends on the previous execution and more specifically on any prior call to f. This behavior of union contracts break the property 1 introduced in Section 2.2, that is required to perform CSE-like optimiza- tions in all generality. The candidate example of Figure 5 in Section 2.2 can’t be optimized in general. Figure 13 illustrates this point further. It contains an orig- inal program and an optimized version where the common subexpression f 1 has been eliminated. While equivalent in a pure language without contracts, these two programs be- have differently because of unions: • The original version returns (1, "False") without fail- ing. • The optimized version fails with a contract violation. In the original version, each partial application f 1 gives rise to a fresh instance of the contract Bool → Num ∪ Bool → Str. These instances are independent, and can pick a dif- ferent component of the union to satisfy. Although f doesn’t actually respect the contract, these calls are not enough to prove so. In the optimized version, g is endowed with a sin- gle contract, that must pick one of the two components of the union. There, the two calls refer to the same union con- tract, and shows that f does violate its initial contract. ✞ ☎ ✝ ✆ let f | Num → ( Bool → Num ∪ Bool → Str ) = fun x y ⇒ if y then x...

Related to Union contracts as a side-effect

  • No Side Agreements There are no other agreements by, among or between such Purchaser and any of its Affiliates, on the one hand, and the Company or any of its Affiliates, on the other hand, with respect to the transactions contemplated hereby other than the Operative Documents nor promises or inducements for future transactions between or among any of such parties.

  • ENTIRETY OF CONTRACTUAL AGREEMENT The COUNTY and the CONTRACTOR agree that this Contract sets forth the entire agreement between the parties, and that there are no promises or understandings other than those stated herein. None of the provisions, terms and conditions contained in this Contract may be added to, deleted, modified, superseded or otherwise altered, except by written instrument executed by the parties hereto.

  • Termination of Contracts Neither the Company nor any of its Subsidiaries has sent or received any communication regarding termination of, or intent not to renew, any material contract or agreement referred to or described in the Registration Statement, the Pricing Disclosure Package and the Final Prospectus or filed as an exhibit to the Registration Statement, and no such termination or non-renewal has been threatened by the Company or any of its Subsidiaries or by any other party to any such contract or agreement.

  • Contracts; No Defaults (a) Schedule 4.10 contains a complete and accurate list of, and Seller has delivered to Buyer true and complete copies of: (i) each Contract that involves performance of services or delivery of goods or materials by the Company of an amount or value in excess of US $100,000; (ii) each Contract that involves performance of services or delivery of goods or materials to the Company of an amount or value in excess of US $50,000; (iii) each Contract that was not entered into in the Ordinary Course of Business and that involves expenditures or receipts of the Company in excess of US $50,000; (iv) each lease agreement, license, installment and conditional sale agreement, and other Contract affecting the ownership of, leasing of, title to, use of, or any leasehold or other interest in, any real or personal property (except personal property leases and installment and conditional sales agreements having a value per item or aggregate payments of less than US $25,000 and with terms of less than one year); (v) each licensing agreement or other Contract with respect to patents, trademarks, copyrights, or other intellectual property, including agreements with current or former employees, consultants, or contractors regarding the appropriation or the non-disclosure of any of the Intellectual Property; (vi) each joint venture, partnership, and other Contract (however named) involving a sharing of profits, losses, costs, or liabilities by the Company with any other Person; (vii) each Contract between or including the Company and an Affiliate; (viii) each Contract containing covenants that in any way purport to restrict the business activity of the Company or any Affiliate of the Company or limit the freedom of the Company or any Affiliate of the Company to engage in any line of business or to compete with any Person; (ix) each written warranty, guaranty, and or other similar undertaking with respect to contractual performance extended by the Company other than in the Ordinary Course of Business; and (x) each amendment, supplement, and modification (whether oral or written) in respect of any of the foregoing. (b) Seller (and each Affiliate of Seller) does not have any rights under or any obligation or liability under and does not have the right to require or will not become subject to, any Contract that relates to the business of, or any of the assets owned or used by, the Company; (c) To the Knowledge of Seller or the Company, no officer, director, agent, employee, consultant, or contractor of the Company is bound by any Contract that purports to limit the ability of such officer, director, agent, employee, consultant, or contractor to (i) engage in or continue any conduct, activity, or practice relating to the business of the Company, or (ii) assign to the Company or to any other Person any rights to any invention, improvement, or discovery; (d) With respect to each Contract identified or required to be identified in Schedule 4.10, (i) the Contract is legal, valid, binding, enforceable and in full force and effect; (ii) the Contract will continue to be legal, valid, binding, enforceable and in full force and effect on identical terms following the consummation of the transactions contemplated hereby; (iii) no party is in breach or default, and no event has occurred which with notice or lapse of time would constitute a breach or default, or permit termination, modification or acceleration, under the Contract; and (iv) no party has repudiated any provision of the Contract; (e) The Company has not given to or received from any other Person, at any time since January 1, 2005, any notice or other communication (whether oral or written) regarding any actual, alleged, possible, or potential violation or breach of, or default under, any Contract; and (f) There are no renegotiations of, attempts to renegotiate, or outstanding rights to renegotiate any material amounts paid or payable to the Company under current or completed Contracts with any Person and, to the Knowledge of Seller or the Company, no such Person has made written demand for such renegotiation.

  • Certain Contracts and Arrangements (a) Section 3.7(a) of the Transferor Disclosure Schedule sets forth a true and complete list, as of the date hereof, of the following Contracts (including currently effective amendments and modifications thereto), other than commitments to issue owner’s title insurance policies and owner’s title insurance policies, to which the Company is a party, by which any of its properties are bound or that relate to the conduct of the Business (collectively, the “Material Agreements”): (i) agreements involving payments to or from the Company of at least $75,000 per year; (ii) vendor or similar agreements involving payments to or from the Company in excess of $75,000 per year; (iii) Contracts, or a group of related Contracts with the same party, for the purchase, sale or distribution of equipment, supplies, products or services, under which the undelivered balance of such equipment, supplies, products or services has a price in excess of $75,000; (iv) Contracts, loan agreements, letters of credit, repurchase agreements, mortgages, security agreements, guarantees, pledge agreements, trust indentures, promissory notes, lines of credit and similar documents in each case relating to Indebtedness; (v) real property leases calling for payments by the Company of amounts greater than $75,000 per year; (vi) partnership, royalty or joint venture agreements; (vii) Contracts limiting the ability of the Company to compete in any line of business or with any Person or in any geographic area; (viii) Contracts relating to any outstanding commitment for capital expenditures; (ix) (A) Collective Bargaining Agreements between the Company and any Person, (B) Employment Agreements between the Company and any Person, and (C) Contracts between the Company and any Independent Contractor and (D) the Company Plans, in each instance excluding at-will employment or Independent Contract or arrangements that may be terminated by the Company without notice and without Liability; (x) Contracts not entered into in the ordinary course of the Business; (xi) Contracts for the acquisition or disposition of real property, capital stock or other businesses; (xii) Contracts providing for indemnification of any officer, employee, member, manager or director of the Company; (xiii) agency, distributor, dealer, sales, marketing or similar agreements or arrangements with any Person that generates or refers business to the Company; (xiv) all verbal Contracts (excluding at-will employment or Independent Contract or arrangements that may be terminated by the Company without notice and without Liability); and (xv) Contracts not otherwise disclosed in (i) — (xiv) above that are currently in effect and to which the Company or its respective properties are bound that are material to the Business. (b) Except to the extent that enforceability thereof may be limited by bankruptcy, insolvency, fraudulent transfer, reorganization, moratorium and similar Laws relating to or affecting creditors’ rights generally and by general principles of equity (regardless of whether such enforceability is considered in a proceeding in equity or at law), and provided that any indemnity, contribution and exoneration provisions contained in any such Material Agreement may be limited by applicable Laws and public policy, each Material Agreement (i) to the extent that the Company is a party to such Material Agreement, constitutes the legal, valid and binding obligation of the Company enforceable against the Company in accordance with its terms, (ii) is in full force and effect as of the Execution Date and (iii) will be in full force and effect upon the consummation of the transactions contemplated by this Agreement. (c) There is not under any Material Agreement any default or event, that, with notice or lapse of time or both, would reasonably be expected to constitute a default on the part of any of the parties thereto, except such events of default and other events as to which requisite waivers or consents have been obtained. (d) The Company has not (i) received written notice of, and there has not occurred, any breach of or violation or default under any Material Agreement or any condition which with the passage of time or the giving of notice or both would result in such a violation or default under any Material Agreement, or (ii) received written notice of the desire of the other party or parties to any such Material Agreement to exercise any rights such party has to cancel, terminate, renegotiate or repudiate such contract or exercise remedies thereunder. (e) True and complete copies of all Material Agreements to which the Company is a party or is bound have been delivered or made available to HSE by Transferor. The Company is not party to or bound by any Contract (other than the Material Agreements) that cannot be terminated by the Company on less than ninety (90) days notice without penalty.