| [eaa5043] | 1 | //
 | 
|---|
 | 2 | // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
 | 
|---|
 | 3 | //
 | 
|---|
 | 4 | // The contents of this file are covered under the licence agreement in the
 | 
|---|
 | 5 | // file "LICENCE" distributed with Cforall.
 | 
|---|
 | 6 | //
 | 
|---|
 | 7 | // pair --
 | 
|---|
 | 8 | //
 | 
|---|
 | 9 | // Author           : Aaron Moss
 | 
|---|
 | 10 | // Created On       : Wed Apr 12 15:32:00 2017
 | 
|---|
| [6b0b624] | 11 | // Last Modified By : Peter A. Buhr
 | 
|---|
 | 12 | // Last Modified On : Sat Jul 22 09:59:53 2017
 | 
|---|
 | 13 | // Update Count     : 2
 | 
|---|
| [eaa5043] | 14 | //
 | 
|---|
 | 15 | 
 | 
|---|
| [6b0b624] | 16 | #pragma once
 | 
|---|
| [eaa5043] | 17 | 
 | 
|---|
 | 18 | forall(otype R, otype S) struct pair {
 | 
|---|
 | 19 |         R first;
 | 
|---|
 | 20 |         S second;
 | 
|---|
 | 21 | };
 | 
|---|
 | 22 | 
 | 
|---|
 | 23 | forall(otype R, otype S 
 | 
|---|
 | 24 |         | { int ?==?(R, R); int ?<?(R, R); int ?<?(S, S); })
 | 
|---|
 | 25 | int ?<?(pair(R, S) p, pair(R, S) q);
 | 
|---|
 | 26 | 
 | 
|---|
 | 27 | forall(otype R, otype S 
 | 
|---|
 | 28 |         | { int ?==?(R, R); int ?<?(R, R); int ?<=?(S, S); })
 | 
|---|
 | 29 | int ?<=?(pair(R, S) p, pair(R, S) q);
 | 
|---|
 | 30 | 
 | 
|---|
 | 31 | forall(otype R, otype S | { int ?==?(R, R); int ?==?(S, S); })
 | 
|---|
 | 32 | int ?==?(pair(R, S) p, pair(R, S) q);
 | 
|---|
 | 33 | 
 | 
|---|
 | 34 | forall(otype R, otype S | { int ?!=?(R, R); int ?!=?(S, S); })
 | 
|---|
 | 35 | int ?!=?(pair(R, S) p, pair(R, S) q);
 | 
|---|
 | 36 | 
 | 
|---|
 | 37 | forall(otype R, otype S 
 | 
|---|
 | 38 |         | { int ?==?(R, R); int ?>?(R, R); int ?>?(S, S); })
 | 
|---|
 | 39 | int ?>?(pair(R, S) p, pair(R, S) q);
 | 
|---|
 | 40 | 
 | 
|---|
 | 41 | forall(otype R, otype S 
 | 
|---|
 | 42 |         | { int ?==?(R, R); int ?>?(R, R); int ?>=?(S, S); })
 | 
|---|
 | 43 | int ?>=?(pair(R, S) p, pair(R, S) q);
 | 
|---|
 | 44 | 
 | 
|---|
 | 45 | // Local Variables: //
 | 
|---|
 | 46 | // mode: c //
 | 
|---|
 | 47 | // tab-width: 4 //
 | 
|---|
 | 48 | // End: //
 | 
|---|