<commit_before>#include <time.h>
#include <string.h>
#include <unistd.h>

#include "honggfuzz.h"
#include "libhfuzz/persistent.h"

/*
 * If this signature is visible inside a binary, it's probably a persistent-style fuzzing program.
 * This mode of discover is employed by honggfuzz
 */
__attribute__((used)) const char* LIBHFUZZ_module_main = _HF_PERSISTENT_SIG;

/*
 * Declare it 'weak', so it can be safely linked with regular binaries which
 * implement their own main()
 */
#if !defined(__CYGWIN__)
__attribute__((weak))
#endif /* !defined(__CYGWIN__) */
int main(int argc, char** argv) {
    /*
     * getpid() never returns -2, so it's only to reference the persistent
     * signature, to prevent optimizing it out by clever compiler/link
     * optimizers
     */
    if (time(NULL) == 0) {
      return (int)strlen(LIBHFUZZ_module_main);
    }<commit_msg>Make sure that the persistent signature is never optimized # better func to call (cmp)<commit_after>#include <time.h>
#include <string.h>
#include <unistd.h>

#include "honggfuzz.h"
#include "libhfuzz/persistent.h"

/*
 * If this signature is visible inside a binary, it's probably a persistent-style fuzzing program.
 * This mode of discover is employed by honggfuzz
 */
__attribute__((used)) const char* LIBHFUZZ_module_main = _HF_PERSISTENT_SIG;

/*
 * Declare it 'weak', so it can be safely linked with regular binaries which
 * implement their own main()
 */
#if !defined(__CYGWIN__)
__attribute__((weak))
#endif /* !defined(__CYGWIN__) */
int main(int argc, char** argv) {
    /*
     * getpid() never returns -2, so it's only to reference the persistent
     * signature, to prevent optimizing it out by clever compiler/link
     * optimizers
     */
    if (time(NULL) == -10) {
      return (int)strlen(LIBHFUZZ_module_main);
    }
{'fraction_non_alphanumeric': 0.11412742382271468, 'fraction_numerical': 0.002770083102493075, 'mean_word_length': 3.9615384615384617, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1251747', 'n_tokens_mistral': 593, 'n_tokens_neox': 575, 'n_words': 193}