source: doc/papers/general/evaluation/cfa-pair.h @ 68e9ace

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumwith_gc
Last change on this file since 68e9ace was 79d4186, checked in by Aaron Moss <a3moss@…>, 7 years ago

Update evaluation code for paper

  • Property mode set to 100644
File size: 955 bytes
Line 
1#pragma once
2
3#include "iostream"
4
5forall(otype R, otype S) struct pair {
6        R first;
7        S second;
8};
9
10forall(otype R, otype S
11        | { int ?==?(R, R); int ?<?(R, R); int ?<?(S, S); })
12int ?<?(pair(R, S) p, pair(R, S) q);
13
14forall(otype R, otype S
15        | { int ?==?(R, R); int ?<?(R, R); int ?<=?(S, S); })
16int ?<=?(pair(R, S) p, pair(R, S) q);
17
18forall(otype R, otype S | { int ?==?(R, R); int ?==?(S, S); })
19int ?==?(pair(R, S) p, pair(R, S) q);
20
21forall(otype R, otype S | { int ?!=?(R, R); int ?!=?(S, S); })
22int ?!=?(pair(R, S) p, pair(R, S) q);
23
24forall(otype R, otype S
25        | { int ?==?(R, R); int ?>?(R, R); int ?>?(S, S); })
26int ?>?(pair(R, S) p, pair(R, S) q);
27
28forall(otype R, otype S
29        | { int ?==?(R, R); int ?>?(R, R); int ?>=?(S, S); })
30int ?>=?(pair(R, S) p, pair(R, S) q);
31
32// forall(otype R, otype S)
33// forall(dtype ostype | ostream( ostype ) | { ostype & ?|?( ostype &, R ); ostype & ?|?( ostype &, S ); })
34// ostype & ?|?( ostype & os, pair(R, S) );
Note: See TracBrowser for help on using the repository browser.