@ -12,38 +12,40 @@ target triple = "x86_64-apple-macosx10.10.0"
; F u n c t i o n Attrs: nounwind ssp uwtable
; F u n c t i o n Attrs: nounwind ssp uwtable
define void @foo ( ) #0 {
define void @foo ( ) #0 {
%p = alloca i32 * , align 8
%p = alloca i32 * , align 8
call void @llvm.dbg.declare ( metadata ! { i32 * * %p } , metadata !11 ) , !dbg !14
call void @llvm.dbg.declare ( metadata i32 * * %p , metadata !12 , metadata !15 ) , !dbg !16
store i32 * null , i32 * * %p , align 8 , !dbg !1 5
store i32 * null , i32 * * %p , align 8 , !dbg !1 6
%1 = load i32 * * %p , align 8 , !dbg !1 6
%1 = load i32 * * %p , align 8 , !dbg !1 7
store i32 42 , i32 * %1 , align 4 , !dbg !1 6
store i32 42 , i32 * %1 , align 4 , !dbg !1 8
ret void , !dbg !1 7
ret void , !dbg !1 9
}
}
; F u n c t i o n Attrs: nounwind readnone
; F u n c t i o n Attrs: nounwind readnone
declare void @llvm.dbg.declare ( metadata , metadata ) #1
declare void @llvm.dbg.declare ( metadata , metadata , metadata ) #1
attributes #0 = { nounwind ssp uwtable "less-precise-fpmad" = "false" "no-frame-pointer-elim" = "true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math" = "false" "no-nans-fp-math" = "false" "stack-protector-buffer-size" = "8" "unsafe-fp-math" = "false" "use-soft-float" = "false" }
attributes #0 = { nounwind ssp uwtable "less-precise-fpmad" = "false" "no-frame-pointer-elim" = "true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math" = "false" "no-nans-fp-math" = "false" "stack-protector-buffer-size" = "8" "unsafe-fp-math" = "false" "use-soft-float" = "false" }
attributes #1 = { nounwind readnone }
attributes #1 = { nounwind readnone }
!llvm.dbg.cu = ! { !0 }
!llvm.dbg.cu = ! { !0 }
!llvm.module.flags = ! { !8 , !9 }
!llvm.module.flags = ! { !8 , !9 , !10 }
!llvm.ident = ! { !1 0 }
!llvm.ident = ! { !1 1 }
!0 = metadata ! { i32 786449 , metadata !1 , i32 12 , metadata !"Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)" , i1 false , metadata !"" , i32 0 , metadata !2 , metadata !2 , metadata !3 , metadata !2 , metadata !2 , metadata !"" , i32 1 } ; [ D W _ T A G _ c o m p i l e _ u n i t ] [ / U s e r s / r o h a n j r / i n f e r / i n f e r / t e s t s / c o d e t o a n a l y z e / l l v m / n u l l _ d e r e f . c ] [ D W _ L A N G _ C 99 ]
!0 = ! { !"0x11\0012\00clang version 3.6.1 (tags/RELEASE_361/final)\000\00\000\00\001" , !1 , !2 , !2 , !3 , !2 , !2 } ; [ D W _ T A G _ c o m p i l e _ u n i t ] [ / U s e r s / r o h a n j r / i n f e r / i n f e r / t e s t s / c o d e t o a n a l y z e / l l v m / n u l l _ d e r e f . c ] [ D W _ L A N G _ C 99 ]
!1 = metadata ! { metadata !"null_deref.c" , metadata !"/Users/rohanjr/infer/infer/tests/codetoanalyze/llvm" }
!1 = ! { !"null_deref.c" , !"/Users/rohanjr/infer/infer/tests/codetoanalyze/llvm" }
!2 = metadata ! { }
!2 = ! { }
!3 = metadata ! { metadata !4 }
!3 = ! { !4 }
!4 = metadata ! { i32 786478 , metadata !1 , metadata !5 , metadata !"foo" , metadata !"foo" , metadata !"" , i32 10 , metadata !6 , i1 false , i1 true , i32 0 , i32 0 , null , i32 256 , i1 false , void ( ) * @foo , null , null , metadata !2 , i32 10 } ; [ D W _ T A G _ s u b p r o g r a m ] [ l i ne 10 ] [ d e f ] [ f o o ]
!4 = ! { !"0x2e\00foo\00foo\00\0010\000\001\000\000\00256\000\0010" , !1 , !5 , !6 , null , void ( ) * @foo , null , null , !2 } ; [ D W _ T A G _ s u b p r o g r a m ] [ l i ne 10 ] [ d e f ] [ f o o ]
!5 = metadata ! { i32 786473 , metadata !1 } ; [ D W _ T A G _ f i l e _ type ] [ / U s e r s / r o h a n j r / i n f e r / i n f e r / t e s t s / c o d e t o a n a l y z e / l l v m / n u l l _ d e r e f . c ]
!5 = ! { !"0x29" , !1 } ; [ D W _ T A G _ f i l e _ type ] [ / U s e r s / r o h a n j r / i n f e r / i n f e r / t e s t s / c o d e t o a n a l y z e / l l v m / n u l l _ d e r e f . c ]
!6 = metadata ! { i32 786453 , i32 0 , null , metadata !"" , i32 0 , i64 0 , i64 0 , i64 0 , i32 0 , null , metadata !7 , i32 0 , null , null , null } ; [ D W _ T A G _ s u b r o u t i n e _ type ] [ l i ne 0 , s i z e 0 , align 0 , o f f s e t 0 ] [ from ]
!6 = ! { !"0x15\00\000\000\000\000\000\000" , null , null , null , !7 , null , null , null } ; [ D W _ T A G _ s u b r o u t i n e _ type ] [ l i ne 0 , s i z e 0 , align 0 , o f f s e t 0 ] [ from ]
!7 = metadata ! { null }
!7 = ! { null }
!8 = metadata ! { i32 2 , metadata !"Dwarf Version" , i32 2 }
!8 = ! { i32 2 , !"Dwarf Version" , i32 2 }
!9 = metadata ! { i32 2 , metadata !"Debug Info Version" , i32 602053001 }
!9 = ! { i32 2 , !"Debug Info Version" , i32 2 }
!10 = metadata ! { metadata !"Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)" }
!10 = ! { i32 1 , !"PIC Level" , i32 2 }
!11 = metadata ! { i32 786688 , metadata !4 , metadata !"p" , metadata !5 , i32 11 , metadata !12 , i32 0 , i32 0 } ; [ D W _ T A G _ a u t o _ v a r i a b l e ] [ p ] [ l i ne 11 ]
!11 = ! { !"clang version 3.6.1 (tags/RELEASE_361/final)" }
!12 = metadata ! { i32 786447 , null , null , metadata !"" , i32 0 , i64 64 , i64 64 , i64 0 , i32 0 , metadata !13 } ; [ D W _ T A G _ p o i n t e r _ type ] [ l i ne 0 , s i z e 64 , align 64 , o f f s e t 0 ] [ from i n t ]
!12 = ! { !"0x100\00p\0011\000" , !4 , !5 , !13 } ; [ D W _ T A G _ a u t o _ v a r i a b l e ] [ p ] [ l i ne 11 ]
!13 = metadata ! { i32 786468 , null , null , metadata !"int" , i32 0 , i64 32 , i64 32 , i64 0 , i32 0 , i32 5 } ; [ D W _ T A G _ b a s e _ type ] [ i n t ] [ l i ne 0 , s i z e 32 , align 32 , o f f s e t 0 , e n c D W _ A T E _ s i g n e d ]
!13 = ! { !"0xf\00\000\0064\0064\000\000" , null , null , !14 } ; [ D W _ T A G _ p o i n t e r _ type ] [ l i ne 0 , s i z e 64 , align 64 , o f f s e t 0 ] [ from i n t ]
!14 = metadata ! { i32 11 , i32 9 , metadata !4 , null } ; [ D W _ T A G _ l e x i c a l _ b l o c k ] [ / ]
!14 = ! { !"0x24\00int\000\0032\0032\000\000\005" , null , null } ; [ D W _ T A G _ b a s e _ type ] [ i n t ] [ l i ne 0 , s i z e 32 , align 32 , o f f s e t 0 , e n c D W _ A T E _ s i g n e d ]
!15 = metadata ! { i32 11 , i32 4 , metadata !4 , null } ; [ D W _ T A G _ l e x i c a l _ b l o c k ] [ / ]
!15 = ! { !"0x102" } ; [ D W _ T A G _ e x p r e s s i o n ]
!16 = metadata ! { i32 12 , i32 4 , metadata !4 , null }
!16 = !MDLocation ( line: 11 , column: 9 , scope: !4 )
!17 = metadata ! { i32 13 , i32 1 , metadata !4 , null }
!17 = !MDLocation ( line: 12 , column: 5 , scope: !4 )
!18 = !MDLocation ( line: 12 , column: 4 , scope: !4 )
!19 = !MDLocation ( line: 13 , column: 1 , scope: !4 )