Sorry but it seems today I am hitting them all.
2 crashes, both generated by something like (so might be some bug, or not...):
clang_delta: /home/pm18/llvm/tools/clang/lib/Rewrite/Rewriter.cpp:212: unsigned
int clang::Rewriter::getLocationOffsetAndFileID(clang::SourceLocation,
clang::FileID&) const: Assertion `Loc.isValid() && "Invalid location"' failed.
Stack dump:
0. <eof> parser at end of file
sh: line 1: 19377 Aborted /home/pm18/local/libexec/clang_delta
--transformation=remove-unused-var --counter=7 t445.c > /tmp/fileBj2X0w
=======================================
Crash files attached.
Paulo Matos
Member of the CSR plc group of companies. CSR plc registered in England and
Wales, registered number 4187346, registered office Churchill House, Cambridge
Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at
http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
/*
*/
#include "csmith.h"
union U0 {
uint32_t f0;
int8_t f1;
uint16_t f2;
};
static uint32_t g_7 = 0UL;
static int32_t g_9 = (-2L);
static uint32_t g_24 = 4294967287UL;
static int64_t g_30 = 0L;
static int64_t g_32 = 0x67120DD93BA6AED1LL;
static int32_t g_35 = (-9L);
static uint32_t g_70[1] ;
static uint16_t g_75 = 0x8CE1L;
static int8_t g_108 = 0xE0L;
static int8_t *g_107 = &g_108;
static int8_t *g_111 = &g_108;
static uint8_t g_112[2] ;
static int32_t g_168 = 0x44AB526FL;
static uint8_t g_173[2] ;
static uint64_t g_176 = 0UL;
static uint64_t g_186 = 0UL;
static int64_t g_229 = (-6L);
static uint32_t g_233 = 0xB5CD2D3AL;
static int64_t *g_255 = &g_32;
static int32_t g_287[3][1] ;
static int32_t g_293[4] ;
static int16_t g_304 = 9L;
static int32_t *g_332 = &g_35;
static int8_t g_393 = 0x3CL;
static int32_t g_458 = 0x7A19AC10L;
static const int64_t *g_494 = &g_229;
static const int64_t **g_493 = &g_494;
static const int64_t ***g_492 = &g_493;
static uint32_t g_497[2] ;
static int32_t *g_563 = &g_35;
static uint8_t g_673 = 0x16L;
static int32_t * func_2(uint16_t p_3, int32_t * p_4);
static int32_t func_10(int32_t * p_11, int32_t * p_12);
static int32_t * func_13(int32_t * p_14);
/*
*/
static uint32_t func_1(void)
{ /* block id: 0 */
int32_t * const l_8[3][2] ;
int32_t *l_457 = &g_458;
int32_t **l_918 = &g_563;
int32_t ***l_919 = &l_918;
(*l_918) = func_2((g_497[1] &= (((safe_rshift_func_uint16_t_u_u(65535UL,
12)) , ((g_7 , l_8[2][0]) != (void*)0)) & func_10(func_13(&g_9), l_457))),
l_457);
g_9 = ((*g_563) = (*l_457));
}
static int32_t * func_2(uint16_t p_3, int32_t * p_4)
{ /* block id: 347 */
int32_t *l_498 = &g_458;
int32_t l_499 = 0x38690E2FL;
int32_t *l_505 = &g_293[3];
int32_t l_554 = 0x904A1478L;
int64_t l_592 = 0x6180B9A53B729DBDLL;
int32_t l_724 = 0xFA28598CL;
int i, j;
if ((p_3 < ((*g_107) = (((l_499 &= (*l_498)) ,
(safe_rshift_func_uint8_t_u_s(255UL, ((safe_add_func_uint8_t_u_u(func_10(p_4,
p_4), (*g_107))) || (*l_498))))) == 18446744073709551606UL))))
;
{ /* block id: 534 */
union U0 l_741 ;
int32_t l_746 = 0x1AF9E396L;
{ /* block id: 537 */
for (g_458 = 2; (g_458 >= 0); g_458 -= 1)
;
}
}
}
/*
*/
static int32_t func_10(int32_t * p_11, int32_t * p_12)
{ /* block id: 310 */
int32_t l_474 = 4L;
}
/*
*/
static int32_t * func_13(int32_t * p_14)
{ /* block id: 1 */
uint8_t l_21 = 1UL;
uint64_t *l_25 = (void*)0;
int32_t l_26 = 0xE491BA6BL;
int64_t *l_29 = &g_30;
int64_t l_49 = (-1L);
int32_t *l_117[1];
union U0 l_213 ;
int32_t l_399[4][4] ;
int i, j;
if ((4L >= (g_9 & (g_32 =
(safe_mod_func_uint64_t_u_u(((safe_mod_func_int16_t_s_s((l_21 < l_21), (g_24 ^=
(safe_sub_func_uint16_t_u_u(l_21, l_21))))) , (l_26 = 0UL)), ((*l_29) =
(safe_add_func_int16_t_s_s(g_9, 0x1DABL)))))))))
if ((5UL < l_399[2][1]))
;
}
int main (void)
{
int i, j;
int print_hash_value = 0;
crc32_gentab();
func_1();
transparent_crc(g_9, "g_9", print_hash_value);
for (i = 0; i < 1; i++)
platform_main_end(crc32_context ^ 0xFFFFFFFFUL, print_hash_value);
return 0;
}
/************************ statistics *************************
********************* end of statistics **********************/
// /home/pm18/local/libexec/clang_delta --transformation=remove-unused-var
--counter=7 t445.c
/*
*/
#include "csmith.h"
struct U0 {
uint32_t f0;
int8_t f1;
uint16_t f2;
};
static uint32_t g_7 = 0UL;
static int32_t g_9 = -2L;
static int64_t g_30 = 0L;
static int64_t g_32 = 0x67120DD93BA6AED1LL;
static int32_t g_35 = -9L;
static uint32_t g_70[1] ;
static uint16_t g_75 = 0x8CE1L;
static int8_t g_108 = 0xE0L;
static int8_t *g_107 = &g_108;
static int8_t g_111 = &g_108;
static uint8_t g_112[2] ;
static int32_t g_168 = 0x44AB526FL;
static uint8_t g_173[2] ;
static uint64_t g_176 = 0UL;
static uint64_t g_186 = 0UL;
static int64_t g_229 = -6L;
static uint32_t g_233 = 0xB5CD2D3AL;
static int64_t *g_255 = &g_32;
static int32_t g_287[3][1] ;
static int32_t g_293[4] ;
static int16_t g_304 = 9L;
static int32_t *g_332 = &g_35;
static int8_t g_393 = 0x3CL;
static int32_t g_458 = 0x7A19AC10L;
static const int64_t *g_494 = &g_229;
static const int64_t *g_493 = &g_494;
static const int64_t *g_492 = &g_493;
static uint32_t g_497[2] ;
static int32_t *g_563 = &g_35;
static uint8_t g_673 = 0x16L;
;
;
;
/*
*/
int func_2_i;
int func_2_j;
struct U0 func_2_l_741;
static int32_t * func_2(uint16_t p_3, int32_t * p_4)
{ /* block id: 347 */
int32_t *l_498 = &g_458;
int32_t l_499 = 0x38690E2FL;
int32_t *l_505 = &g_293[3];
int32_t l_554 = 0x904A1478L;
int64_t l_592 = 0x6180B9A53B729DBDLL;
int32_t l_724 = 0xFA28598CL;
if (p_3 < (*g_107 = l_499 &= *l_498 , safe_rshift_func_uint8_t_u_s ==
18446744073709551606UL))
;
/* block id: 534 */
int32_t l_746 = 0x1AF9E396L;
/* block id: 537 */
for (g_458 = 2; g_458 >= 0; g_458 -= 1)
;
}
/*
*/
static int32_t func_10(int32_t * p_11, int32_t * p_12)
{ /* block id: 310 */
int32_t l_474 = 4L;
}
/*
*/
struct U0 func_13_l_213;
int func_13_i;
int func_13_j;
static int32_t * func_13(int32_t * p_14)
{ /* block id: 1 */
uint8_t l_21 = 1UL;
uint64_t *l_25 = 0;
int32_t l_26 = 0xE491BA6BL;
int64_t *l_29 = &g_30;
int64_t l_49 = -1L;
int32_t *l_117[1];
int32_t l_399[4][4] ;
if (4L >= g_9 & (g_32 = safe_mod_func_uint64_t_u_u))
if (5UL < l_399[2][1])
;
}
int main_j;
int main (void)
{
int i;
int print_hash_value = 0;
crc32_gentab();
{ /* block id: 0 */
int32_t * const l_8[3][2] ;
int32_t *l_457 = &g_458;
int32_t **l_918 = &g_563;
int32_t ***l_919 = &l_918;
*l_918 = func_2(g_497[1] &= (safe_rshift_func_uint16_t_u_u , g_7 ,
l_8[2][0] != 0) & func_10(func_13, l_457), l_457);
g_9 = *g_563 = *l_457;
}
;
transparent_crc(g_9, "g_9", print_hash_value);
for (i = 0; i < 1; i++)
platform_main_end(crc32_context ^ 0xFFFFFFFFUL, print_hash_value);
return 0;
}
/************************ statistics *************************
********************* end of statistics **********************/
// /home/pm18/local/libexec/clang_delta --transformation=remove-unused-var
--counter=6 t445.c