+
+
+/*
+ * Write the processing-specific graph lines in the gnuplot script (none at
+ * the moment). Call the downstream module's graph function.
+ *
+ * Args:
+ * stream: stream where to write the data
+ * syncState: container for synchronization data
+ * i: first trace number
+ * j: second trace number, garanteed to be larger than i
+ */
+static void writeProcessingGraphsPlotsLTTVStandard(FILE* stream, SyncState*
+ const syncState, const unsigned int i, const unsigned int j)
+{
+ if (syncState->matchingModule->writeMatchingGraphsPlots != NULL)
+ {
+ syncState->matchingModule->writeMatchingGraphsPlots(stream, syncState,
+ i, j);
+ }
+}
+
+
+/*
+ * Write the processing-specific options in the gnuplot script. Call the
+ * downstream module's options function.
+ *
+ * Args:
+ * stream: stream where to write the data
+ * syncState: container for synchronization data
+ * i: first trace number
+ * j: second trace number, garanteed to be larger than i
+ */
+static void writeProcessingGraphsOptionsLTTVStandard(FILE* stream, SyncState*
+ const syncState, const unsigned int i, const unsigned int j)
+{
+ ProcessingDataLTTVStandard* processingData;
+ LttTrace* traceI, * traceJ;
+
+ processingData= (ProcessingDataLTTVStandard*) syncState->processingData;
+
+ traceI= processingData->traceSetContext->traces[i]->t;
+ traceJ= processingData->traceSetContext->traces[j]->t;
+
+ fprintf(stream,
+ "set x2label \"Clock %1$d (s)\"\n"
+ "set x2range [GPVAL_X_MIN / %2$.1f : GPVAL_X_MAX / %2$.1f]\n"
+ "set x2tics\n"
+ "set y2label \"Clock %3$d (s)\"\n"
+ "set y2range [GPVAL_Y_MIN / %4$.1f : GPVAL_Y_MAX / %4$.1f]\n"
+ "set y2tics\n", i, (double) traceI->start_freq / traceI->freq_scale,
+ j, (double) traceJ->start_freq / traceJ->freq_scale);
+
+ if (syncState->matchingModule->writeMatchingGraphsOptions != NULL)
+ {
+ syncState->matchingModule->writeMatchingGraphsOptions(stream,
+ syncState, i, j);
+ }
+}