source: icGREP/icgrep-devel/icgrep/re/re_empty_set.cpp @ 6237

Last change on this file since 6237 was 6224, checked in by cameron, 8 months ago

Contextual assertion simplifier from Jeremy Schwartz - initial check-in

File size: 407 bytes
Line 
1/*
2 *  Copyright (c) 2018 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 *  icgrep is a trademark of International Characters.
5 */
6
7#include "re_empty_set.h"
8#include <re/re_alt.h>
9
10namespace re {
11
12bool isEmptySet(RE * const re) {
13    return llvm::isa<Alt>(re) && llvm::cast<Alt>(re)->empty();
14}
15
16RE * makeEmptySet() {
17    return makeAlt();
18}
19
20}
Note: See TracBrowser for help on using the repository browser.