source: icGREP/icgrep-devel/icgrep/re/re_diff.h

Last change on this file was 6264, checked in by cameron, 4 months ago

Restructured contextual assertion simplifier

File size: 486 bytes
Line 
1#ifndef RE_DIFF_H
2#define RE_DIFF_H
3
4#include <re/re_re.h>
5
6namespace re {
7
8class Diff : public RE {
9public:
10    RE * getLH() const {return mLh;}
11    RE * getRH() const {return mRh;}
12    static Diff * Create(RE * lh, RE * rh) {return new Diff(lh, rh);}
13    RE_SUBTYPE(Diff)
14private:
15    Diff(RE * lh, RE * rh): RE(ClassTypeId::Diff), mLh(lh), mRh(rh) {}
16    RE * const mLh;
17    RE * const mRh;
18};
19
20RE * makeDiff(RE * lh, RE * rh);
21   
22RE * resolveDiffs(RE * r);
23}
24
25#endif // RE_DIFF_H
Note: See TracBrowser for help on using the repository browser.