Thanks for using Compiler Explorer
Sponsors
Jakt
C++
Ada
Algol68
Analysis
Android Java
Android Kotlin
Assembly
C
C3
Carbon
C with Coccinelle
C++ with Coccinelle
C++ (Circle)
CIRCT
Clean
CMake
CMakeScript
COBOL
C++ for OpenCL
MLIR
Cppx
Cppx-Blue
Cppx-Gold
Cpp2-cppfront
Crystal
C#
CUDA C++
D
Dart
Elixir
Erlang
Fortran
F#
GLSL
Go
Haskell
HLSL
Hook
Hylo
IL
ispc
Java
Julia
Kotlin
LLVM IR
LLVM MIR
Modula-2
Mojo
Nim
Numba
Nix
Objective-C
Objective-C++
OCaml
Odin
OpenCL C
Pascal
Pony
PTX
Python
Racket
Raku
Ruby
Rust
Sail
Snowball
Scala
Slang
Solidity
Spice
SPIR-V
Swift
LLVM TableGen
Toit
Triton
TypeScript Native
V
Vala
Visual Basic
Vyper
WASM
Zig
Javascript
GIMPLE
Ygen
sway
llvm source #1
Output
Compile to binary object
Link to binary
Execute the code
Intel asm syntax
Demangle identifiers
Verbose demangling
Filters
Unused labels
Library functions
Directives
Comments
Horizontal whitespace
Debug intrinsics
Compiler
clang (assertions trunk)
clang (trunk)
clang 10.0.0
clang 10.0.1
clang 11.0.0
clang 11.0.1
clang 12.0.0
clang 12.0.1
clang 13.0.0
clang 14.0.0
clang 15.0.0
clang 16.0.0
clang 17.0.1
clang 18.1.0
clang 19.1.0
clang 20.1.0
clang 21.1.0
clang 4.0.1
clang 5.0.0
clang 6.0.0
clang 7.0.0
clang 8.0.0
clang 9.0.0
hexagon-clang 16.0.5
llc (assertions trunk)
llc (trunk)
llc 10.0.0
llc 10.0.1
llc 11.0.0
llc 11.0.1
llc 12.0.0
llc 12.0.1
llc 13.0.0
llc 14.0.0
llc 15.0.0
llc 16.0.0
llc 17.0.1
llc 18.1.0
llc 19.1.0
llc 20.1.0
llc 21.1.0
llc 3.2
llc 3.3
llc 3.9.1
llc 4.0.0
llc 4.0.1
llc 5.0.0
llc 6.0.0
llc 7.0.0
llc 8.0.0
llc 9.0.0
opt (assertions trunk)
opt (trunk)
opt 10.0.0
opt 10.0.1
opt 11.0.0
opt 11.0.1
opt 12.0.0
opt 12.0.1
opt 13.0.0
opt 14.0.0
opt 15.0.0
opt 16.0.0
opt 17.0.1
opt 18.1.0
opt 19.1.0
opt 20.1.0
opt 21.1.0
opt 3.2
opt 3.3
opt 3.9.1
opt 4.0.0
opt 4.0.1
opt 5.0.0
opt 6.0.0
opt 7.0.0
opt 8.0.0
opt 9.0.0
Options
Source code
%struct.exec = type { i32, i32, i32, i32, i32, i32, i32, i32 } @.str = external hidden unnamed_addr constant [5 x i8], align 1 ; Function Attrs: nofree declare noundef i32 @open64(ptr nocapture noundef readonly, i32 noundef, ...) local_unnamed_addr #0 ; Function Attrs: nounwind declare i64 @lseek64(i32 noundef, i64 noundef, i32 noundef) local_unnamed_addr #1 declare i32 @close(i32 noundef) local_unnamed_addr #2 ; Function Attrs: nofree declare noundef i64 @read(i32 noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #0 ; Function Attrs: allocsize(0) declare noalias ptr @g_malloc(i64 noundef) local_unnamed_addr #3 ; Function Attrs: nounwind sspstrong uwtable declare dso_local ptr @rom_add_blob(ptr noundef, ptr nocapture noundef readonly, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #4 declare void @g_free(ptr noundef) #2 ; Function Attrs: nounwind sspstrong uwtable define dso_local i64 @src(ptr nocapture noundef readonly %filename, i64 noundef %addr, i32 noundef %max_sz, i32 noundef %bswap_needed, i64 noundef %target_page_size) local_unnamed_addr #4 { entry: %e = alloca %struct.exec, align 4 %call = tail call i32 (ptr, i32, ...) @open64(ptr noundef %filename, i32 noundef 0) #6 %cmp = icmp slt i32 %call, 0 br i1 %cmp, label %return, label %if.end if.end: ; preds = %entry %call1 = call i64 @read(i32 noundef %call, ptr noundef nonnull %e, i64 noundef 32) #6 %cmp2 = icmp slt i64 %call1, 0 br i1 %cmp2, label %fail, label %if.end4 if.end4: ; preds = %if.end %tobool.not = icmp eq i32 %bswap_needed, 0 %.pre = load i32, ptr %e, align 4 br i1 %tobool.not, label %if.end6, label %if.then5 if.then5: ; preds = %if.end4 %0 = tail call i32 @llvm.bswap.i32(i32 %.pre) %a_text.i = getelementptr inbounds i8, ptr %e, i64 4 %1 = load i32, ptr %a_text.i, align 4 %2 = tail call i32 @llvm.bswap.i32(i32 %1) store i32 %2, ptr %a_text.i, align 4 %a_data.i = getelementptr inbounds i8, ptr %e, i64 8 %3 = load i32, ptr %a_data.i, align 4 %4 = tail call i32 @llvm.bswap.i32(i32 %3) store i32 %4, ptr %a_data.i, align 4 br label %if.end6 if.end6: ; preds = %if.then5, %if.end4 %5 = phi i32 [ %0, %if.then5 ], [ %.pre, %if.end4 ] %trunc = trunc i32 %5 to i16 switch i16 %trunc, label %fail [ i16 267, label %sw.bb i16 204, label %sw.bb i16 263, label %sw.bb i16 264, label %cond.end58 ] sw.bb: ; preds = %if.end6, %if.end6, %if.end6 %a_text = getelementptr inbounds i8, ptr %e, i64 4 %6 = load i32, ptr %a_text, align 4 %a_data = getelementptr inbounds i8, ptr %e, i64 8 %7 = load i32, ptr %a_data, align 4 %add = add i32 %7, %6 %cmp7 = icmp ugt i32 %add, %max_sz br i1 %cmp7, label %fail, label %if.end9 if.end9: ; preds = %sw.bb %and11 = and i32 %5, 65535 %cmp12 = icmp eq i32 %and11, 267 %cmp15 = icmp eq i32 %and11, 204 %cond = select i1 %cmp15, i64 0, i64 32 %cond16 = select i1 %cmp12, i64 1024, i64 %cond %call17 = tail call i64 @lseek64(i32 noundef %call, i64 noundef %cond16, i32 noundef 0) #6 %conv = zext i32 %add to i64 %call.i = tail call noalias ptr @g_malloc(i64 noundef %conv) #7 %call1.i = tail call i64 @read(i32 noundef %call, ptr noundef %call.i, i64 noundef %conv) #6 %cmp.i = icmp sgt i64 %call1.i, 0 br i1 %cmp.i, label %read_targphys.exit.thread, label %read_targphys.exit read_targphys.exit.thread: ; preds = %if.end9 %call2.i = tail call ptr @rom_add_blob(ptr noundef nonnull @.str, ptr noundef %call.i, i64 noundef %call1.i, i64 noundef %call1.i, i64 noundef %addr, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null, i1 noundef zeroext true) tail call void @g_free(ptr noundef %call.i) #6 br label %return.sink.split read_targphys.exit: ; preds = %if.end9 tail call void @g_free(ptr noundef %call.i) #6 %cmp22 = icmp slt i64 %call1.i, 0 br i1 %cmp22, label %fail, label %return.sink.split cond.end58: ; preds = %if.end6 %a_text52 = getelementptr inbounds i8, ptr %e, i64 4 %8 = load i32, ptr %a_text52, align 4 %conv53 = zext i32 %8 to i64 %add55 = add i64 %target_page_size, -1 %sub = add i64 %add55, %conv53 %not = sub i64 0, %target_page_size %and57 = and i64 %sub, %not %a_data60 = getelementptr inbounds i8, ptr %e, i64 8 %9 = load i32, ptr %a_data60, align 4 %conv61 = zext i32 %9 to i64 %add62 = add i64 %and57, %conv61 %conv63 = sext i32 %max_sz to i64 %cmp64 = icmp ugt i64 %add62, %conv63 br i1 %cmp64, label %fail, label %if.end67 if.end67: ; preds = %cond.end58 %and69 = and i32 %5, 65535 %cmp70 = icmp eq i32 %and69, 267 %cmp76 = icmp eq i32 %and69, 204 %cond78 = select i1 %cmp76, i64 0, i64 32 %cond80 = select i1 %cmp70, i64 1024, i64 %cond78 %call81 = tail call i64 @lseek64(i32 noundef %call, i64 noundef %cond80, i32 noundef 0) #6 %call.i27 = tail call noalias ptr @g_malloc(i64 noundef %conv53) #7 %call1.i28 = tail call i64 @read(i32 noundef %call, ptr noundef %call.i27, i64 noundef %conv53) #6 %cmp.i29 = icmp sgt i64 %call1.i28, 0 br i1 %cmp.i29, label %read_targphys.exit32.thread, label %read_targphys.exit32 read_targphys.exit32.thread: ; preds = %if.end67 %call2.i31 = tail call ptr @rom_add_blob(ptr noundef nonnull @.str, ptr noundef %call.i27, i64 noundef %call1.i28, i64 noundef %call1.i28, i64 noundef %addr, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null, i1 noundef zeroext true) tail call void @g_free(ptr noundef %call.i27) #6 br label %if.end88 read_targphys.exit32: ; preds = %if.end67 tail call void @g_free(ptr noundef %call.i27) #6 %cmp85 = icmp slt i64 %call1.i28, 0 br i1 %cmp85, label %fail, label %if.end88 if.end88: ; preds = %read_targphys.exit32, %read_targphys.exit32.thread %call.i33 = tail call noalias ptr @g_malloc(i64 noundef %conv61) #7 %call1.i34 = tail call i64 @read(i32 noundef %call, ptr noundef %call.i33, i64 noundef %conv61) #6 %cmp.i35 = icmp sgt i64 %call1.i34, 0 br i1 %cmp.i35, label %read_targphys.exit38.thread, label %read_targphys.exit38 read_targphys.exit38.thread: ; preds = %if.end88 %cmp91 = icmp eq i32 %and69, 263 %cond113 = select i1 %cmp76, i64 %target_page_size, i64 0 %add117 = add i64 %add55, %cond113 %sub118 = add i64 %add117, %conv53 %and121 = and i64 %sub118, %not %cond123 = select i1 %cmp91, i64 %conv53, i64 %and121 %add124 = add i64 %cond123, %addr %call2.i37 = tail call ptr @rom_add_blob(ptr noundef nonnull @.str, ptr noundef %call.i33, i64 noundef %call1.i34, i64 noundef %call1.i34, i64 noundef %add124, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null, i1 noundef zeroext true) tail call void @g_free(ptr noundef %call.i33) #6 br label %if.end131 read_targphys.exit38: ; preds = %if.end88 tail call void @g_free(ptr noundef %call.i33) #6 %cmp128 = icmp slt i64 %call1.i34, 0 br i1 %cmp128, label %fail, label %if.end131 if.end131: ; preds = %read_targphys.exit38, %read_targphys.exit38.thread %add132 = add nuw i64 %call1.i34, %call1.i28 br label %return.sink.split fail: ; preds = %read_targphys.exit38, %read_targphys.exit32, %cond.end58, %read_targphys.exit, %sw.bb, %if.end6, %if.end br label %return.sink.split return.sink.split: ; preds = %fail, %if.end131, %read_targphys.exit, %read_targphys.exit.thread %retval.0.ph = phi i64 [ -1, %fail ], [ %add132, %if.end131 ], [ 0, %read_targphys.exit ], [ %call1.i, %read_targphys.exit.thread ] %call134 = tail call i32 @close(i32 noundef %call) #6 br label %return return: ; preds = %return.sink.split, %entry %retval.0 = phi i64 [ -1, %entry ], [ %retval.0.ph, %return.sink.split ] ret i64 %retval.0 } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.bswap.i32(i32) #5 attributes #0 = { nofree "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #6 = { nounwind } attributes #7 = { nounwind allocsize(0) } !llvm.module.flags = !{!0, !1, !2, !3, !4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2}
llvm source #2
Output
Compile to binary object
Link to binary
Execute the code
Intel asm syntax
Demangle identifiers
Verbose demangling
Filters
Unused labels
Library functions
Directives
Comments
Horizontal whitespace
Debug intrinsics
Compiler
clang (assertions trunk)
clang (trunk)
clang 10.0.0
clang 10.0.1
clang 11.0.0
clang 11.0.1
clang 12.0.0
clang 12.0.1
clang 13.0.0
clang 14.0.0
clang 15.0.0
clang 16.0.0
clang 17.0.1
clang 18.1.0
clang 19.1.0
clang 20.1.0
clang 21.1.0
clang 4.0.1
clang 5.0.0
clang 6.0.0
clang 7.0.0
clang 8.0.0
clang 9.0.0
hexagon-clang 16.0.5
llc (assertions trunk)
llc (trunk)
llc 10.0.0
llc 10.0.1
llc 11.0.0
llc 11.0.1
llc 12.0.0
llc 12.0.1
llc 13.0.0
llc 14.0.0
llc 15.0.0
llc 16.0.0
llc 17.0.1
llc 18.1.0
llc 19.1.0
llc 20.1.0
llc 21.1.0
llc 3.2
llc 3.3
llc 3.9.1
llc 4.0.0
llc 4.0.1
llc 5.0.0
llc 6.0.0
llc 7.0.0
llc 8.0.0
llc 9.0.0
opt (assertions trunk)
opt (trunk)
opt 10.0.0
opt 10.0.1
opt 11.0.0
opt 11.0.1
opt 12.0.0
opt 12.0.1
opt 13.0.0
opt 14.0.0
opt 15.0.0
opt 16.0.0
opt 17.0.1
opt 18.1.0
opt 19.1.0
opt 20.1.0
opt 21.1.0
opt 3.2
opt 3.3
opt 3.9.1
opt 4.0.0
opt 4.0.1
opt 5.0.0
opt 6.0.0
opt 7.0.0
opt 8.0.0
opt 9.0.0
Options
Source code
%struct.exec = type { i32, i32, i32, i32, i32, i32, i32, i32 } @.str = external hidden unnamed_addr constant [5 x i8], align 1 ; Function Attrs: nofree declare noundef i32 @open64(ptr nocapture noundef readonly, i32 noundef, ...) local_unnamed_addr #0 ; Function Attrs: nounwind declare i64 @lseek64(i32 noundef, i64 noundef, i32 noundef) local_unnamed_addr #1 declare i32 @close(i32 noundef) local_unnamed_addr #2 ; Function Attrs: nofree declare noundef i64 @read(i32 noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #0 ; Function Attrs: allocsize(0) declare noalias ptr @g_malloc(i64 noundef) local_unnamed_addr #3 ; Function Attrs: nounwind sspstrong uwtable declare dso_local ptr @rom_add_blob(ptr noundef, ptr nocapture noundef readonly, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #4 declare void @g_free(ptr noundef) #2 ; Function Attrs: nounwind sspstrong uwtable define dso_local i64 @tgt(ptr nocapture noundef readonly %filename, i64 noundef %addr, i32 noundef %max_sz, i32 noundef %bswap_needed, i64 noundef %target_page_size) local_unnamed_addr #4 { entry: %e = alloca %struct.exec, align 4 %call = tail call i32 (ptr, i32, ...) @open64(ptr noundef %filename, i32 noundef 0) #6 %cmp = icmp slt i32 %call, 0 br i1 %cmp, label %return, label %if.end if.end: ; preds = %entry %call1 = call i64 @read(i32 noundef %call, ptr noundef nonnull %e, i64 noundef 32) #6 %cmp2 = icmp slt i64 %call1, 0 br i1 %cmp2, label %fail, label %if.end4 if.end4: ; preds = %if.end %tobool.not = icmp eq i32 %bswap_needed, 0 %.pre = load i32, ptr %e, align 4 br i1 %tobool.not, label %if.end6, label %if.then5 if.then5: ; preds = %if.end4 %0 = tail call i32 @llvm.bswap.i32(i32 %.pre) %a_text.i = getelementptr inbounds i8, ptr %e, i64 4 %1 = load i32, ptr %a_text.i, align 4 %2 = tail call i32 @llvm.bswap.i32(i32 %1) store i32 %2, ptr %a_text.i, align 4 %a_data.i = getelementptr inbounds i8, ptr %e, i64 8 %3 = load i32, ptr %a_data.i, align 4 %4 = tail call i32 @llvm.bswap.i32(i32 %3) store i32 %4, ptr %a_data.i, align 4 br label %if.end6 if.end6: ; preds = %if.then5, %if.end4 %5 = phi i32 [ %.pre, %if.end4 ], [ %0, %if.then5 ] %trunc = trunc i32 %5 to i16 switch i16 %trunc, label %fail [ i16 267, label %sw.bb i16 204, label %sw.bb i16 263, label %sw.bb i16 264, label %cond.end58 ] sw.bb: ; preds = %if.end6, %if.end6, %if.end6 %a_text = getelementptr inbounds i8, ptr %e, i64 4 %6 = load i32, ptr %a_text, align 4 %a_data = getelementptr inbounds i8, ptr %e, i64 8 %7 = load i32, ptr %a_data, align 4 %add = add i32 %7, %6 %cmp7 = icmp ugt i32 %add, %max_sz br i1 %cmp7, label %fail, label %if.end9 if.end9: ; preds = %sw.bb %and11 = and i32 %5, 65535 %cmp12 = icmp eq i32 %and11, 267 %cmp15 = icmp eq i32 %and11, 204 %cond = select i1 %cmp15, i64 0, i64 32 %cond16.reg2mem.0 = select i1 %cmp12, i64 1024, i64 %cond %call17 = tail call i64 @lseek64(i32 noundef %call, i64 noundef %cond16.reg2mem.0, i32 noundef 0) #6 %conv = zext i32 %add to i64 %call.i = tail call noalias ptr @g_malloc(i64 noundef %conv) #7 %call1.i = tail call i64 @read(i32 noundef %call, ptr noundef %call.i, i64 noundef %conv) #6 %cmp.i = icmp sgt i64 %call1.i, 0 br i1 %cmp.i, label %read_targphys.exit.thread, label %read_targphys.exit read_targphys.exit.thread: ; preds = %if.end9 %call2.i = tail call ptr @rom_add_blob(ptr noundef nonnull @.str, ptr noundef %call.i, i64 noundef %call1.i, i64 noundef %call1.i, i64 noundef %addr, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null, i1 noundef zeroext true) tail call void @g_free(ptr noundef %call.i) #6 br label %return.sink.split read_targphys.exit: ; preds = %if.end9 tail call void @g_free(ptr noundef %call.i) #6 %cmp22 = icmp slt i64 %call1.i, 0 br i1 %cmp22, label %fail, label %return.sink.split cond.end58: ; preds = %if.end6 %a_text52 = getelementptr inbounds i8, ptr %e, i64 4 %8 = load i32, ptr %a_text52, align 4 %conv53 = zext i32 %8 to i64 %add55 = add i64 %target_page_size, -1 %sub = add i64 %add55, %conv53 %not = sub i64 0, %target_page_size %and57 = and i64 %sub, %not %a_data60 = getelementptr inbounds i8, ptr %e, i64 8 %9 = load i32, ptr %a_data60, align 4 %conv61 = zext i32 %9 to i64 %add62 = add i64 %and57, %conv61 %conv63 = sext i32 %max_sz to i64 %cmp64 = icmp ugt i64 %add62, %conv63 br i1 %cmp64, label %fail, label %if.end67 if.end67: ; preds = %cond.end58 %and69 = and i32 %5, 65535 %cmp70 = icmp eq i32 %and69, 267 %cmp76 = icmp eq i32 %and69, 204 %cond78 = select i1 %cmp76, i64 0, i64 32 %cond80 = select i1 %cmp70, i64 1024, i64 %cond78 %call81 = tail call i64 @lseek64(i32 noundef %call, i64 noundef %cond80, i32 noundef 0) #6 %call.i27 = tail call noalias ptr @g_malloc(i64 noundef %conv53) #7 %call1.i28 = tail call i64 @read(i32 noundef %call, ptr noundef %call.i27, i64 noundef %conv53) #6 %cmp.i29 = icmp sgt i64 %call1.i28, 0 br i1 %cmp.i29, label %read_targphys.exit32.thread, label %read_targphys.exit32 read_targphys.exit32.thread: ; preds = %if.end67 %call2.i31 = tail call ptr @rom_add_blob(ptr noundef nonnull @.str, ptr noundef %call.i27, i64 noundef %call1.i28, i64 noundef %call1.i28, i64 noundef %addr, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null, i1 noundef zeroext true) tail call void @g_free(ptr noundef %call.i27) #6 br label %cond.end122 read_targphys.exit32: ; preds = %if.end67 tail call void @g_free(ptr noundef %call.i27) #6 %cmp85 = icmp slt i64 %call1.i28, 0 br i1 %cmp85, label %fail, label %cond.end122 cond.end122: ; preds = %read_targphys.exit32, %read_targphys.exit32.thread %call.i33 = tail call noalias ptr @g_malloc(i64 noundef %conv61) #7 %call1.i34 = tail call i64 @read(i32 noundef %call, ptr noundef %call.i33, i64 noundef %conv61) #6 %cmp.i35 = icmp sgt i64 %call1.i34, 0 br i1 %cmp.i35, label %read_targphys.exit38.thread, label %read_targphys.exit38 read_targphys.exit38.thread: ; preds = %cond.end122 %and121 = and i64 %sub, %not %add124 = add i64 %and121, %addr %call2.i37 = tail call ptr @rom_add_blob(ptr noundef nonnull @.str, ptr noundef %call.i33, i64 noundef %call1.i34, i64 noundef %call1.i34, i64 noundef %add124, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null, i1 noundef zeroext true) tail call void @g_free(ptr noundef %call.i33) #6 br label %if.end131 read_targphys.exit38: ; preds = %cond.end122 tail call void @g_free(ptr noundef %call.i33) #6 %cmp128 = icmp slt i64 %call1.i34, 0 br i1 %cmp128, label %fail, label %if.end131 if.end131: ; preds = %read_targphys.exit38, %read_targphys.exit38.thread %add132 = add nuw i64 %call1.i34, %call1.i28 br label %return.sink.split fail: ; preds = %read_targphys.exit38, %read_targphys.exit32, %cond.end58, %read_targphys.exit, %sw.bb, %if.end6, %if.end br label %return.sink.split return.sink.split: ; preds = %fail, %if.end131, %read_targphys.exit, %read_targphys.exit.thread %retval.0.ph = phi i64 [ -1, %fail ], [ %add132, %if.end131 ], [ 0, %read_targphys.exit ], [ %call1.i, %read_targphys.exit.thread ] %call134 = tail call i32 @close(i32 noundef %call) #6 br label %return return: ; preds = %return.sink.split, %entry %retval.0 = phi i64 [ -1, %entry ], [ %retval.0.ph, %return.sink.split ] ret i64 %retval.0 } ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) declare i32 @llvm.bswap.i32(i32) #5 attributes #0 = { nofree "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #3 = { allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #4 = { nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" } attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } attributes #6 = { nounwind } attributes #7 = { nounwind allocsize(0) } !llvm.module.flags = !{!0, !1, !2, !3, !4} !0 = !{i32 1, !"wchar_size", i32 4} !1 = !{i32 8, !"PIC Level", i32 2} !2 = !{i32 7, !"PIE Level", i32 2} !3 = !{i32 7, !"uwtable", i32 2} !4 = !{i32 7, !"frame-pointer", i32 2}
Become a Patron
Sponsor on GitHub
Donate via PayPal
Compiler Explorer Shop
Source on GitHub
Mailing list
Installed libraries
Wiki
Report an issue
How it works
Contact the author
CE on Mastodon
CE on Bluesky
Statistics
Changelog
Version tree