![]() |
MobilityDB 1.3
|
A simple program that generates a given number of ttext instants, appends the instant into a sequence set where each sequence of the sequence set has a fixed number of instants defined by a compiler constant. More...
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <meos.h>
#include <meos_internal.h>
Macros | |
#define | COMPACT_COMP_SEQS true |
#define | DEBUG false |
#define | EXPAND_SEQ true |
#define | INITIAL_INSTANTS_SEQ 64 |
#define | INITIAL_SEQUENCES_SEQSET 64 |
#define | MAX_INSTANTS 50000000 |
#define | MAX_INSTANTS_SEQ 50000 |
#define | MAX_LENGTH_TEXT 10 |
#define | NO_INSTANTS_BATCH 50000 |
Functions | |
int | main (void) |
A simple program that generates a given number of ttext instants, appends the instant into a sequence set where each sequence of the sequence set has a fixed number of instants defined by a compiler constant.
The program outputs the number of sequences and, for the last sequence, the number of instants and the last value.
The instants are generated so they are not redundant, that is, all input instants will appear in the final sequence.
The program can be build as follows
The output of the program when MEOS is built with the flag -DDEBUG_EXPAND=1 to show debug messages for the expandable data structures is as follows