source: doc/papers/general/evaluation/cfa-pair.c @ 36a05d7

ADTast-experimentalenumforall-pointer-decaypthread-emulationqualifiedEnum
Last change on this file since 36a05d7 was 79d4186, checked in by Aaron Moss <a3moss@…>, 6 years ago

Update evaluation code for paper

  • Property mode set to 100644
File size: 1.4 KB
Line 
1#include "cfa-pair.h"
2#include "fstream"
3
4forall(otype R, otype S
5        | { int ?==?(R, R); int ?<?(R, R); int ?<?(S, S); })
6int ?<?(pair(R, S) p, pair(R, S) q) {
7        return p.first < q.first || ( p.first == q.first && p.second < q.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        return p.first < q.first || ( p.first == q.first && p.second <= q.second );
14}
15
16forall(otype R, otype S | { int ?==?(R, R); int ?==?(S, S); })
17int ?==?(pair(R, S) p, pair(R, S) q) {
18        return p.first == q.first && p.second == q.second;
19}
20
21forall(otype R, otype S | { int ?!=?(R, R); int ?!=?(S, S); })
22int ?!=?(pair(R, S) p, pair(R, S) q) {
23        return p.first != q.first || p.second != q.second;
24}
25
26forall(otype R, otype S
27        | { int ?==?(R, R); int ?>?(R, R); int ?>?(S, S); })
28int ?>?(pair(R, S) p, pair(R, S) q) {
29        return p.first > q.first || ( p.first == q.first && p.second > q.second );
30}
31
32forall(otype R, otype S
33        | { int ?==?(R, R); int ?>?(R, R); int ?>=?(S, S); })
34int ?>=?(pair(R, S) p, pair(R, S) q) {
35        return p.first > q.first || ( p.first == q.first && p.second >= q.second );
36}
37
38// forall(otype R, otype S)
39// forall(dtype ostype | ostream( ostype ) | { ostype & ?|?( ostype &, R ); ostype & ?|?( ostype &, S );  })
40// ostype & ?|?( ostype & os, pair(R, S) p ) {
41//      return os | '[' | p.first | ',' | p.second | ']';
42// } // ?|?
Note: See TracBrowser for help on using the repository browser.