Polly 22.0.0git
isl_test_cpp.cc File Reference
#include <vector>
#include <string>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <map>
#include <isl/options.h>
#include <isl/typed_cpp.h>
#include "isl_test_cpp-generic.cc"

Go to the source code of this file.

Macros

#define die(msg)
#define assert(exp)

Functions

static void die_impl (const char *file, int line, const char *message)
static void assert_impl (bool condition, const char *file, int line, const char *message)
static void test_return_bool (isl::ctx ctx)
static void test_return (isl::ctx ctx)
static void test_foreach (isl::ctx ctx)
static void test_foreach_scc (isl::ctx ctx)
static void test_every (isl::ctx ctx)
static void test_exception (isl::ctx ctx)
static void test_schedule_tree (isl::ctx ctx)
static void test_ast_build (isl::ctx ctx)
static void test_typed (isl::ctx ctx)
int main ()

Macro Definition Documentation

◆ assert

#define assert ( exp)
Value:
assert_impl(exp, __FILE__, __LINE__, #exp)
static void assert_impl(bool condition, const char *file, int line, const char *message)

Definition at line 37 of file isl_test_cpp.cc.

Referenced by test_ast_build(), test_every(), test_exception(), test_foreach(), test_foreach_scc(), test_return_bool(), and test_schedule_tree().

◆ die

Function Documentation

◆ assert_impl()

void assert_impl ( bool condition,
const char * file,
int line,
const char * message )
static

Definition at line 26 of file isl_test_cpp.cc.

References condition, and die_impl().

◆ die_impl()

void die_impl ( const char * file,
int line,
const char * message )
static

Definition at line 20 of file isl_test_cpp.cc.

Referenced by assert_impl().

◆ main()

◆ test_ast_build()

void test_ast_build ( isl::ctx ctx)
static

Definition at line 281 of file isl_test_cpp.cc.

References assert, schedule, and test_ast_build_generic().

Referenced by main().

◆ test_every()

void test_every ( isl::ctx ctx)
static

Definition at line 156 of file isl_test_cpp.cc.

References assert, die, isl::union_set::every_set(), and test_every_generic().

Referenced by main().

◆ test_exception()

void test_exception ( isl::ctx ctx)
static

Definition at line 180 of file isl_test_cpp.cc.

References assert, die, isl::union_map::from(), and mupa.

Referenced by main().

◆ test_foreach()

void test_foreach ( isl::ctx ctx)
static

Definition at line 87 of file isl_test_cpp.cc.

References assert, die, isl::set::foreach_basic_set(), and is_equal().

Referenced by main().

◆ test_foreach_scc()

void test_foreach_scc ( isl::ctx ctx)
static

◆ test_return()

void test_return ( isl::ctx ctx)
static

Definition at line 72 of file isl_test_cpp.cc.

References test_return_bool(), test_return_int(), test_return_obj(), and test_return_string().

Referenced by main().

◆ test_return_bool()

void test_return_bool ( isl::ctx ctx)
static

Definition at line 46 of file isl_test_cpp.cc.

References assert, die, and isl::set::is_empty().

Referenced by test_return().

◆ test_schedule_tree()

void test_schedule_tree ( isl::ctx ctx)
static

Definition at line 210 of file isl_test_cpp.cc.

References assert, count(), die, domain, inc_count(), and test_schedule_tree_generic().

Referenced by main().

◆ test_typed()

void test_typed ( isl::ctx ctx)
static

Definition at line 328 of file isl_test_cpp.cc.

Referenced by main().