[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[csmith-dev] csmith error



Hi all,

I haven't figured out what causes the bitwise logical operation errors
yet, but I'm getting some variable not found errors, like:
Variable 'safe_div_func_uint64_t_u_u' not found...
Please read the attached a2p_tset2.c and a2p_tset2_errors.txt for more
details.

Can someone explain to me why I'm getting those variable not found errors?

Thanks,

Bill
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(95) : error: C1269: Variable 'safe_div_func_uint64_t_u_u' not found
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(116) : error: C1269: Variable 'safe_add_func_int64_t_s_s' not found
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(156) : error: C1269: Variable 'safe_mod_func_uint64_t_u_u' not found
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(183) : error: C1295: 'or' only valid on binary types
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(338) : error: C1269: Variable 'safe_mod_func_int64_t_s_s' not found
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(339) : error: C1295: 'and' only valid on binary types
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(348) : error: C1269: Variable 'safe_add_func_int64_t_s_s' not found
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(350) : error: C1269: Variable 'safe_sub_func_uint64_t_u_u' not found
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(355) : error: C1269: Variable 'safe_sub_func_int64_t_s_s' not found
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(473) : error: C1269: Variable 'safe_add_func_int64_t_s_s' not found
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(601) : error: C1296: 'eq' is invalid between &*long & uchar
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(630) : error: C1269: Variable 'safe_add_func_int64_t_s_s' not found
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(667) : error: C1269: Variable 'safe_add_func_int64_t_s_s' not found
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(698) : error: C1269: Variable 'safe_sub_func_uint64_t_u_u' not found
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(720) : error: C1282: assignment between ulong &  not possible
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(765) : error: C1269: Variable 'safe_add_func_uint64_t_u_u' not found
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(818) : error: C1269: Variable 'safe_div_func_int64_t_s_s' not found
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(852) : error: C1295: 'xor' only valid on binary types
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(866) : error: C1269: Variable 'safe_mod_func_uint64_t_u_u' not found
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(877) : error: C1295: 'xor' only valid on binary types
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(892) : error: C1296: 'ne' is invalid between &*long & uchar
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(924) : error: C1269: Variable 'safe_mod_func_int64_t_s_s' not found
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(933) : error: C1269: Variable 'safe_sub_func_uint64_t_u_u' not found
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(1080) : error: C1295: 'and' only valid on binary types
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(1090) : error: C1295: 'and' only valid on binary types
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(1098) : error: C1269: Variable 'safe_sub_func_uint64_t_u_u' not found
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(1130) : error: C1269: Variable 'safe_add_func_int64_t_s_s' not found
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(1135) : error: C1269: Variable 'safe_div_func_int64_t_s_s' not found
C:\cygwin\home\A2P_User\csmith\tmp-test\a2p_test2.c(1179) : error: C1295: 'or' only valid on binary types
/*
 * This is a RANDOMLY GENERATED PROGRAM.
 *
 * Generator: csmith 2.0.0
 * svn version: exported
 * Options:   (none)
 * Seed:      3300170356
 */

#include "csmith.h"


long __undefined;

/* --- Struct/Union Declarations --- */
/* --- GLOBAL VARIABLES --- */
int64_t g_2[7][7][1] = {{{1L}, {1L}, {1L}, {1L}, {1L}, {1L}, {1L}}, {{1L}, {1L}, {1L}, {1L}, {1L}, {1L}, {1L}}, {{1L}, {1L}, {1L}, {1L}, {1L}, {1L}, {1L}}, {{1L}, {1L}, {1L}, {1L}, {1L}, {1L}, {1L}}, {{1L}, {1L}, {1L}, {1L}, {1L}, {1L}, {1L}}, {{1L}, {1L}, {1L}, {1L}, {1L}, {1L}, {1L}}, {{1L}, {1L}, {1L}, {1L}, {1L}, {1L}, {1L}}};
int32_t g_3 = 5L;
volatile int32_t g_4 = (-4L);/* VOLATILE GLOBAL g_4 */
volatile int32_t g_5 = 0L;/* VOLATILE GLOBAL g_5 */
int32_t * volatile g_18 = &g_3;/* VOLATILE GLOBAL g_18 */
int32_t g_35 = 5L;
int32_t *g_70 = &g_35;
uint32_t g_94 = 9U;
int32_t g_118 = 0xB86553ECL;
int64_t g_127 = 0x8467E5F3B4242223LL;
int32_t g_134 = 0xA386FCCFL;
uint32_t g_180 = 0x605F8564L;
const int32_t g_249 = 0x7360924EL;
const int32_t *g_278 = 0;
int32_t **g_369[6][2] = {{&g_70, &g_70}, {&g_70, &g_70}, {&g_70, &g_70}, {&g_70, &g_70}, {&g_70, &g_70}, {&g_70, &g_70}};
int32_t ***g_368 = &g_369[4][1];
int32_t g_508 = 0x5216482FL;
int32_t g_513 = (-1L);
const volatile uint32_t g_797[9] = {0x4EF7D896L, 9U, 4U, 9U, 0x4EF7D896L, 0x78CB8B3DL, 0x4EF7D896L, 9U, 4U};
volatile uint8_t g_807 = 0xB7L;/* VOLATILE GLOBAL g_807 */
volatile int32_t g_883 = 4L;/* VOLATILE GLOBAL g_883 */
int32_t ** volatile g_885 = &g_70;/* VOLATILE GLOBAL g_885 */
int32_t *g_902 = 0;


/* --- FORWARD DECLARATIONS --- */
int64_t  func_1(void);
uint8_t  func_9(int32_t  p_10);
uint8_t  func_13(int64_t  p_14, const uint32_t  p_15, int64_t  p_16, uint64_t  p_17);
uint16_t  func_21(int32_t  p_22, int32_t * p_23, uint8_t  p_24, int32_t * p_25, int32_t  p_26);
int32_t  func_38(int32_t * p_39);
uint16_t  func_45(int8_t  p_46, int64_t  p_47, int32_t * p_48, uint32_t  p_49, int32_t * p_50);
uint8_t  func_76(uint64_t  p_77, uint8_t  p_78, int16_t  p_79);
int32_t ** func_83(int32_t * p_84, int8_t  p_85);
int32_t  func_86(const int16_t  p_87, int16_t  p_88, int32_t ** p_89);
uint8_t  func_99(uint8_t  p_100);


/* --- FUNCTIONS --- */
/* ------------------------------------------ */
/* 
 * reads : g_18 g_3 g_180 g_249 g_4 g_5 g_127 g_70 g_35 g_94 g_2 g_513 g_368 g_369 g_807 g_797 g_118 g_134 g_902 g_883
 * writes: g_3 g_4 g_5 g_35 g_369 g_180 g_70 g_508 g_902 g_118
 */
int64_t  func_1(void)
{ /* block id: 0 */
    int32_t l_841[5] = {1L, 1L, 0x91F7428CL, 1L, 1L};
    int16_t l_882 = 1L;
    int32_t l_890 = (-9L);
    uint32_t l_901[7][1][5] = {{{0x36CAC24EL, 0U, 0x36CAC24EL, 0U, 0x36CAC24EL}}, {{0x36CAC24EL, 0U, 0x36CAC24EL, 0U, 0x36CAC24EL}}, {{0x36CAC24EL, 0U, 0x36CAC24EL, 0U, 0x36CAC24EL}}, {{0x36CAC24EL, 0U, 0x36CAC24EL, 0U, 0x36CAC24EL}}, {{0x36CAC24EL, 0U, 0x36CAC24EL, 0U, 0x36CAC24EL}}, {{0x36CAC24EL, 0U, 0x36CAC24EL, 0U, 0x36CAC24EL}}, {{0x36CAC24EL, 0U, 0x36CAC24EL, 0U, 0x36CAC24EL}}};
    int32_t **l_904 = &g_902;
    uint64_t l_931 = 3U;
    int64_t l_941 = 0x9A8B65AA28D954F9LL;
    int i, j, k;
    for (g_3 = 0; g_3 < 7; g_3 += 7)
    {
        for (g_4 = 0; g_4 < 7; g_4 += 7)
        {
            for (g_5 = 0; g_5 < 1; g_5 += 1)
            { /* block id: 1 */
                int32_t l_872 = 6L;
                uint64_t l_875 = 0x6F9EE87227CE3CDBLL;
                uint8_t l_881[2][8] = {{0U, 0x00L, 0U, 0x00L, 0U, 0x00L, 0U, 0x00L}, {0U, 0x00L, 0U, 0x00L, 0U, 0x00L, 0U, 0x00L}};
                int32_t * const l_884[7][6][1] = {{{&g_118}, {&g_118}, {&g_118}, {&g_118}, {&g_118}, {&g_118}}, {{&g_118}, {&g_118}, {&g_118}, {&g_118}, {&g_118}, {&g_118}}, {{&g_118}, {&g_118}, {&g_118}, {&g_118}, {&g_118}, {&g_118}}, {{&g_118}, {&g_118}, {&g_118}, {&g_118}, {&g_118}, {&g_118}}, {{&g_118}, {&g_118}, {&g_118}, {&g_118}, {&g_118}, {&g_118}}, {{&g_118}, {&g_118}, {&g_118}, {&g_118}, {&g_118}, {&g_118}}, {{&g_118}, {&g_118}, {&g_118}, {&g_118}, {&g_118}, {&g_118}}};
                int i, j, k;
            }
        }
    }
    if (((~(((((*g_18) ^ g_180) && (&l_841[4] == &l_841[1])) || (g_249 > l_841[4])) > (safe_add_func_uint8_t_u_u((safe_rshift_func_int16_t_s_u((l_890 & l_841[1]), l_890)), g_127)))) > ((func_99(l_841[1]) & ((safe_sub_func_uint16_t_u_u(g_2[6][4][0], g_513)) == 0x3AL)) == (((*g_70) < (safe_div_func_uint16_t_u_u(l_841[1], (safe_sub_func_int16_t_s_s(g_249, l_841[1]))))) >= (l_882 == l_890)))))
    { /* block id: 917 */
        int32_t ***l_905 = &g_369[2][1];
        uint16_t l_908 = 9U;
        for (l_882 = (-12); (l_882 > (-21)); l_882 = safe_sub_func_int8_t_s_s(l_882, 1))
        { /* block id: 920 */
            int64_t l_903 = 0L;
            int32_t l_917 = 0x112A4770L;
            (***g_368) = l_901[4][0][4];
            (*g_368) = (*l_905);
            if ((g_127 & ((safe_div_func_uint64_t_u_u(g_249, g_807)) != 0xA9L)))
            { /* block id: 923 */
                (***g_368) = 0x87976199L;
            }
            else
            { /* block id: 925 */
                int32_t *l_911 = 0;
                uint32_t l_920 = 0x7C586312L;
                int i, j, k;
                for (g_3 = 0; g_3 < 7; g_3 += 6)
                {
                    for (g_180 = 0; g_180 < 1; g_180 += 1)
                    {
                        for (l_903 = 0; l_903 < 5; l_903 += 1)
                        { /* block id: 926 */
                            int i, j;
                            (**g_368) = (**g_368);
                            (**g_368) = (**l_905);
                        }
                    }
                }
                for (l_908 = 18; (l_908 == 49); l_908 = safe_add_func_int64_t_s_s(l_908, 2))
                { /* block id: 942 */
                    if ((***g_368))
                        break;
                }
                l_917 |= (*g_18);
                (***l_905) = (safe_mul_func_uint16_t_u_u(l_920, l_917));
            }
        }
        return g_797[2];
    }
    else
    { /* block id: 950 */
        for (g_180 = 0; (g_180 > 7); g_180 = safe_add_func_int8_t_s_s(g_180, 1))
        { /* block id: 953 */
            uint32_t l_923[6] = {1U, 1U, 0U, 1U, 1U, 0U};
            int32_t l_924 = 0x023E57EEL;
            int32_t **l_925 = 0;
            int i;
        }
        (*g_70) = (g_3 > g_118);
        for (g_180 = (-25); (g_180 != 50); g_180 = safe_add_func_int32_t_s_s(g_180, 2))
        { /* block id: 961 */
            return g_134;
        }
    }
    for (g_508 = (-3); (g_508 > (-3)); g_508 = safe_add_func_int16_t_s_s(g_508, 1))
    { /* block id: 967 */
        uint8_t l_930 = 0x23L;
        int32_t *l_940 = 0;
        (***g_368) = l_930;
        if ((+func_21(g_5, (*l_904), l_931, (*l_904), g_2[2][0][0])))
        { /* block id: 969 */
            uint32_t l_934 = 0U;
            (*l_904) = (*l_904);
            (***g_368) ^= (safe_mul_func_uint8_t_u_u(g_797[7], l_934));
        }
        else
        { /* block id: 972 */
            int32_t *l_939 = &g_118;
            (*l_939) |= (safe_mod_func_int32_t_s_s((safe_mod_func_uint64_t_u_u(g_2[3][5][0], l_930)), func_21(g_883, l_939, (g_127 || ((g_180 & func_21(g_134, l_940, g_180, l_940, l_941)) | 0x3FL)), l_940, l_930)));
        }
    }
    return l_941;
}


/* ------------------------------------------ */
/* 
 * reads : g_5 g_18 g_35 g_368 g_369 g_70 g_513 g_508 g_3 g_4 g_118 g_94 g_2 g_127 g_180 g_134 g_249 g_797
 * writes: g_3 g_70 g_118 g_4 g_35 g_127 g_513 g_508 g_94 g_134 g_5 g_369
 */
uint8_t  func_9(int32_t  p_10)
{ /* block id: 3 */
    const uint8_t l_20 = 0xCDL;
    uint32_t l_606 = 4U;
    int32_t *l_607 = &g_508;
    int32_t *l_608 = &g_118;
    int32_t *l_761[3][8];
    int32_t **l_787 = 0;
    uint32_t l_834 = 0xA70A999FL;
    int i, j, k;
    for (i = 0; i < 3; i++)
    {
        for (j = 0; j < 8; j++)
            l_761[i][j] = &g_508;
    }
    (*l_608) |= ((((safe_mul_func_uint16_t_u_u((247U & func_13(g_5, l_20, l_20, p_10)), func_21(l_606, l_607, 0U, l_607, g_35))) && ((*l_607) >= (0xF62871F3L && 0x381D5C72L))) < (*l_607)) | 0xEC11L);
    for (p_10 = 1; p_10 < 7; p_10 += 4)
    {
        for (g_3 = 0; g_3 < 7; g_3 += 1)
        {
            for (g_4 = 0; g_4 < 1; g_4 += 1)
            { /* block id: 657 */
                return p_10;
            }
        }
    }
    if (((l_608 == (**g_368)) != func_13((*l_608), 0x3245689AL, func_99(p_10), g_2[5][5][0])))
    { /* block id: 660 */
        int32_t **l_611 = &l_608;
        int32_t l_631 = 0x544BEED0L;
        int32_t *l_640 = 0;
        int8_t l_661 = (-1L);
        int8_t l_664[7];
        uint32_t l_671 = 0x277E5F16L;
        int32_t *l_674 = &g_513;
        const int64_t l_701 = 0x6F8F1E1B2A03B033LL;
        uint16_t l_732 = 0x8D6FL;
        int32_t * const *l_781 = &l_761[1][0];
        int32_t * const **l_780 = &l_781;
        int32_t l_782 = 1L;
        int i;
        for (i = 0; i < 7; i++)
            l_664[i] = 0L;
        (*g_70) = (safe_mul_func_int16_t_s_s(0x8822L, (0 == l_611)));
        if ((*g_18))
        { /* block id: 662 */
            int32_t l_635 = 0xAEED52E0L;
            uint64_t l_658 = 1U;
            int32_t l_676 = 0x39943D1EL;
            int i, j;
            (*l_611) = (*l_611);
            for (g_127 = 5; g_127 < 6; g_127 += 4)
            {
                for (g_513 = 1; g_513 < 2; g_513 += 1)
                { /* block id: 664 */
                    int32_t *l_612 = 0;
                    if (p_10)
                    { /* block id: 665 */
                        (*l_611) = l_612;
                        (*l_611) = l_607;
                        (*l_611) = (*l_611);
                        (**g_368) = l_612;
                    }
                    else
                    { /* block id: 670 */
                        int32_t *l_615 = &g_35;
                        (*l_607) = (safe_sub_func_int8_t_s_s(func_21(g_2[6][1][0], l_615, 0x6FL, 0, g_513), ((safe_mul_func_uint16_t_u_u(((safe_lshift_func_uint16_t_u_u(6U, 4)) & p_10), p_10)) >= (*l_615))));
                    }
                    for (g_94 = (-4); (g_94 >= 45); g_94 = safe_add_func_int8_t_s_s(g_94, 1))
                    { /* block id: 675 */
                        int8_t l_624[9] = {3L, 3L, 0x49L, 0x26L, 0xE0L, 0x26L, 0x49L, 3L, 3L};
                        int32_t l_632 = 0x1979AECAL;
                        int i;
                    }
                    return g_180;
                }
            }
            if ((0x91C60B18L != (((safe_div_func_int32_t_s_s(l_658, (safe_rshift_func_uint16_t_u_u(0xFD7AL, 15)))) != (func_76(p_10, p_10, l_661) == (safe_mod_func_uint8_t_u_u(g_5, func_99(p_10))))) || (func_21(l_664[1], (*l_611), g_3, l_608, p_10) == p_10))))
            { /* block id: 697 */
                int32_t *l_678 = &g_134;
                uint32_t l_681 = 4294967291U;
                int i, j;
                for (g_4 = 4; g_4 < 6; g_4 += 5)
                {
                    for (l_658 = 0; l_658 < 2; l_658 += 1)
                    { /* block id: 698 */
                        uint8_t l_665[3] = {0xADL, 0xF5L, 0xADL};
                        int i;
                        if ((***g_368))
                        { /* block id: 699 */
                            (**g_368) = (**g_368);
                        }
                        else
                        { /* block id: 701 */
                            int32_t *l_668 = &l_631;
                            int32_t *l_675 = 0;
                            l_665[2] = (*g_18);
                            (**g_368) = (**g_368);
                            (**l_611) &= ((safe_mul_func_int16_t_s_s(((18446744073709551615U & l_671) && (((*l_607) > g_94) < (-1L))), (safe_sub_func_int16_t_s_s(p_10, func_21(l_665[0], l_674, p_10, l_675, 1L))))) > 0L);
                        }
                        (***g_368) = (*g_70);
                    }
                }
                (*g_70) = l_676;
                if (g_180)
                    goto lbl_677;
                for (l_631 = 1; l_631 < 6; l_631 += 1)
                {
                    for (g_127 = 0; g_127 < 2; g_127 += 1)
                    { /* block id: 709 */
lbl_677:
                        (*l_607) ^= p_10;
                        if ((p_10 > 0L))
                        { /* block id: 712 */
                            (*l_608) |= (***g_368);
                            (*l_611) = (*l_611);
                        }
                        else
                        { /* block id: 715 */
                            (**g_368) = l_678;
                        }
                        (***g_368) |= (safe_mod_func_int8_t_s_s(p_10, func_13(p_10, (**l_611), p_10, 0xC3667B15C846102DLL)));
                        (*l_607) = l_681;
                    }
                }
            }
            else
            { /* block id: 721 */
                uint64_t l_698 = 0x23E959D9EA43F176LL;
                (*g_70) = p_10;
                for (g_94 = 0; (g_94 == 39); g_94 = safe_add_func_uint32_t_u_u(g_94, 1))
                { /* block id: 725 */
                    uint16_t l_686 = 0xA4A3L;
                    for (g_118 = 0; g_118 < 7; g_118 += 1)
                    {
                        l_664[g_118] = 0x9AL;
                    }
                    for (l_671 = 12; (l_671 > 16); l_671 = safe_add_func_int8_t_s_s(l_671, 1))
                    { /* block id: 729 */
                        (*l_674) ^= p_10;
                    }
                    if ((*g_18))
                    { /* block id: 732 */
                        return l_686;
                    }
                    else
                    { /* block id: 734 */
                        int32_t l_693 = (-6L);
                        (**g_368) = (*l_611);
                        (**g_368) = (*l_611);
                        (**l_611) = ((*l_611) == 0);
                        (*l_607) &= (safe_div_func_int32_t_s_s((safe_mul_func_int16_t_s_s((safe_mul_func_uint8_t_u_u(l_693, (!(0x74L || p_10)))), ((safe_lshift_func_int8_t_s_s((safe_mul_func_int8_t_s_s((p_10 >= g_94), (l_698 != g_94))), 2)) != (l_686 != (p_10 | (l_701 <= (**l_611))))))), (g_3 || ((safe_add_func_int16_t_s_s(p_10, ((p_10 & g_127) == (p_10 <= g_249)))) <= (safe_mul_func_int16_t_s_s(((g_94 & p_10) >= l_686), g_513))))));
                    }
                    (*l_674) ^= (-10L);
                }
                (**g_368) = (*l_611);
            }
            if ((p_10 != (((g_2[4][4][0] >= g_513) >= 0x8007495DL) == p_10)))
            { /* block id: 744 */
                int32_t *l_706 = 0;
                int32_t *l_709 = &l_635;
                (*l_611) = l_706;
                (*l_674) = func_13(g_127, p_10, (g_2[3][0][0] != (safe_add_func_int32_t_s_s(p_10, g_513))), ((*l_611) != l_709));
                (*l_607) = p_10;
            }
            else
            { /* block id: 748 */
                int32_t *l_710 = &l_631;
                int64_t l_727[4] = {1L, 0x648F1DF5EA1AC527LL, 1L, 0x648F1DF5EA1AC527LL};
                int i;
                (*g_70) ^= ((g_513 | (safe_mod_func_int64_t_s_s((l_608 != (**g_368)), (safe_mul_func_int8_t_s_s((safe_sub_func_int8_t_s_s((*l_674), (safe_lshift_func_uint16_t_u_u(p_10, p_10)))), g_94))))) >= g_5);
                (*l_608) = (((safe_add_func_uint32_t_u_u((safe_add_func_int32_t_s_s(((p_10 == (*l_608)) & (p_10 == g_134)), (~((**l_611) ^ (*l_608))))), (g_94 > (safe_add_func_uint32_t_u_u(func_21(p_10, l_710, p_10, l_710, (*l_608)), (safe_rshift_func_uint16_t_u_u((*l_710), g_118))))))) == l_727[3]) | 0xFE88L);
            }
        }
        else
        { /* block id: 752 */
            uint8_t l_743 = 249U;
            int32_t *l_762 = &l_631;
            uint32_t l_779 = 0xC39B1324L;
            (*l_608) &= (***g_368);
            for (g_508 = 0; (g_508 > 27); g_508 = safe_add_func_int64_t_s_s(g_508, 1))
            { /* block id: 756 */
                (*g_70) |= ((p_10 == g_94) >= (safe_sub_func_uint64_t_u_u(l_732, g_94)));
            }
            if ((+0x64B01776L))
            { /* block id: 759 */
                uint32_t l_735 = 0x7A38B43DL;
                for (l_661 = 0; (l_661 <= (-4)); l_661 = safe_sub_func_int64_t_s_s(l_661, 3))
                { /* block id: 762 */
                    return g_513;
                }
                if (((***g_368) >= l_735))
                { /* block id: 765 */
                    return l_735;
                }
                else
                { /* block id: 767 */
                    int i, j, k;
                    (***g_368) &= (*g_18);
                    for (g_134 = 0; g_134 < 7; g_134 += 1)
                    {
                        for (l_671 = 1; l_671 < 7; l_671 += 4)
                        {
                            for (g_508 = 0; g_508 < 1; g_508 += 1)
                            { /* block id: 769 */
                                int8_t l_736[2];
                                int i;
                                for (i = 0; i < 2; i++)
                                    l_736[i] = 0x2CL;
                                return l_736[0];
                            }
                        }
                    }
                    return p_10;
                }
            }
            else
            { /* block id: 774 */
                uint8_t l_739 = 255U;
                if ((p_10 < (safe_mul_func_uint8_t_u_u((l_739 & g_5), ((*g_368) != &l_607)))))
                { /* block id: 775 */
                    int32_t *l_740 = 0;
                    (*l_611) = l_740;
                }
                else
                { /* block id: 777 */
                    (**l_611) = (p_10 < (!(safe_mod_func_int16_t_s_s(p_10, 0x25DBL))));
                    (*l_611) = (*l_611);
                }
            }
            if (l_743)
            { /* block id: 782 */
                int32_t *l_744 = &g_3;
                const int16_t l_774 = 0xD94AL;
                int i, j, k;
                (**g_368) = l_744;
                if ((1U && ((p_10 != (func_21((*l_744), (**g_368), (*l_674), l_608, p_10) != 0xF9C91869L)) <= ((*l_607) > (safe_div_func_int32_t_s_s((safe_div_func_uint32_t_u_u((p_10 | (*l_744)), p_10)), (+(p_10 & p_10))))))))
                { /* block id: 784 */
                    int32_t * const *l_760[7][3];
                    int32_t * const **l_759 = &l_760[2][2];
                    int i, j;
                    for (i = 0; i < 7; i++)
                    {
                        for (j = 0; j < 3; j++)
                            l_760[i][j] = &l_608;
                    }
                    (***g_368) |= (safe_div_func_int16_t_s_s((safe_div_func_uint16_t_u_u(g_513, ((((safe_mul_func_int16_t_s_s(p_10, p_10)) && (p_10 | g_180)) <= (safe_mod_func_uint8_t_u_u(0xDEL, p_10))) && g_508))), g_118));
                    (*l_607) |= (0 == l_759);
                    (*l_611) = l_608;
                    (**g_368) = l_608;
                }
                else
                { /* block id: 789 */
                    int32_t l_763 = 0x62BF6830L;
                    int i, j;
                    for (g_5 = 0; g_5 < 6; g_5 += 1)
                    {
                        for (l_743 = 1; l_743 < 2; l_743 += 1)
                        { /* block id: 790 */
                            (*l_674) = (g_94 ^ func_21((l_761[1][0] == l_762), l_761[1][0], l_763, (**g_368), (safe_rshift_func_int8_t_s_u((safe_sub_func_int32_t_s_s(p_10, (safe_add_func_uint32_t_u_u((safe_mul_func_int16_t_s_s(p_10, g_127)), (&l_744 == &l_640))))), 0))));
                            (*l_744) |= (safe_sub_func_uint32_t_u_u(4294967293U, 0L));
                            (***g_368) &= p_10;
                            (***g_368) = (***g_368);
                        }
                    }
                }
                for (g_35 = 4; g_35 < 7; g_35 += 7)
                {
                    for (l_743 = 2; l_743 < 7; l_743 += 5)
                    {
                        for (l_732 = 0; l_732 < 1; l_732 += 1)
                        { /* block id: 797 */
                            (*g_368) = &l_607;
                        }
                    }
                }
            }
            else
            { /* block id: 800 */
                (*g_70) ^= (*l_762);
            }
        }
    }
    else
    { /* block id: 804 */
        int16_t l_793 = (-1L);
        int32_t *l_813 = 0;
        uint64_t l_814[3];
        int32_t ***l_821[1][3];
        uint32_t l_840 = 0xC5FB1D5AL;
        int i, j;
        for (i = 0; i < 3; i++)
            l_814[i] = 0U;
        for (i = 0; i < 1; i++)
        {
            for (j = 0; j < 3; j++)
                l_821[i][j] = &g_369[1][1];
        }
        if (p_10)
        { /* block id: 805 */
            uint16_t l_788[4];
            int32_t *l_789 = &g_118;
            int i;
            for (i = 0; i < 4; i++)
                l_788[i] = 0x6BD1L;
            for (g_508 = 7; (g_508 < 16); g_508 = safe_add_func_int64_t_s_s(g_508, 1))
            { /* block id: 808 */
                int64_t l_790 = 0xDDF4701C68682778LL;
                if ((safe_lshift_func_uint8_t_u_s(((0 == l_787) != 0x4D7B7CE234C738A0LL), l_788[3])))
                { /* block id: 809 */
                    if ((*l_607))
                        break;
                    if (l_788[3])
                        continue;
                    if ((*g_18))
                        continue;
                }
                else
                { /* block id: 813 */
                    (**g_368) = l_789;
                    if (l_790)
                        break;
                    (*l_608) = (***g_368);
                    if (p_10)
                        break;
                }
            }
        }
        else
        { /* block id: 820 */
            int32_t ***l_794 = &l_787;
            int32_t *l_800 = &g_118;
            int32_t l_825 = 1L;
            int i;
        }
        for (l_606 = 1; l_606 < 3; l_606 += 1)
        {
            for (g_118 = 2; g_118 < 8; g_118 += 1)
            { /* block id: 861 */
                uint8_t l_833[2][4][7] = {{{249U, 0U, 249U, 0U, 249U, 0U, 249U}, {249U, 0U, 249U, 0U, 249U, 0U, 249U}, {249U, 0U, 249U, 0U, 249U, 0U, 249U}, {249U, 0U, 249U, 0U, 249U, 0U, 249U}}, {{249U, 0U, 249U, 0U, 249U, 0U, 249U}, {249U, 0U, 249U, 0U, 249U, 0U, 249U}, {249U, 0U, 249U, 0U, 249U, 0U, 249U}, {249U, 0U, 249U, 0U, 249U, 0U, 249U}}};
                int32_t *l_837 = &g_35;
                int i, j, k;
                (*l_607) = ((safe_add_func_uint32_t_u_u(p_10, p_10)) && g_797[2]);
                l_761[1][0] = (**g_368);
                l_840 |= ((safe_div_func_uint16_t_u_u((*l_837), 4L)) == (l_761[(l_606) % 3][(uint32_t)(g_118) % 8] == (**g_368)));
                return p_10;
            }
        }
        (**g_368) = (**g_368);
    }
    return g_4;
}


/* ------------------------------------------ */
/* 
 * reads : g_18
 * writes: g_3
 */
uint8_t  func_13(int64_t  p_14, const uint32_t  p_15, int64_t  p_16, uint64_t  p_17)
{ /* block id: 4 */
    uint8_t l_19[5][7] = {{0x0EL, 0xD6L, 0x0EL, 0xD6L, 0x0EL, 0xD6L, 0x0EL}, {0x0EL, 0xD6L, 0x0EL, 0xD6L, 0x0EL, 0xD6L, 0x0EL}, {0x0EL, 0xD6L, 0x0EL, 0xD6L, 0x0EL, 0xD6L, 0x0EL}, {0x0EL, 0xD6L, 0x0EL, 0xD6L, 0x0EL, 0xD6L, 0x0EL}, {0x0EL, 0xD6L, 0x0EL, 0xD6L, 0x0EL, 0xD6L, 0x0EL}};
    int i, j;
    (*g_18) = p_17;
    return l_19[1][2];
}


/* ------------------------------------------ */
/* 
 * reads : g_368 g_369 g_70 g_513
 * writes: g_70
 */
uint16_t  func_21(int32_t  p_22, int32_t * p_23, uint8_t  p_24, int32_t * p_25, int32_t  p_26)
{ /* block id: 7 */
    uint64_t l_398 = 18446744073709551606U;
    int32_t l_402[4][8][1];
    int32_t ***l_410 = &g_369[4][1];
    int32_t *l_485 = 0;
    int32_t *l_574 = &g_513;
    int16_t l_575 = 0x2529L;
    uint32_t l_590 = 0xAD10DB91L;
    int32_t **l_605 = 0;
    int i, j, k;
    for (i = 0; i < 4; i++)
    {
        for (j = 0; j < 8; j++)
        {
            for (k = 0; k < 1; k++)
                l_402[i][j][k] = 1L;
        }
    }
    for (p_26 = (-20); (p_26 != (-17)); p_26 = safe_add_func_int16_t_s_s(p_26, 2))
    { /* block id: 10 */
        int32_t *l_392[8][1];
        int32_t *l_411 = &g_118;
        uint64_t l_453 = 0xF47E50A9CAA30F8ALL;
        int32_t l_465[10][3];
        int8_t l_473 = 0x0CL;
        const int16_t l_517 = 0x9AB8L;
        int i, j;
        for (i = 0; i < 8; i++)
        {
            for (j = 0; j < 1; j++)
                l_392[i][j] = 0;
        }
        for (i = 0; i < 10; i++)
        {
            for (j = 0; j < 3; j++)
                l_465[i][j] = 0x536DFCB9L;
        }
        for (p_22 = (-10); (p_22 != (-4)); p_22 = safe_add_func_int8_t_s_s(p_22, 1))
        { /* block id: 13 */
            int32_t *l_393 = 0;
        }
    }
    (**g_368) = (**g_368);
    return (*l_574);
}


/* ------------------------------------------ */
/* 
 * reads : g_35 g_180 g_2 g_70 g_134 g_118 g_127 g_94 g_368 g_369
 * writes: g_35 g_118 g_134 g_180 g_127 g_70 g_94
 */
int32_t  func_38(int32_t * p_39)
{ /* block id: 22 */
    int32_t *l_40 = &g_35;
    if ((l_40 == l_40))
    { /* block id: 23 */
        uint32_t l_352 = 0U;
        (*l_40) = (-1L);
        (*l_40) = ((safe_sub_func_uint32_t_u_u(((*l_40) && (*l_40)), (safe_sub_func_uint16_t_u_u((~func_45((*l_40), l_352, p_39, g_180, &g_134)), ((safe_add_func_uint16_t_u_u(((*l_40) > l_352), l_352)) ^ (*p_39)))))) || (&l_40 == 0));
    }
    else
    { /* block id: 329 */
        int8_t l_371 = (-4L);
        int32_t *l_376 = &g_35;
        int32_t l_377 = 0xE556765DL;
        if ((*p_39))
        { /* block id: 330 */
            uint8_t l_355 = 0xADL;
            int32_t **l_356 = &g_70;
            if ((l_355 <= (**l_356)))
            { /* block id: 331 */
                int i, j, k;
                for (g_118 = 1; g_118 < 7; g_118 += 1)
                {
                    for (g_127 = 3; g_127 < 7; g_127 += 1)
                    {
                        for (l_355 = 0; l_355 < 1; l_355 += 1)
                        { /* block id: 332 */
                            for (g_94 = 0; (g_94 <= 14); g_94 = safe_add_func_int32_t_s_s(g_94, 1))
                            { /* block id: 335 */
                                (**l_356) &= g_2[(uint32_t)(g_118) % 7][(uint64_t)(g_127) % 7][(l_355) % 1];
                                (*l_356) = p_39;
                            }
                            (**l_356) |= g_2[(uint32_t)(g_118) % 7][(uint64_t)(g_127) % 7][(l_355) % 1];
                        }
                    }
                }
                for (g_180 = (-2); (g_180 <= 14); g_180 = safe_add_func_int64_t_s_s(g_180, 2))
                { /* block id: 343 */
                    uint8_t l_361[7];
                    int32_t l_379 = 0x66894392L;
                    int i;
                    for (i = 0; i < 7; i++)
                        l_361[i] = 255U;
                }
                return (*p_39);
            }
            else
            { /* block id: 368 */
                return (*p_39);
            }
        }
        else
        { /* block id: 371 */
            (**g_368) = 0;
            return (*p_39);
        }
    }
    (*p_39) &= (*g_70);
    return (*l_40);
}


/* ------------------------------------------ */
/* 
 * reads : g_35 g_2 g_70 g_118 g_134 g_127 g_94 g_508
 * writes: g_118 g_180 g_127 g_70 g_134 g_508
 */
uint16_t  func_45(int8_t  p_46, int64_t  p_47, int32_t * p_48, uint32_t  p_49, int32_t * p_50)
{ /* block id: 25 */
    int32_t l_51 = 0x53D97512L;
    int64_t l_54 = (-4L);
    int32_t l_57 = 1L;
    l_57 = (l_51 ^ (l_54 != (0x0BL == (safe_lshift_func_uint8_t_u_u(g_35, p_46)))));
    if ((safe_add_func_int64_t_s_s((g_35 ^ (safe_rshift_func_uint8_t_u_s(((((*p_48) && (*p_48)) > (&g_35 != &g_35)) ^ (0xEA6AE202L && (l_57 >= g_35))), 5))), (((safe_add_func_int16_t_s_s((&g_35 != &l_57), (safe_div_func_int16_t_s_s((!l_57), (safe_div_func_int64_t_s_s(g_2[1][2][0], l_57)))))) > (-8L)) >= (g_70 != &g_35)))))
    { /* block id: 27 */
        uint32_t l_75 = 4294967294U;
        int32_t l_341[1];
        int i;
        for (i = 0; i < 1; i++)
            l_341[i] = 0x60065729L;
        if ((*p_50))
        { /* block id: 28 */
            const int32_t *l_327[5];
            int32_t **l_333[7];
            int i;
            for (i = 0; i < 5; i++)
                l_327[i] = &g_35;
            for (i = 0; i < 7; i++)
                l_333[i] = &g_70;
            (*p_50) = ((safe_lshift_func_int16_t_s_s((g_35 != (l_57 < (safe_rshift_func_int8_t_s_u(l_75, func_76(g_118, g_134, g_127))))), ((safe_add_func_uint16_t_u_u(((g_35 & l_57) & (l_51 && p_49)), l_75)) < l_57))) > 0x39F2E5EF0559B479LL);
            if ((l_75 <= p_46))
            { /* block id: 279 */
                const int32_t **l_328 = &l_327[0];
                (*l_328) = l_327[0];
                for (g_180 = 0; (g_180 < 44); g_180 = safe_add_func_int16_t_s_s(g_180, 1))
                { /* block id: 283 */
                    if ((*p_50))
                        break;
                }
            }
            else
            { /* block id: 286 */
                (*p_50) = (safe_rshift_func_uint16_t_u_u(p_49, 5));
            }
            for (g_127 = 0; (g_127 > (-20)); g_127 = safe_sub_func_uint64_t_u_u(g_127, 1))
            { /* block id: 291 */
                (*p_48) ^= (p_49 <= g_94);
            }
        }
        else
        { /* block id: 294 */
            uint64_t l_346[5][6] = {{0xE4EA6253B305B964LL, 0U, 0xE4EA6253B305B964LL, 0U, 0xE4EA6253B305B964LL, 0U}, {0xE4EA6253B305B964LL, 0U, 0xE4EA6253B305B964LL, 0U, 0xE4EA6253B305B964LL, 0U}, {0xE4EA6253B305B964LL, 0U, 0xE4EA6253B305B964LL, 0U, 0xE4EA6253B305B964LL, 0U}, {0xE4EA6253B305B964LL, 0U, 0xE4EA6253B305B964LL, 0U, 0xE4EA6253B305B964LL, 0U}, {0xE4EA6253B305B964LL, 0U, 0xE4EA6253B305B964LL, 0U, 0xE4EA6253B305B964LL, 0U}};
            int32_t **l_349 = &g_70;
            int32_t *** const l_348[7] = {&l_349, &l_349, &l_349, &l_349, &l_349, &l_349, &l_349};
            int i, j;
            for (l_57 = 21; (l_57 == (-3)); l_57 = safe_sub_func_uint32_t_u_u(l_57, 9))
            { /* block id: 297 */
                uint16_t l_345 = 0xA38DL;
lbl_344:
                for (l_54 = 0; (l_54 == 24); l_54 = safe_add_func_int8_t_s_s(l_54, 9))
                { /* block id: 300 */
                    const uint8_t l_340 = 5U;
                    l_341[0] ^= l_340;
                    if (l_51)
                        break;
                }
                for (g_180 = 0; (g_180 != 23); g_180 = safe_add_func_int64_t_s_s(g_180, 7))
                { /* block id: 306 */
                    int8_t l_347 = 0xC5L;
                    (*p_50) = 1L;
                    if (l_54)
                        goto lbl_344;
                    if (func_99(p_47))
                    { /* block id: 309 */
                        (*p_50) |= (65531U ^ l_57);
                        (*p_50) &= func_99(g_94);
                    }
                    else
                    { /* block id: 312 */
                        l_346[3][3] = l_345;
                        (*p_48) &= (*p_50);
                        (*p_48) = l_347;
                        (*p_48) = (0 != l_348[4]);
                    }
                    if (l_54)
                        break;
                }
                return p_46;
            }
        }
    }
    else
    { /* block id: 323 */
        int32_t *l_350 = &g_134;
        int32_t **l_351 = &g_70;
        (*l_351) = l_350;
        (*l_351) = p_50;
    }
    return l_51;
}


/* ------------------------------------------ */
/* 
 * reads : g_70 g_35 g_118 g_513 g_134
 * writes: g_118
 */
uint8_t  func_76(uint64_t  p_77, uint8_t  p_78, int16_t  p_79)
{ /* block id: 29 */
    int32_t *l_321 = &g_118;
    uint32_t l_324 = 0U;
    for (p_77 = 0; (p_77 < 19); p_77 = safe_add_func_uint64_t_u_u(p_77, 1))
    { /* block id: 32 */
        int32_t l_82 = 0x7FA52E96L;
        const int32_t **l_323 = &g_278;
        const int32_t ***l_322 = &l_323;
        l_82 &= (*g_70);
        (*l_322) = &g_278;
    }
    (*l_321) = (-1L);
    return l_324;
}


/* ------------------------------------------ */
/* 
 * reads : g_70 g_35 g_180 g_94 g_127 g_249 g_2 g_118 g_134
 * writes: g_70 g_134 g_180 g_127 g_278
 */
int32_t ** func_83(int32_t * p_84, int8_t  p_85)
{ /* block id: 34 */
    int32_t **l_202 = &g_70;
    int32_t **l_235[3][1];
    uint16_t l_262 = 0U;
    int16_t l_268 = 0x9E38L;
    const int16_t l_273 = (-1L);
    const int32_t *l_299[4][3];
    int32_t *l_300 = &g_134;
    uint32_t l_320 = 0xAB5558DFL;
    int i, j;
    for (i = 0; i < 3; i++)
    {
        for (j = 0; j < 1; j++)
            l_235[i][j] = &g_70;
    }
    for (i = 0; i < 4; i++)
    {
        for (j = 0; j < 3; j++)
            l_299[i][j] = &g_118;
    }
    if ((**l_202))
    { /* block id: 157 */
        const uint64_t l_213 = 0x55CB3DCC72A9CDD8LL;
        int32_t **l_237 = 0;
        uint16_t l_247[2][6][1];
        int i, j, k;
        for (i = 0; i < 2; i++)
        {
            for (j = 0; j < 6; j++)
            {
                for (k = 0; k < 1; k++)
                    l_247[i][j][k] = 0x4C25L;
            }
        }
        if ((safe_sub_func_int16_t_s_s((((*p_84) | (safe_div_func_int32_t_s_s(func_99((safe_div_func_int64_t_s_s(g_180, p_85))), (p_85 ^ 18446744073709551615U)))) > p_85), ((p_85 == func_99((safe_lshift_func_uint8_t_u_s(0xD6L, 2)))) > ((safe_add_func_int64_t_s_s(0x5BE66359415C7811LL, ((l_213 > (**l_202)) == (g_127 <= p_85)))) > (65535U & 0x04C9L))))))
        { /* block id: 158 */
            uint32_t l_227 = 4294967295U;
            int32_t l_232[2];
            int i;
            for (i = 0; i < 2; i++)
                l_232[i] = 0xDBE89911L;
        }
        else
        { /* block id: 202 */
            int i, j, k;
            (*l_202) = p_84;
            for (g_134 = 6; g_134 < 7; g_134 += 1)
            {
                for (g_180 = 6; g_180 < 7; g_180 += 7)
                {
                    for (g_127 = 0; g_127 < 1; g_127 += 1)
                    { /* block id: 204 */
                        int32_t **l_250[9];
                        uint32_t l_251 = 0x8A1C93EEL;
                        int i;
                        for (i = 0; i < 9; i++)
                            l_250[i] = 0;
                    }
                }
            }
        }
    }
    else
    { /* block id: 234 */
        int8_t l_265 = 9L;
        int32_t l_275 = 4L;
        int32_t l_310 = 0x68527ECBL;
        (*p_84) = (*p_84);
        if ((((((safe_mul_func_uint8_t_u_u((safe_sub_func_int16_t_s_s(p_85, p_85)), l_262)) <= g_249) ^ (**l_202)) >= ((~(p_84 != &g_134)) && ((safe_div_func_uint16_t_u_u((p_85 || l_265), (safe_add_func_int16_t_s_s(g_35, g_2[2][0][0])))) <= g_127))) < (l_268 < func_99((((p_85 || g_180) <= g_118) >= func_99(p_85))))))
        { /* block id: 236 */
            const int32_t *l_297[5][10][1];
            int32_t **l_309 = &l_300;
            int32_t **l_311 = &g_70;
            int i, j, k;
            for (i = 0; i < 5; i++)
            {
                for (j = 0; j < 10; j++)
                {
                    for (k = 0; k < 1; k++)
                        l_297[i][j][k] = &l_275;
                }
            }
            if (((0U ^ ((((safe_div_func_int16_t_s_s(p_85, g_180)) ^ (safe_mod_func_uint64_t_u_u(p_85, g_134))) ^ func_99(0U)) >= p_85)) >= l_273))
            { /* block id: 237 */
                (*p_84) = (p_84 == 0);
            }
            else
            { /* block id: 239 */
                int32_t *** const l_274 = &l_202;
                uint16_t l_295[4] = {0xFD7DL, 0xFD7DL, 0x607FL, 0xFD7DL};
                int i;
                (*p_84) ^= (l_274 != 0);
                (*p_84) &= (*g_70);
                if ((g_2[5][3][0] < ((1L >= p_85) ^ (l_274 != l_274))))
                { /* block id: 242 */
                    int32_t **l_285 = &g_70;
                    if ((g_134 & func_99(0x47L)))
                    { /* block id: 243 */
                        l_275 = (*g_70);
                    }
                    else
                    { /* block id: 245 */
                        const int32_t *l_277 = 0;
                        const int32_t **l_276[6];
                        int i;
                        for (i = 0; i < 6; i++)
                            l_276[i] = &l_277;
                        g_278 = &g_249;
                        (*p_84) &= (safe_add_func_int32_t_s_s((+((*p_84) ^ ((safe_rshift_func_uint16_t_u_s((p_85 <= g_180), (+g_249))) & (g_118 <= (&g_278 != l_285))))), (&p_84 != 0)));
                        (*p_84) ^= (!(safe_unary_minus_func_int8_t_s(((safe_mod_func_int16_t_s_s(func_99((g_2[4][2][0] > g_134)), (safe_rshift_func_int8_t_s_u(0x7EL, 2)))) >= (&p_84 == &p_84)))));
                    }
                    (*p_84) = 0x6349EEF0L;
                    for (l_268 = 19; (l_268 != 27); l_268 = safe_add_func_int8_t_s_s(l_268, 1))
                    { /* block id: 253 */
                        int64_t l_296 = 0x52224D5146EA9A46LL;
                        (*p_84) = ((p_85 || l_296) || func_99(g_2[1][6][0]));
                    }
                }
                else
                { /* block id: 256 */
                    const int32_t **l_298[2];
                    int i;
                    for (i = 0; i < 2; i++)
                        l_298[i] = &l_297[4][5][0];
                    l_299[2][1] = l_297[3][9][0];
                    (*p_84) &= l_275;
                }
            }
            if ((&l_297[4][3][0] != &l_299[3][0]))
            { /* block id: 261 */
                int16_t l_301[2];
                int i;
                for (i = 0; i < 2; i++)
                    l_301[i] = 0xDFF5L;
                p_84 = l_300;
                (*p_84) = l_301[1];
            }
            else
            { /* block id: 264 */
                uint32_t l_308 = 0x0C7240D8L;
                (*p_84) |= (((safe_mod_func_int64_t_s_s(g_2[3][4][0], (safe_lshift_func_int16_t_s_s(g_249, (l_275 == (safe_mod_func_int8_t_s_s(g_180, l_308))))))) == g_249) <= l_310);
                return l_311;
            }
        }
        else
        { /* block id: 268 */
            p_84 = &g_35;
        }
    }
    (*l_300) ^= (safe_sub_func_uint64_t_u_u((safe_rshift_func_uint16_t_u_u((safe_sub_func_int64_t_s_s(0xF25EA7EB5314A395LL, g_118)), g_2[3][4][0])), (safe_sub_func_int8_t_s_s(((-5L) || (((l_320 == g_249) >= (**l_202)) && g_2[1][6][0])), ((-5L) < 1U)))));
    return &g_70;
}


/* ------------------------------------------ */
/* 
 * reads : g_70 g_35 g_94 g_134 g_2 g_127 g_118 g_180
 * writes: g_94 g_127 g_118 g_134 g_70
 */
int32_t  func_86(const int16_t  p_87, int16_t  p_88, int32_t ** p_89)
{ /* block id: 35 */
    int32_t **l_92 = &g_70;
    int32_t l_132 = (-1L);
    for (p_88 = (-11); (p_88 > 27); p_88 = safe_add_func_uint32_t_u_u(p_88, 1))
    { /* block id: 38 */
        int32_t *l_93[6][8][1];
        int i, j, k;
        for (i = 0; i < 6; i++)
        {
            for (j = 0; j < 8; j++)
            {
                for (k = 0; k < 1; k++)
                    l_93[i][j][k] = 0;
            }
        }
        g_94 ^= ((l_92 == p_89) == (**l_92));
        for (g_94 = 0; (g_94 >= 16); g_94 = safe_add_func_uint16_t_u_u(g_94, 9))
        { /* block id: 42 */
            int32_t l_126 = 0L;
        }
        (*p_89) = (*p_89);
    }
    (*p_89) = 0;
    if ((safe_unary_minus_func_uint32_t_u(((**l_92) && p_88))))
    { /* block id: 60 */
        if ((*g_70))
        { /* block id: 61 */
            return l_132;
        }
        else
        { /* block id: 63 */
            int32_t ***l_141 = &l_92;
            int i, j, k;
            for (p_88 = 0; p_88 < 7; p_88 += 1)
            {
                for (g_94 = 5; g_94 < 7; g_94 += 4)
                {
                    for (g_127 = 0; g_127 < 1; g_127 += 1)
                    { /* block id: 64 */
                        int32_t *l_133 = &l_132;
                        int i, j, k;
                        (*l_133) = (-3L);
                        for (l_132 = 0; l_132 < 7; l_132 += 1)
                        {
                            for (g_118 = 0; g_118 < 7; g_118 += 7)
                            {
                                for (g_134 = 0; g_134 < 1; g_134 += 1)
                                { /* block id: 66 */
                                    int i, j, k;
                                }
                            }
                        }
                        for (g_118 = 0; (g_118 >= (-25)); g_118 = safe_sub_func_int32_t_s_s(g_118, 1))
                        { /* block id: 78 */
                            (*p_89) = &g_35;
                            for (g_134 = 0; (g_134 != (-11)); g_134 = safe_sub_func_int16_t_s_s(g_134, 1))
                            { /* block id: 82 */
                                return (*g_70);
                            }
                        }
                    }
                }
            }
            (*l_141) = p_89;
        }
    }
    else
    { /* block id: 89 */
        uint8_t l_143 = 1U;
        uint32_t l_168 = 4294967295U;
        int32_t l_187 = (-1L);
        int32_t l_194 = (-6L);
        int32_t ***l_197[10][9];
        int64_t l_198 = (-8L);
        int i, j;
        for (i = 0; i < 10; i++)
        {
            for (j = 0; j < 9; j++)
                l_197[i][j] = &l_92;
        }
        if (func_99((0xE8CDL && (**l_92))))
        { /* block id: 90 */
            int32_t *l_142[2][8];
            int i, j;
            for (i = 0; i < 2; i++)
            {
                for (j = 0; j < 8; j++)
                    l_142[i][j] = &l_132;
            }
            l_143 = func_99(g_94);
        }
        else
        { /* block id: 92 */
            uint32_t l_145[9] = {0x91C840D7L, 5U, 4294967291U, 5U, 0x91C840D7L, 0x71674060L, 0x91C840D7L, 5U, 4294967291U};
            uint64_t l_148 = 18446744073709551615U;
            uint64_t l_155 = 18446744073709551615U;
            int i;
            (*l_92) = (*p_89);
            if (p_88)
            { /* block id: 94 */
                int32_t *l_144 = &l_132;
                uint16_t l_164[1][4] = {{65528U, 0x28D9L, 65528U, 0x28D9L}};
                int i, j, k;
                (*l_144) = g_134;
                (*l_144) |= g_2[5][2][0];
                for (g_127 = 2; g_127 < 7; g_127 += 2)
                {
                    for (l_132 = 5; l_132 < 7; l_132 += 1)
                    {
                        for (p_88 = 0; p_88 < 1; p_88 += 1)
                        { /* block id: 97 */
                            int32_t *l_146 = &l_132;
                            if (l_145[8])
                            { /* block id: 98 */
                                int16_t l_147[5];
                                int i;
                                for (i = 0; i < 5; i++)
                                    l_147[i] = 0L;
                                (*l_92) = l_146;
                                return l_147[1];
                            }
                            else
                            { /* block id: 101 */
                                int32_t *l_149 = &g_118;
                                int32_t ***l_150 = &l_92;
                                l_148 ^= g_2[(uint32_t)((g_127 + 1)) % 7][(uint32_t)(l_132) % 7][(uint16_t)(p_88) % 1];
                                (*l_149) = (0 != p_89);
                                (*l_149) = l_148;
                                (*l_150) = &g_70;
                            }
                        }
                    }
                }
                if (l_143)
                { /* block id: 108 */
                    int i;
                    (*l_144) = (((&p_89 == &p_89) & (((safe_mul_func_uint8_t_u_u(g_127, p_87)) && g_118) || (safe_mul_func_uint8_t_u_u(p_88, (0x3BC2F6D6L >= (l_145[8] >= p_87)))))) | (g_118 >= p_87));
                    for (l_148 = 7; l_148 < 9; l_148 += 9)
                    { /* block id: 110 */
                        (*p_89) = &g_118;
                        return l_145[(l_148) % 9];
                    }
                    for (p_88 = 7; p_88 < 9; p_88 += 1)
                    { /* block id: 114 */
                        (*l_92) = 0;
                        (*p_89) = &g_118;
                        (*l_144) &= (0x88A057ECED5480CDLL & (p_89 != p_89));
                        return l_155;
                    }
                }
                else
                { /* block id: 120 */
                    int8_t l_166 = 4L;
                    (*l_144) = g_94;
                    (*l_144) = (safe_mul_func_uint8_t_u_u((safe_div_func_int8_t_s_s((g_127 & g_118), p_87)), (l_166 >= (safe_mul_func_int8_t_s_s(g_118, (((safe_sub_func_uint64_t_u_u(g_118, p_87)) < (safe_sub_func_uint32_t_u_u(p_87, l_168))) && g_127))))));
                }
            }
            else
            { /* block id: 124 */
                uint8_t l_177 = 1U;
                l_177 = ((safe_div_func_uint8_t_u_u(p_87, g_35)) >= g_134);
                if ((8U && (l_177 || (safe_mod_func_uint8_t_u_u(g_180, l_177)))))
                { /* block id: 126 */
                    int32_t *l_185 = &l_132;
                    int i;
                    (*l_185) |= (safe_mod_func_int8_t_s_s(((g_134 | ((p_89 != p_89) < (p_88 & l_168))) != p_87), (p_88 || (safe_lshift_func_int8_t_s_s(p_87, 1)))));
                    for (g_134 = 4; g_134 < 9; g_134 += 9)
                    { /* block id: 128 */
                        const uint16_t l_186 = 0x2D3BL;
                        (*l_185) &= (l_186 == g_2[3][6][0]);
                        (*p_89) = l_185;
                    }
                    g_70 = (*p_89);
                    (*l_185) ^= p_87;
                }
                else
                { /* block id: 134 */
                    return l_187;
                }
                for (l_155 = (-6); (l_155 > 5); l_155 = safe_add_func_int32_t_s_s(l_155, 1))
                { /* block id: 139 */
                    int32_t l_190 = (-2L);
                    int32_t *l_191 = &g_118;
                    (*l_191) = l_190;
                }
            }
            for (g_134 = 0; (g_134 != 14); g_134 = safe_add_func_int64_t_s_s(g_134, 1))
            { /* block id: 145 */
                g_134 |= g_94;
            }
        }
        l_198 |= ((l_194 & func_99(func_99(g_35))) <= (safe_div_func_int64_t_s_s((l_197[6][8] == &p_89), g_35)));
    }
    for (p_88 = 0; (p_88 < (-19)); p_88 = safe_sub_func_uint32_t_u_u(p_88, 1))
    { /* block id: 153 */
        uint16_t l_201 = 0x2678L;
        return l_201;
    }
    return (**l_92);
}


/* ------------------------------------------ */
/* 
 * reads : g_70 g_35 g_94 g_118 g_134
 * writes:
 */
uint8_t  func_99(uint8_t  p_100)
{ /* block id: 43 */
    int16_t l_101[5][2][8];
    uint64_t l_106 = 0x91E6DCF67A9F6563LL;
    int32_t * const l_113 = 0;
    int32_t *l_114 = 0;
    uint32_t l_115[4] = {0x91F928D8L, 8U, 0x91F928D8L, 8U};
    uint32_t l_116 = 4294967288U;
    int32_t *l_117[7][4][1];
    int16_t l_119 = 1L;
    int i, j, k;
    for (i = 0; i < 5; i++)
    {
        for (j = 0; j < 2; j++)
        {
            for (k = 0; k < 8; k++)
                l_101[i][j][k] = 0x80CEL;
        }
    }
    for (i = 0; i < 7; i++)
    {
        for (j = 0; j < 4; j++)
        {
            for (k = 0; k < 1; k++)
                l_117[i][j][k] = &g_118;
        }
    }
    l_101[1][1][3] ^= (*g_70);
    l_115[1] &= (safe_mod_func_int32_t_s_s((safe_sub_func_int8_t_s_s((l_106 | (((l_106 || l_101[3][1][0]) > l_101[2][0][3]) <= 3U)), g_94)), (safe_lshift_func_int16_t_s_s((safe_div_func_uint32_t_u_u(4U, (*g_70))), ((safe_lshift_func_uint8_t_u_u(246U, l_106)) >= (0 != l_113))))));
    l_119 = l_116;
    return p_100;
}




/* ---------------------------------------- */
int main (int argc, char* argv[])
{
    int i, j, k;
    int print_hash_value = 0;
    if (argc == 2 && strcmp(argv[1], "1") == 0) print_hash_value = 1;
    platform_main_begin();
    crc32_gentab();
    func_1();
    for (i = 0; i < 7; i++)
    {
        for (j = 0; j < 7; j++)
        {
            for (k = 0; k < 1; k++)
            {
                transparent_crc(g_2[i][j][k], "g_2[i][j][k]", print_hash_value);
                if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);

            }
        }
    }
    transparent_crc(g_3, "g_3", print_hash_value);
    transparent_crc(g_4, "g_4", print_hash_value);
    transparent_crc(g_5, "g_5", print_hash_value);
    transparent_crc(g_35, "g_35", print_hash_value);
    transparent_crc(g_94, "g_94", print_hash_value);
    transparent_crc(g_118, "g_118", print_hash_value);
    transparent_crc(g_127, "g_127", print_hash_value);
    transparent_crc(g_134, "g_134", print_hash_value);
    transparent_crc(g_180, "g_180", print_hash_value);
    transparent_crc(g_249, "g_249", print_hash_value);
    transparent_crc(g_508, "g_508", print_hash_value);
    transparent_crc(g_513, "g_513", print_hash_value);
    for (i = 0; i < 9; i++)
    {
        transparent_crc(g_797[i], "g_797[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_807, "g_807", print_hash_value);
    transparent_crc(g_883, "g_883", print_hash_value);
    platform_main_end(crc32_context ^ 0xFFFFFFFFUL);
    return 0;
}

/************************ statistics *************************
XXX max struct depth: 0
breakdown:
   depth: 0, occurrence: 312

XXX max expression depth: 3
breakdown:
   depth: 0, occurrence: 427
   depth: 1, occurrence: 47
   depth: 2, occurrence: 7
   depth: 3, occurrence: 1

XXX total number of pointers: 139

XXX times a variable address is taken: 89
XXX times a pointer is dereferenced on RHS: 249
breakdown:
   depth: 1, occurrence: 167
   depth: 2, occurrence: 51
   depth: 3, occurrence: 31
XXX times a pointer is dereferenced on LHS: 293
breakdown:
   depth: 1, occurrence: 195
   depth: 2, occurrence: 65
   depth: 3, occurrence: 33
XXX times a pointer is compared with null: 32
XXX times a pointer is compared with address of another variable: 26
XXX times a pointer is compared with another pointer: 27
XXX times a pointer is qualified to be dereferenced: 1487

XXX max dereference level: 3
breakdown:
   level: 0, occurrence: 0
   level: 1, occurrence: 1062
   level: 2, occurrence: 367
   level: 3, occurrence: 147
XXX number of pointers point to pointers: 54
XXX number of pointers point to scalars: 85
XXX number of pointers point to structs: 0
XXX percent of pointers has null in alias set: 30.9
XXX average alias set size: 1.4

XXX times a non-volatile is read: 1632
XXX times a non-volatile is write: 829
XXX times a volatile is read: 32
XXX    times read thru a pointer: 0
XXX times a volatile is write: 3
XXX    times written thru a pointer: 0
XXX times a volatile is available for access: 227
XXX percentage of non-volatile access: 98.6

XXX forward jumps: 4
XXX backward jumps: 6

XXX stmts: 977

XXX percentage a fresh-made variable is used: 15.7
XXX percentage an existing variable is used: 84.3
********************* end of statistics **********************/