llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmplx12w1s5.c'
source_filename = "/tmp/tmplx12w1s5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplx12w1s5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbnxx7cq9.c'
source_filename = "/tmp/tmpbnxx7cq9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdscr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [54 x i8] c"PCF8591 + or - to change aout, any other key to quit.\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"Brightness\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"Temperature\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"?\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"Resistor\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%3d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca [2 x i8], align 1
%11 = alloca [4 x i8], align 1
%12 = alloca [8 x i8], align 1
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%15 = call i64 (...) @gpioInitialise()
%16 = icmp slt i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %2
store i32 1, ptr %3, align 4
br label %136
18: ; preds = %2
%19 = call i32 (...) @initscr()
%20 = call i32 (...) @noecho()
%21 = call i32 (...) @cbreak()
%22 = load i32, ptr @stdscr, align 4
%23 = call i32 @nodelay(i32 noundef %22, i32 noundef 1)
%24 = call i32 @curs_set(i32 noundef 0)
%25 = call i32 @printw(ptr noundef @.str)
%26 = call i32 (i32, i32, ...) @mvaddstr(i32 noundef 10, i32 noundef 0, ptr noundef @.str.1)
%27 = call i32 (i32, i32, ...) @mvaddstr(i32 noundef 12, i32 noundef 0, ptr noundef @.str.2)
%28 = call i32 (i32, i32, ...) @mvaddstr(i32 noundef 14, i32 noundef 0, ptr noundef @.str.3)
%29 = call i32 (i32, i32, ...) @mvaddstr(i32 noundef 16, i32 noundef 0, ptr noundef @.str.4)
%30 = call i32 (...) @refresh()
%31 = call i32 @i2cOpen(i32 noundef 1, i32 noundef 72, i32 noundef 0)
store i32 %31, ptr %8, align 4
%32 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 1
store i8 0, ptr %32, align 1
store i8 -128, ptr %9, align 1
br label %33
33: ; preds = %18, %130
store i32 0, ptr %6, align 4
br label %34
34: ; preds = %101, %33
%35 = load i32, ptr %6, align 4
%36 = icmp slt i32 %35, 4
br i1 %36, label %37, label %104
37: ; preds = %34
%38 = load i8, ptr %9, align 1
%39 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 1
store i8 %38, ptr %39, align 1
%40 = load i32, ptr %6, align 4
%41 = add nsw i32 %40, 1
%42 = and i32 %41, 3
%43 = or i32 64, %42
%44 = trunc i32 %43 to i8
%45 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
store i8 %44, ptr %45, align 1
%46 = load i32, ptr %8, align 4
%47 = call i32 @i2cWriteDevice(i32 noundef %46, ptr noundef %10, i32 noundef 2)
%48 = call i32 @usleep(i32 noundef 20000)
%49 = load i32, ptr %8, align 4
%50 = call zeroext i8 @i2cReadByte(i32 noundef %49)
%51 = load i32, ptr %6, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 %52
store i8 %50, ptr %53, align 1
%54 = getelementptr inbounds [8 x i8], ptr %12, i64 0, i64 0
%55 = load i32, ptr %6, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 %56
%58 = load i8, ptr %57, align 1
%59 = call i32 @sprintf(ptr noundef %54, ptr noundef @.str.5, i8 noundef zeroext %58)
%60 = load i32, ptr %6, align 4
%61 = add nsw i32 10, %60
%62 = load i32, ptr %6, align 4
%63 = add nsw i32 %61, %62
%64 = getelementptr inbounds [8 x i8], ptr %12, i64 0, i64 0
%65 = call i32 (i32, i32, ...) @mvaddstr(i32 noundef %63, i32 noundef 12, ptr noundef %64)
%66 = load i32, ptr %6, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 %67
%69 = load i8, ptr %68, align 1
%70 = zext i8 %69 to i32
%71 = sdiv i32 %70, 4
%72 = trunc i32 %71 to i8
%73 = load i32, ptr %6, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 %74
store i8 %72, ptr %75, align 1
%76 = load i32, ptr %6, align 4
%77 = add nsw i32 10, %76
%78 = load i32, ptr %6, align 4
%79 = add nsw i32 %77, %78
%80 = call i32 @move(i32 noundef %79, i32 noundef 16)
store i32 0, ptr %13, align 4
br label %81
81: ; preds = %97, %37
%82 = load i32, ptr %13, align 4
%83 = icmp slt i32 %82, 64
br i1 %83, label %84, label %100
84: ; preds = %81
%85 = load i32, ptr %13, align 4
%86 = load i32, ptr %6, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 %87
%89 = load i8, ptr %88, align 1
%90 = zext i8 %89 to i32
%91 = icmp slt i32 %85, %90
br i1 %91, label %92, label %94
92: ; preds = %84
%93 = call i32 @addch(i8 noundef signext 42)
br label %96
94: ; preds = %84
%95 = call i32 @addch(i8 noundef signext 32)
br label %96
96: ; preds = %94, %92
br label %97
97: ; preds = %96
%98 = load i32, ptr %13, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %13, align 4
br label %81, !llvm.loop !6
100: ; preds = %81
br label %101
101: ; preds = %100
%102 = load i32, ptr %6, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %6, align 4
br label %34, !llvm.loop !8
104: ; preds = %34
%105 = call i32 (...) @refresh()
%106 = call i32 (...) @getch()
store i32 %106, ptr %14, align 4
%107 = load i32, ptr %14, align 4
%108 = icmp eq i32 %107, 43
br i1 %108, label %112, label %109
109: ; preds = %104
%110 = load i32, ptr %14, align 4
%111 = icmp eq i32 %110, 61
br i1 %111, label %112, label %115
112: ; preds = %109, %104
%113 = load i8, ptr %9, align 1
%114 = add i8 %113, 1
store i8 %114, ptr %9, align 1
br label %130
115: ; preds = %109
%116 = load i32, ptr %14, align 4
%117 = icmp eq i32 %116, 45
br i1 %117, label %121, label %118
118: ; preds = %115
%119 = load i32, ptr %14, align 4
%120 = icmp eq i32 %119, 95
br i1 %120, label %121, label %124
121: ; preds = %118, %115
%122 = load i8, ptr %9, align 1
%123 = add i8 %122, -1
store i8 %123, ptr %9, align 1
br label %129
124: ; preds = %118
%125 = load i32, ptr %14, align 4
%126 = icmp ne i32 %125, -1
br i1 %126, label %127, label %128
127: ; preds = %124
br label %131
128: ; preds = %124
br label %129
129: ; preds = %128, %121
br label %130
130: ; preds = %129, %112
br label %33
131: ; preds = %127
%132 = call i32 (...) @endwin()
%133 = load i32, ptr %8, align 4
%134 = call i32 @i2cClose(i32 noundef %133)
%135 = call i32 (...) @gpioTerminate()
store i32 0, ptr %3, align 4
br label %136
136: ; preds = %131, %17
%137 = load i32, ptr %3, align 4
ret i32 %137
}
declare i64 @gpioInitialise(...) #1
declare i32 @initscr(...) #1
declare i32 @noecho(...) #1
declare i32 @cbreak(...) #1
declare i32 @nodelay(i32 noundef, i32 noundef) #1
declare i32 @curs_set(i32 noundef) #1
declare i32 @printw(ptr noundef) #1
declare i32 @mvaddstr(i32 noundef, i32 noundef, ...) #1
declare i32 @refresh(...) #1
declare i32 @i2cOpen(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @i2cWriteDevice(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @usleep(i32 noundef) #1
declare zeroext i8 @i2cReadByte(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef zeroext) #1
declare i32 @move(i32 noundef, i32 noundef) #1
declare i32 @addch(i8 noundef signext) #1
declare i32 @getch(...) #1
declare i32 @endwin(...) #1
declare i32 @i2cClose(i32 noundef) #1
declare i32 @gpioTerminate(...) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbnxx7cq9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdscr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [54 x i8] c"PCF8591 + or - to change aout, any other key to quit.\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"Brightness\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"Temperature\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"?\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"Resistor\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%3d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca [2 x i8], align 1
%11 = alloca [4 x i8], align 1
%12 = alloca [8 x i8], align 1
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%15 = call i64 (...) @gpioInitialise()
%16 = icmp slt i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %2
store i32 1, ptr %3, align 4
br label %138
18: ; preds = %2
%19 = call i32 (...) @initscr()
%20 = call i32 (...) @noecho()
%21 = call i32 (...) @cbreak()
%22 = load i32, ptr @stdscr, align 4
%23 = call i32 @nodelay(i32 noundef %22, i32 noundef 1)
%24 = call i32 @curs_set(i32 noundef 0)
%25 = call i32 @printw(ptr noundef @.str)
%26 = call i32 (i32, i32, ...) @mvaddstr(i32 noundef 10, i32 noundef 0, ptr noundef @.str.1)
%27 = call i32 (i32, i32, ...) @mvaddstr(i32 noundef 12, i32 noundef 0, ptr noundef @.str.2)
%28 = call i32 (i32, i32, ...) @mvaddstr(i32 noundef 14, i32 noundef 0, ptr noundef @.str.3)
%29 = call i32 (i32, i32, ...) @mvaddstr(i32 noundef 16, i32 noundef 0, ptr noundef @.str.4)
%30 = call i32 (...) @refresh()
%31 = call i32 @i2cOpen(i32 noundef 1, i32 noundef 72, i32 noundef 0)
store i32 %31, ptr %8, align 4
%32 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 1
store i8 0, ptr %32, align 1
store i8 -128, ptr %9, align 1
br label %33
33: ; preds = %132, %18
store i32 0, ptr %6, align 4
%34 = load i32, ptr %6, align 4
%35 = icmp slt i32 %34, 4
br i1 %35, label %.lr.ph2, label %106
.lr.ph2: ; preds = %33
br label %36
36: ; preds = %.lr.ph2, %101
%37 = load i8, ptr %9, align 1
%38 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 1
store i8 %37, ptr %38, align 1
%39 = load i32, ptr %6, align 4
%40 = add nsw i32 %39, 1
%41 = and i32 %40, 3
%42 = or i32 64, %41
%43 = trunc i32 %42 to i8
%44 = getelementptr inbounds [2 x i8], ptr %10, i64 0, i64 0
store i8 %43, ptr %44, align 1
%45 = load i32, ptr %8, align 4
%46 = call i32 @i2cWriteDevice(i32 noundef %45, ptr noundef %10, i32 noundef 2)
%47 = call i32 @usleep(i32 noundef 20000)
%48 = load i32, ptr %8, align 4
%49 = call zeroext i8 @i2cReadByte(i32 noundef %48)
%50 = load i32, ptr %6, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 %51
store i8 %49, ptr %52, align 1
%53 = getelementptr inbounds [8 x i8], ptr %12, i64 0, i64 0
%54 = load i32, ptr %6, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 %55
%57 = load i8, ptr %56, align 1
%58 = call i32 @sprintf(ptr noundef %53, ptr noundef @.str.5, i8 noundef zeroext %57)
%59 = load i32, ptr %6, align 4
%60 = add nsw i32 10, %59
%61 = load i32, ptr %6, align 4
%62 = add nsw i32 %60, %61
%63 = getelementptr inbounds [8 x i8], ptr %12, i64 0, i64 0
%64 = call i32 (i32, i32, ...) @mvaddstr(i32 noundef %62, i32 noundef 12, ptr noundef %63)
%65 = load i32, ptr %6, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 %66
%68 = load i8, ptr %67, align 1
%69 = zext i8 %68 to i32
%70 = sdiv i32 %69, 4
%71 = trunc i32 %70 to i8
%72 = load i32, ptr %6, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 %73
store i8 %71, ptr %74, align 1
%75 = load i32, ptr %6, align 4
%76 = add nsw i32 10, %75
%77 = load i32, ptr %6, align 4
%78 = add nsw i32 %76, %77
%79 = call i32 @move(i32 noundef %78, i32 noundef 16)
store i32 0, ptr %13, align 4
%80 = load i32, ptr %13, align 4
%81 = icmp slt i32 %80, 64
br i1 %81, label %.lr.ph, label %100
.lr.ph: ; preds = %36
br label %82
82: ; preds = %.lr.ph, %95
%83 = load i32, ptr %13, align 4
%84 = load i32, ptr %6, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 %85
%87 = load i8, ptr %86, align 1
%88 = zext i8 %87 to i32
%89 = icmp slt i32 %83, %88
br i1 %89, label %90, label %92
90: ; preds = %82
%91 = call i32 @addch(i8 noundef signext 42)
br label %94
92: ; preds = %82
%93 = call i32 @addch(i8 noundef signext 32)
br label %94
94: ; preds = %92, %90
br label %95
95: ; preds = %94
%96 = load i32, ptr %13, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %13, align 4
%98 = load i32, ptr %13, align 4
%99 = icmp slt i32 %98, 64
br i1 %99, label %82, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %95
br label %100
100: ; preds = %._crit_edge, %36
br label %101
101: ; preds = %100
%102 = load i32, ptr %6, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %6, align 4
%104 = load i32, ptr %6, align 4
%105 = icmp slt i32 %104, 4
br i1 %105, label %36, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %101
br label %106
106: ; preds = %._crit_edge3, %33
%107 = call i32 (...) @refresh()
%108 = call i32 (...) @getch()
store i32 %108, ptr %14, align 4
%109 = load i32, ptr %14, align 4
%110 = icmp eq i32 %109, 43
br i1 %110, label %114, label %111
111: ; preds = %106
%112 = load i32, ptr %14, align 4
%113 = icmp eq i32 %112, 61
br i1 %113, label %114, label %117
114: ; preds = %111, %106
%115 = load i8, ptr %9, align 1
%116 = add i8 %115, 1
store i8 %116, ptr %9, align 1
br label %132
117: ; preds = %111
%118 = load i32, ptr %14, align 4
%119 = icmp eq i32 %118, 45
br i1 %119, label %123, label %120
120: ; preds = %117
%121 = load i32, ptr %14, align 4
%122 = icmp eq i32 %121, 95
br i1 %122, label %123, label %126
123: ; preds = %120, %117
%124 = load i8, ptr %9, align 1
%125 = add i8 %124, -1
store i8 %125, ptr %9, align 1
br label %131
126: ; preds = %120
%127 = load i32, ptr %14, align 4
%128 = icmp ne i32 %127, -1
br i1 %128, label %129, label %130
129: ; preds = %126
br label %133
130: ; preds = %126
br label %131
131: ; preds = %130, %123
br label %132
132: ; preds = %131, %114
br label %33
133: ; preds = %129
%134 = call i32 (...) @endwin()
%135 = load i32, ptr %8, align 4
%136 = call i32 @i2cClose(i32 noundef %135)
%137 = call i32 (...) @gpioTerminate()
store i32 0, ptr %3, align 4
br label %138
138: ; preds = %133, %17
%139 = load i32, ptr %3, align 4
ret i32 %139
}
declare i64 @gpioInitialise(...) #1
declare i32 @initscr(...) #1
declare i32 @noecho(...) #1
declare i32 @cbreak(...) #1
declare i32 @nodelay(i32 noundef, i32 noundef) #1
declare i32 @curs_set(i32 noundef) #1
declare i32 @printw(ptr noundef) #1
declare i32 @mvaddstr(i32 noundef, i32 noundef, ...) #1
declare i32 @refresh(...) #1
declare i32 @i2cOpen(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @i2cWriteDevice(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @usleep(i32 noundef) #1
declare zeroext i8 @i2cReadByte(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef zeroext) #1
declare i32 @move(i32 noundef, i32 noundef) #1
declare i32 @addch(i8 noundef signext) #1
declare i32 @getch(...) #1
declare i32 @endwin(...) #1
declare i32 @i2cClose(i32 noundef) #1
declare i32 @gpioTerminate(...) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmppbed37ye.c'
source_filename = "/tmp/tmppbed37ye.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @glWindowPos2i(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @glWindowPos4f(i32 noundef %5, i32 noundef %6, i32 noundef 0, i32 noundef 1)
ret void
}
declare i32 @glWindowPos4f(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppbed37ye.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @glWindowPos2i(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @glWindowPos4f(i32 noundef %5, i32 noundef %6, i32 noundef 0, i32 noundef 1)
ret void
}
declare i32 @glWindowPos4f(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppbf3n67m.c'
source_filename = "/tmp/tmppbf3n67m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%02X \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_arch_code(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%10 = load ptr, ptr %3, align 8
store ptr %10, ptr %5, align 8
store i32 0, ptr %6, align 4
br label %11
11: ; preds = %55, %2
%12 = load i32, ptr %6, align 4
%13 = sext i32 %12 to i64
%14 = load i64, ptr %4, align 8
%15 = icmp ult i64 %13, %14
br i1 %15, label %16, label %60
16: ; preds = %11
store i32 1, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %17
17: ; preds = %52, %16
%18 = load i32, ptr %8, align 4
%19 = load i32, ptr %7, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %55
21: ; preds = %17
%22 = load i32, ptr %8, align 4
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %38
24: ; preds = %21
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %6, align 4
%27 = load i32, ptr %8, align 4
%28 = add nsw i32 %26, %27
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %25, i64 %29
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
switch i32 %32, label %37 [
i32 104, label %33
i32 85, label %33
i32 -23, label %33
i32 -24, label %33
i32 -56, label %34
i32 -125, label %35
i32 -1, label %35
i32 -55, label %36
]
33: ; preds = %24, %24, %24, %24
store i32 5, ptr %7, align 4
br label %37
34: ; preds = %24
store i32 4, ptr %7, align 4
br label %37
35: ; preds = %24, %24
store i32 3, ptr %7, align 4
br label %37
36: ; preds = %24
store i32 2, ptr %7, align 4
br label %37
37: ; preds = %24, %36, %35, %34, %33
br label %38
38: ; preds = %37, %21
%39 = load ptr, ptr %5, align 8
%40 = load i32, ptr %6, align 4
%41 = load i32, ptr %8, align 4
%42 = add nsw i32 %40, %41
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %39, i64 %43
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
store i32 %46, ptr %9, align 4
%47 = load i32, ptr %9, align 4
%48 = shl i32 %47, 24
%49 = lshr i32 %48, 24
store i32 %49, ptr %9, align 4
%50 = load i32, ptr %9, align 4
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %50)
br label %52
52: ; preds = %38
%53 = load i32, ptr %8, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %8, align 4
br label %17, !llvm.loop !6
55: ; preds = %17
%56 = load i32, ptr %7, align 4
%57 = load i32, ptr %6, align 4
%58 = add nsw i32 %57, %56
store i32 %58, ptr %6, align 4
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %11, !llvm.loop !8
60: ; preds = %11
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppbf3n67m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%02X \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_arch_code(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%10 = load ptr, ptr %3, align 8
store ptr %10, ptr %5, align 8
store i32 0, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = sext i32 %11 to i64
%13 = load i64, ptr %4, align 8
%14 = icmp ult i64 %12, %13
br i1 %14, label %.lr.ph2, label %65
.lr.ph2: ; preds = %2
br label %15
15: ; preds = %.lr.ph2, %56
store i32 1, ptr %7, align 4
store i32 0, ptr %8, align 4
%16 = load i32, ptr %8, align 4
%17 = load i32, ptr %7, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %.lr.ph, label %56
.lr.ph: ; preds = %15
br label %19
19: ; preds = %.lr.ph, %50
%20 = load i32, ptr %8, align 4
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %36
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %6, align 4
%25 = load i32, ptr %8, align 4
%26 = add nsw i32 %24, %25
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %23, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
switch i32 %30, label %35 [
i32 104, label %31
i32 85, label %31
i32 -23, label %31
i32 -24, label %31
i32 -56, label %32
i32 -125, label %33
i32 -1, label %33
i32 -55, label %34
]
31: ; preds = %22, %22, %22, %22
store i32 5, ptr %7, align 4
br label %35
32: ; preds = %22
store i32 4, ptr %7, align 4
br label %35
33: ; preds = %22, %22
store i32 3, ptr %7, align 4
br label %35
34: ; preds = %22
store i32 2, ptr %7, align 4
br label %35
35: ; preds = %34, %33, %32, %31, %22
br label %36
36: ; preds = %35, %19
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %6, align 4
%39 = load i32, ptr %8, align 4
%40 = add nsw i32 %38, %39
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %37, i64 %41
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
store i32 %44, ptr %9, align 4
%45 = load i32, ptr %9, align 4
%46 = shl i32 %45, 24
%47 = lshr i32 %46, 24
store i32 %47, ptr %9, align 4
%48 = load i32, ptr %9, align 4
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %48)
br label %50
50: ; preds = %36
%51 = load i32, ptr %8, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %8, align 4
%53 = load i32, ptr %8, align 4
%54 = load i32, ptr %7, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %50
br label %56
56: ; preds = %._crit_edge, %15
%57 = load i32, ptr %7, align 4
%58 = load i32, ptr %6, align 4
%59 = add nsw i32 %58, %57
store i32 %59, ptr %6, align 4
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%61 = load i32, ptr %6, align 4
%62 = sext i32 %61 to i64
%63 = load i64, ptr %4, align 8
%64 = icmp ult i64 %62, %63
br i1 %64, label %15, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %56
br label %65
65: ; preds = %._crit_edge3, %2
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpawlswild.c'
source_filename = "/tmp/tmpawlswild.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_STAT_VER = dso_local global i32 0, align 4
@EINVAL = dso_local global i32 0, align 4
@AT_FDCWD = dso_local global i32 0, align 4
@EBADF = dso_local global i32 0, align 4
@AT_SYMLINK_NOFOLLOW = dso_local global i32 0, align 4
@ENOSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @__fxstatat(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr @_STAT_VER, align 4
%14 = icmp ne i32 %12, %13
br i1 %14, label %15, label %18
15: ; preds = %5
%16 = load i32, ptr @EINVAL, align 4
%17 = call i32 @__set_errno(i32 noundef %16)
store i32 -1, ptr %6, align 4
br label %43
18: ; preds = %5
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %19, 0
br i1 %20, label %21, label %28
21: ; preds = %18
%22 = load i32, ptr %8, align 4
%23 = load i32, ptr @AT_FDCWD, align 4
%24 = icmp ne i32 %22, %23
br i1 %24, label %25, label %28
25: ; preds = %21
%26 = load i32, ptr @EBADF, align 4
%27 = call i32 @__set_errno(i32 noundef %26)
store i32 -1, ptr %6, align 4
br label %43
28: ; preds = %21, %18
%29 = load ptr, ptr %10, align 8
%30 = icmp eq ptr %29, null
br i1 %30, label %37, label %31
31: ; preds = %28
%32 = load i32, ptr %11, align 4
%33 = load i32, ptr @AT_SYMLINK_NOFOLLOW, align 4
%34 = xor i32 %33, -1
%35 = and i32 %32, %34
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %31, %28
%38 = load i32, ptr @EINVAL, align 4
%39 = call i32 @__set_errno(i32 noundef %38)
store i32 -1, ptr %6, align 4
br label %43
40: ; preds = %31
%41 = load i32, ptr @ENOSYS, align 4
%42 = call i32 @__set_errno(i32 noundef %41)
store i32 -1, ptr %6, align 4
br label %43
43: ; preds = %40, %37, %25, %15
%44 = load i32, ptr %6, align 4
ret i32 %44
}
declare i32 @__set_errno(i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpawlswild.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_STAT_VER = dso_local global i32 0, align 4
@EINVAL = dso_local global i32 0, align 4
@AT_FDCWD = dso_local global i32 0, align 4
@EBADF = dso_local global i32 0, align 4
@AT_SYMLINK_NOFOLLOW = dso_local global i32 0, align 4
@ENOSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @__fxstatat(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr @_STAT_VER, align 4
%14 = icmp ne i32 %12, %13
br i1 %14, label %15, label %18
15: ; preds = %5
%16 = load i32, ptr @EINVAL, align 4
%17 = call i32 @__set_errno(i32 noundef %16)
store i32 -1, ptr %6, align 4
br label %43
18: ; preds = %5
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %19, 0
br i1 %20, label %21, label %28
21: ; preds = %18
%22 = load i32, ptr %8, align 4
%23 = load i32, ptr @AT_FDCWD, align 4
%24 = icmp ne i32 %22, %23
br i1 %24, label %25, label %28
25: ; preds = %21
%26 = load i32, ptr @EBADF, align 4
%27 = call i32 @__set_errno(i32 noundef %26)
store i32 -1, ptr %6, align 4
br label %43
28: ; preds = %21, %18
%29 = load ptr, ptr %10, align 8
%30 = icmp eq ptr %29, null
br i1 %30, label %37, label %31
31: ; preds = %28
%32 = load i32, ptr %11, align 4
%33 = load i32, ptr @AT_SYMLINK_NOFOLLOW, align 4
%34 = xor i32 %33, -1
%35 = and i32 %32, %34
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %31, %28
%38 = load i32, ptr @EINVAL, align 4
%39 = call i32 @__set_errno(i32 noundef %38)
store i32 -1, ptr %6, align 4
br label %43
40: ; preds = %31
%41 = load i32, ptr @ENOSYS, align 4
%42 = call i32 @__set_errno(i32 noundef %41)
store i32 -1, ptr %6, align 4
br label %43
43: ; preds = %40, %37, %25, %15
%44 = load i32, ptr %6, align 4
ret i32 %44
}
declare i32 @__set_errno(i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq9fqph9u.c'
source_filename = "/tmp/tmpq9fqph9u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @store_index(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @store_file(ptr noundef %3, i32 noundef 1)
ret void
}
declare i32 @store_file(ptr noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq9fqph9u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @store_index(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @store_file(ptr noundef %3, i32 noundef 1)
ret void
}
declare i32 @store_file(ptr noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4la3uu4h.c'
source_filename = "/tmp/tmp4la3uu4h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4la3uu4h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0w16m3r1.c'
source_filename = "/tmp/tmp0w16m3r1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0w16m3r1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0_0j5_9x.c'
source_filename = "/tmp/tmp0_0j5_9x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"NOT IMPLEMENTED:pa_channel_map_mask\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_channel_map_mask() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0_0j5_9x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"NOT IMPLEMENTED:pa_channel_map_mask\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_channel_map_mask() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy7os8rlz.c'
source_filename = "/tmp/tmpy7os8rlz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy7os8rlz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphf4kx6mz.c'
source_filename = "/tmp/tmphf4kx6mz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @r_strtoul(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i64 @strtoul(ptr noundef %7, ptr noundef %8, i32 noundef %9)
ret i64 %10
}
declare i64 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphf4kx6mz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @r_strtoul(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i64 @strtoul(ptr noundef %7, ptr noundef %8, i32 noundef %9)
ret i64 %10
}
declare i64 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnjtllk9r.c'
source_filename = "/tmp/tmpnjtllk9r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"a=%d\0Ab=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printdata(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %5, i32 noundef %6)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnjtllk9r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"a=%d\0Ab=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printdata(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %5, i32 noundef %6)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpio5j5vv5.c'
source_filename = "/tmp/tmpio5j5vv5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @setErrno(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
store i32 %3, ptr @errno, align 4
%4 = load i32, ptr %2, align 4
ret i32 %4
}
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpio5j5vv5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @setErrno(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
store i32 %3, ptr @errno, align 4
%4 = load i32, ptr %2, align 4
ret i32 %4
}
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpci6w7yzi.c'
source_filename = "/tmp/tmpci6w7yzi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@STDOUT_FILENO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [8 x i8] c"\1B[H\1B[2J\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @readline_clear_screen() #0 {
%1 = load i32, ptr @STDOUT_FILENO, align 4
%2 = call i64 @write(i32 noundef %1, ptr noundef @.str, i32 noundef 7)
%3 = icmp sle i64 %2, 0
br i1 %3, label %4, label %5
4: ; preds = %0
br label %5
5: ; preds = %4, %0
ret void
}
declare i64 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpci6w7yzi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@STDOUT_FILENO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [8 x i8] c"\1B[H\1B[2J\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @readline_clear_screen() #0 {
%1 = load i32, ptr @STDOUT_FILENO, align 4
%2 = call i64 @write(i32 noundef %1, ptr noundef @.str, i32 noundef 7)
%3 = icmp sle i64 %2, 0
br i1 %3, label %4, label %5
4: ; preds = %0
br label %5
5: ; preds = %4, %0
ret void
}
declare i64 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxpf45nak.c'
source_filename = "/tmp/tmpxpf45nak.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxpf45nak.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpn8srtmgf.c'
source_filename = "/tmp/tmpn8srtmgf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ExecCommand(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [2 x ptr], align 16
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds [2 x ptr], ptr %5, i64 0, i64 0
store ptr %6, ptr %7, align 16
%8 = getelementptr inbounds [2 x ptr], ptr %5, i64 0, i64 1
store ptr null, ptr %8, align 8
%9 = getelementptr inbounds [2 x ptr], ptr %5, i64 0, i64 0
%10 = load ptr, ptr %4, align 8
%11 = call ptr @ExecCommandWithArgs(ptr noundef %9, ptr noundef %10, ptr noundef null, i32 noundef 1)
ret ptr %11
}
declare ptr @ExecCommandWithArgs(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn8srtmgf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ExecCommand(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [2 x ptr], align 16
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds [2 x ptr], ptr %5, i64 0, i64 0
store ptr %6, ptr %7, align 16
%8 = getelementptr inbounds [2 x ptr], ptr %5, i64 0, i64 1
store ptr null, ptr %8, align 8
%9 = getelementptr inbounds [2 x ptr], ptr %5, i64 0, i64 0
%10 = load ptr, ptr %4, align 8
%11 = call ptr @ExecCommandWithArgs(ptr noundef %9, ptr noundef %10, ptr noundef null, i32 noundef 1)
ret ptr %11
}
declare ptr @ExecCommandWithArgs(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnr7zfii3.c'
source_filename = "/tmp/tmpnr7zfii3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 @pthread_cond_init(ptr noundef %6, ptr noundef null)
%8 = call i32 @pthread_cond_destroy(ptr noundef %6)
ret i32 0
}
declare i32 @pthread_cond_init(ptr noundef, ptr noundef) #1
declare i32 @pthread_cond_destroy(ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnr7zfii3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 @pthread_cond_init(ptr noundef %6, ptr noundef null)
%8 = call i32 @pthread_cond_destroy(ptr noundef %6)
ret i32 0
}
declare i32 @pthread_cond_init(ptr noundef, ptr noundef) #1
declare i32 @pthread_cond_destroy(ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppiyk8l3i.c'
source_filename = "/tmp/tmppiyk8l3i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppiyk8l3i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7a3srg8n.c'
source_filename = "/tmp/tmp7a3srg8n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @Log2(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call double @log(double noundef %3) #2
%5 = fdiv double %4, 0x3FE62E42FEAD449C
ret double %5
}
; Function Attrs: nounwind
declare double @log(double noundef) #1
attributes #0 = { noinline 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,+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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7a3srg8n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @Log2(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call double @log(double noundef %3) #2
%5 = fdiv double %4, 0x3FE62E42FEAD449C
ret double %5
}
; Function Attrs: nounwind
declare double @log(double noundef) #1
attributes #0 = { noinline 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,+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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3w1jhhrr.c'
source_filename = "/tmp/tmp3w1jhhrr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"Passed in string %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"\E4\BD\A0\E5\A5\BD\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @DBM_strFunc(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
ret ptr @.str.1
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3w1jhhrr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"Passed in string %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"\E4\BD\A0\E5\A5\BD\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @DBM_strFunc(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
ret ptr @.str.1
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxc3lastj.c'
source_filename = "/tmp/tmpxc3lastj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
%struct.dirent = type { ptr }
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [8 x i8] c"Errore\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%s/%s\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"..\00", align 1
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IXUSR = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [11 x i8] c"Errore %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [13 x i8] c"%-30s %-30s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mycopy(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca %struct.stat, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%11 = call ptr @malloc(i32 noundef 4096)
store ptr %11, ptr %9, align 8
%12 = call ptr @malloc(i32 noundef 4096)
store ptr %12, ptr %10, align 8
%13 = load ptr, ptr %3, align 8
%14 = call ptr @opendir(ptr noundef %13)
store ptr %14, ptr %5, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %20
16: ; preds = %2
%17 = load i32, ptr @stdout, align 4
%18 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %17, ptr noundef @.str)
%19 = call i32 @exit(i32 noundef 2) #3
unreachable
20: ; preds = %2
br label %21
21: ; preds = %98, %20
%22 = load ptr, ptr %5, align 8
%23 = call ptr @readdir(ptr noundef %22)
store ptr %23, ptr %7, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %25, label %99
25: ; preds = %21
%26 = load ptr, ptr %9, align 8
%27 = load ptr, ptr %3, align 8
%28 = load ptr, ptr %7, align 8
%29 = getelementptr inbounds %struct.dirent, ptr %28, i32 0, i32 0
%30 = load ptr, ptr %29, align 8
%31 = call i32 @sprintf(ptr noundef %26, ptr noundef @.str.1, ptr noundef %27, ptr noundef %30)
%32 = load ptr, ptr %10, align 8
%33 = load ptr, ptr %4, align 8
%34 = load ptr, ptr %7, align 8
%35 = getelementptr inbounds %struct.dirent, ptr %34, i32 0, i32 0
%36 = load ptr, ptr %35, align 8
%37 = call i32 @sprintf(ptr noundef %32, ptr noundef @.str.1, ptr noundef %33, ptr noundef %36)
%38 = load ptr, ptr %9, align 8
%39 = call i64 @stat(ptr noundef %38, ptr noundef %8)
%40 = icmp slt i64 %39, 0
br i1 %40, label %41, label %45
41: ; preds = %25
%42 = load i32, ptr @stdout, align 4
%43 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %42, ptr noundef @.str)
%44 = call i32 @exit(i32 noundef 3) #3
unreachable
45: ; preds = %25
%46 = getelementptr inbounds %struct.stat, ptr %8, i32 0, i32 0
%47 = load i32, ptr %46, align 4
%48 = call i64 @S_ISDIR(i32 noundef %47)
%49 = icmp ne i64 %48, 0
br i1 %49, label %50, label %84
50: ; preds = %45
%51 = load ptr, ptr %7, align 8
%52 = getelementptr inbounds %struct.dirent, ptr %51, i32 0, i32 0
%53 = load ptr, ptr %52, align 8
%54 = call i64 @strcmp(ptr noundef @.str.2, ptr noundef %53)
%55 = icmp ne i64 %54, 0
br i1 %55, label %56, label %84
56: ; preds = %50
%57 = load ptr, ptr %7, align 8
%58 = getelementptr inbounds %struct.dirent, ptr %57, i32 0, i32 0
%59 = load ptr, ptr %58, align 8
%60 = call i64 @strcmp(ptr noundef @.str.3, ptr noundef %59)
%61 = icmp ne i64 %60, 0
br i1 %61, label %62, label %84
62: ; preds = %56
%63 = load ptr, ptr %10, align 8
%64 = load i32, ptr @S_IRUSR, align 4
%65 = load i32, ptr @S_IWUSR, align 4
%66 = or i32 %64, %65
%67 = load i32, ptr @S_IXUSR, align 4
%68 = or i32 %66, %67
%69 = call i64 @mkdir(ptr noundef %63, i32 noundef %68)
%70 = icmp slt i64 %69, 0
br i1 %70, label %71, label %76
71: ; preds = %62
%72 = load i32, ptr @stdout, align 4
%73 = load ptr, ptr %9, align 8
%74 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %72, ptr noundef @.str.4, ptr noundef %73)
%75 = call i32 @exit(i32 noundef 4) #3
unreachable
76: ; preds = %62
%77 = load i32, ptr @stdout, align 4
%78 = load ptr, ptr %9, align 8
%79 = load ptr, ptr %10, align 8
%80 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %77, ptr noundef @.str.5, ptr noundef %78, ptr noundef %79)
%81 = load ptr, ptr %9, align 8
%82 = load ptr, ptr %10, align 8
%83 = call i32 @mycopy(ptr noundef %81, ptr noundef %82)
br label %98
84: ; preds = %56, %50, %45
%85 = getelementptr inbounds %struct.stat, ptr %8, i32 0, i32 0
%86 = load i32, ptr %85, align 4
%87 = call i64 @S_ISREG(i32 noundef %86)
%88 = icmp ne i64 %87, 0
br i1 %88, label %89, label %97
89: ; preds = %84
%90 = load i32, ptr @stdout, align 4
%91 = load ptr, ptr %9, align 8
%92 = load ptr, ptr %10, align 8
%93 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %90, ptr noundef @.str.5, ptr noundef %91, ptr noundef %92)
%94 = load ptr, ptr %9, align 8
%95 = load ptr, ptr %10, align 8
%96 = call i32 @mycopyf(ptr noundef %94, ptr noundef %95)
br label %97
97: ; preds = %89, %84
br label %98
98: ; preds = %97, %76
br label %21, !llvm.loop !6
99: ; preds = %21
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare ptr @opendir(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @readdir(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @stat(ptr noundef, ptr noundef) #1
declare i64 @S_ISDIR(i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i64 @mkdir(ptr noundef, i32 noundef) #1
declare i64 @S_ISREG(i32 noundef) #1
declare i32 @mycopyf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxc3lastj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
%struct.dirent = type { ptr }
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [8 x i8] c"Errore\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%s/%s\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"..\00", align 1
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@S_IXUSR = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [11 x i8] c"Errore %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [13 x i8] c"%-30s %-30s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mycopy(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca %struct.stat, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%11 = call ptr @malloc(i32 noundef 4096)
store ptr %11, ptr %9, align 8
%12 = call ptr @malloc(i32 noundef 4096)
store ptr %12, ptr %10, align 8
%13 = load ptr, ptr %3, align 8
%14 = call ptr @opendir(ptr noundef %13)
store ptr %14, ptr %5, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %20
16: ; preds = %2
%17 = load i32, ptr @stdout, align 4
%18 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %17, ptr noundef @.str)
%19 = call i32 @exit(i32 noundef 2) #3
unreachable
20: ; preds = %2
%21 = load ptr, ptr %5, align 8
%22 = call ptr @readdir(ptr noundef %21)
store ptr %22, ptr %7, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %.lr.ph, label %101
.lr.ph: ; preds = %20
br label %24
24: ; preds = %.lr.ph, %97
%25 = load ptr, ptr %9, align 8
%26 = load ptr, ptr %3, align 8
%27 = load ptr, ptr %7, align 8
%28 = getelementptr inbounds %struct.dirent, ptr %27, i32 0, i32 0
%29 = load ptr, ptr %28, align 8
%30 = call i32 @sprintf(ptr noundef %25, ptr noundef @.str.1, ptr noundef %26, ptr noundef %29)
%31 = load ptr, ptr %10, align 8
%32 = load ptr, ptr %4, align 8
%33 = load ptr, ptr %7, align 8
%34 = getelementptr inbounds %struct.dirent, ptr %33, i32 0, i32 0
%35 = load ptr, ptr %34, align 8
%36 = call i32 @sprintf(ptr noundef %31, ptr noundef @.str.1, ptr noundef %32, ptr noundef %35)
%37 = load ptr, ptr %9, align 8
%38 = call i64 @stat(ptr noundef %37, ptr noundef %8)
%39 = icmp slt i64 %38, 0
br i1 %39, label %40, label %44
40: ; preds = %24
%41 = load i32, ptr @stdout, align 4
%42 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %41, ptr noundef @.str)
%43 = call i32 @exit(i32 noundef 3) #3
unreachable
44: ; preds = %24
%45 = getelementptr inbounds %struct.stat, ptr %8, i32 0, i32 0
%46 = load i32, ptr %45, align 4
%47 = call i64 @S_ISDIR(i32 noundef %46)
%48 = icmp ne i64 %47, 0
br i1 %48, label %49, label %83
49: ; preds = %44
%50 = load ptr, ptr %7, align 8
%51 = getelementptr inbounds %struct.dirent, ptr %50, i32 0, i32 0
%52 = load ptr, ptr %51, align 8
%53 = call i64 @strcmp(ptr noundef @.str.2, ptr noundef %52)
%54 = icmp ne i64 %53, 0
br i1 %54, label %55, label %83
55: ; preds = %49
%56 = load ptr, ptr %7, align 8
%57 = getelementptr inbounds %struct.dirent, ptr %56, i32 0, i32 0
%58 = load ptr, ptr %57, align 8
%59 = call i64 @strcmp(ptr noundef @.str.3, ptr noundef %58)
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %83
61: ; preds = %55
%62 = load ptr, ptr %10, align 8
%63 = load i32, ptr @S_IRUSR, align 4
%64 = load i32, ptr @S_IWUSR, align 4
%65 = or i32 %63, %64
%66 = load i32, ptr @S_IXUSR, align 4
%67 = or i32 %65, %66
%68 = call i64 @mkdir(ptr noundef %62, i32 noundef %67)
%69 = icmp slt i64 %68, 0
br i1 %69, label %70, label %75
70: ; preds = %61
%71 = load i32, ptr @stdout, align 4
%72 = load ptr, ptr %9, align 8
%73 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %71, ptr noundef @.str.4, ptr noundef %72)
%74 = call i32 @exit(i32 noundef 4) #3
unreachable
75: ; preds = %61
%76 = load i32, ptr @stdout, align 4
%77 = load ptr, ptr %9, align 8
%78 = load ptr, ptr %10, align 8
%79 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %76, ptr noundef @.str.5, ptr noundef %77, ptr noundef %78)
%80 = load ptr, ptr %9, align 8
%81 = load ptr, ptr %10, align 8
%82 = call i32 @mycopy(ptr noundef %80, ptr noundef %81)
br label %97
83: ; preds = %55, %49, %44
%84 = getelementptr inbounds %struct.stat, ptr %8, i32 0, i32 0
%85 = load i32, ptr %84, align 4
%86 = call i64 @S_ISREG(i32 noundef %85)
%87 = icmp ne i64 %86, 0
br i1 %87, label %88, label %96
88: ; preds = %83
%89 = load i32, ptr @stdout, align 4
%90 = load ptr, ptr %9, align 8
%91 = load ptr, ptr %10, align 8
%92 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %89, ptr noundef @.str.5, ptr noundef %90, ptr noundef %91)
%93 = load ptr, ptr %9, align 8
%94 = load ptr, ptr %10, align 8
%95 = call i32 @mycopyf(ptr noundef %93, ptr noundef %94)
br label %96
96: ; preds = %88, %83
br label %97
97: ; preds = %96, %75
%98 = load ptr, ptr %5, align 8
%99 = call ptr @readdir(ptr noundef %98)
store ptr %99, ptr %7, align 8
%100 = icmp ne ptr %99, null
br i1 %100, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %97
br label %101
101: ; preds = %._crit_edge, %20
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare ptr @opendir(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @readdir(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @stat(ptr noundef, ptr noundef) #1
declare i64 @S_ISDIR(i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i64 @mkdir(ptr noundef, i32 noundef) #1
declare i64 @S_ISREG(i32 noundef) #1
declare i32 @mycopyf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpgj9lfrv5.c'
source_filename = "/tmp/tmpgj9lfrv5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @squash(float noundef %0) #0 {
%2 = alloca float, align 4
%3 = alloca float, align 4
store float %0, ptr %2, align 4
%4 = load float, ptr %2, align 4
%5 = fneg float %4
%6 = call double @exp(float noundef %5)
%7 = fadd double 1.000000e+00, %6
%8 = fdiv double 1.000000e+00, %7
%9 = fptrunc double %8 to float
ret float %9
}
declare double @exp(float noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgj9lfrv5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @squash(float noundef %0) #0 {
%2 = alloca float, align 4
%3 = alloca float, align 4
store float %0, ptr %2, align 4
%4 = load float, ptr %2, align 4
%5 = fneg float %4
%6 = call double @exp(float noundef %5)
%7 = fadd double 1.000000e+00, %6
%8 = fdiv double 1.000000e+00, %7
%9 = fptrunc double %8 to float
ret float %9
}
declare double @exp(float noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfvy8kwa9.c'
source_filename = "/tmp/tmpfvy8kwa9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"identifier\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @parse_identifier_packet(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%12 = load ptr, ptr %5, align 8
%13 = call i64 @parse_kv_packet(ptr noundef %12, ptr noundef %8, ptr noundef %10, ptr noundef %9, ptr noundef %11)
%14 = icmp slt i64 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %3
store i32 -1, ptr %4, align 4
br label %29
16: ; preds = %3
%17 = load i64, ptr %10, align 8
%18 = icmp ne i64 %17, 10
br i1 %18, label %23, label %19
19: ; preds = %16
%20 = load ptr, ptr %8, align 8
%21 = call i64 @memcmp(ptr noundef %20, ptr noundef @.str, i32 noundef 10)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %19, %16
store i32 -1, ptr %4, align 4
br label %29
24: ; preds = %19
%25 = load ptr, ptr %9, align 8
%26 = load ptr, ptr %6, align 8
store ptr %25, ptr %26, align 8
%27 = load i64, ptr %11, align 8
%28 = load ptr, ptr %7, align 8
store i64 %27, ptr %28, align 8
store i32 0, ptr %4, align 4
br label %29
29: ; preds = %24, %23, %15
%30 = load i32, ptr %4, align 4
ret i32 %30
}
declare i64 @parse_kv_packet(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfvy8kwa9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"identifier\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @parse_identifier_packet(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%12 = load ptr, ptr %5, align 8
%13 = call i64 @parse_kv_packet(ptr noundef %12, ptr noundef %8, ptr noundef %10, ptr noundef %9, ptr noundef %11)
%14 = icmp slt i64 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %3
store i32 -1, ptr %4, align 4
br label %29
16: ; preds = %3
%17 = load i64, ptr %10, align 8
%18 = icmp ne i64 %17, 10
br i1 %18, label %23, label %19
19: ; preds = %16
%20 = load ptr, ptr %8, align 8
%21 = call i64 @memcmp(ptr noundef %20, ptr noundef @.str, i32 noundef 10)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %19, %16
store i32 -1, ptr %4, align 4
br label %29
24: ; preds = %19
%25 = load ptr, ptr %9, align 8
%26 = load ptr, ptr %6, align 8
store ptr %25, ptr %26, align 8
%27 = load i64, ptr %11, align 8
%28 = load ptr, ptr %7, align 8
store i64 %27, ptr %28, align 8
store i32 0, ptr %4, align 4
br label %29
29: ; preds = %24, %23, %15
%30 = load i32, ptr %4, align 4
ret i32 %30
}
declare i64 @parse_kv_packet(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5l94j912.c'
source_filename = "/tmp/tmp5l94j912.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isupper.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isupper should be 0 for 2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isupper_0x32() #0 {
%1 = call i64 @isupper(i32 noundef 50)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 255, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isupper(i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5l94j912.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isupper.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isupper should be 0 for 2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isupper_0x32() #0 {
%1 = call i64 @isupper(i32 noundef 50)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 255, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isupper(i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp2w9b5ey.c'
source_filename = "/tmp/tmpp2w9b5ey.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.pass = private unnamed_addr constant [11 x i8] c"xxxxxxxxxx\00", align 1
@.str = private unnamed_addr constant [3 x i8] c"-h\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"--help\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"-?\00", align 1
@errno = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [83 x i8] c"Error in the conversion of the number of password from string to ulong, strtoull()\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca [11 x i8], align 1
%8 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.main.pass, i64 11, i1 false)
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 2
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = load ptr, ptr %12, align 8
%14 = call i32 @ehelp(ptr noundef %13)
br label %15
15: ; preds = %11, %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
%19 = call i32 @strncmp(ptr noundef %18, ptr noundef @.str, i32 noundef 2)
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %33
21: ; preds = %15
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i32 @strncmp(ptr noundef %24, ptr noundef @.str.1, i32 noundef 6)
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %33
27: ; preds = %21
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 1
%30 = load ptr, ptr %29, align 8
%31 = call i32 @strncmp(ptr noundef %30, ptr noundef @.str.2, i32 noundef 2)
%32 = icmp ne i32 %31, 0
br i1 %32, label %37, label %33
33: ; preds = %27, %21, %15
%34 = load ptr, ptr %5, align 8
%35 = load ptr, ptr %34, align 8
%36 = call i32 @ehelp(ptr noundef %35)
br label %37
37: ; preds = %33, %27
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 1
%40 = load ptr, ptr %39, align 8
%41 = call i64 @strtoull(ptr noundef %40, ptr noundef null, i32 noundef 0)
store i64 %41, ptr %6, align 8
%42 = load i64, ptr @errno, align 8
%43 = icmp ne i64 %42, 0
br i1 %43, label %44, label %47
44: ; preds = %37
%45 = call i32 @perror(ptr noundef @.str.3)
%46 = call i32 @exit(i32 noundef 1) #4
unreachable
47: ; preds = %37
%48 = call i32 @time(ptr noundef null)
%49 = call i32 @srand(i32 noundef %48)
store i64 0, ptr %8, align 8
br label %50
50: ; preds = %58, %47
%51 = load i64, ptr %8, align 8
%52 = load i64, ptr %6, align 8
%53 = icmp ult i64 %51, %52
br i1 %53, label %54, label %61
54: ; preds = %50
%55 = getelementptr inbounds [11 x i8], ptr %7, i64 0, i64 0
%56 = call ptr @generatepass(ptr noundef %55)
%57 = call i32 @printf(ptr noundef @.str.4, ptr noundef %56)
br label %58
58: ; preds = %54
%59 = load i64, ptr %8, align 8
%60 = add i64 %59, 1
store i64 %60, ptr %8, align 8
br label %50, !llvm.loop !6
61: ; preds = %50
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @ehelp(ptr noundef) #2
declare i32 @strncmp(ptr noundef, ptr noundef, i32 noundef) #2
declare i64 @strtoull(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @perror(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @srand(i32 noundef) #2
declare i32 @time(ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
declare ptr @generatepass(ptr noundef) #2
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp2w9b5ey.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.pass = private unnamed_addr constant [11 x i8] c"xxxxxxxxxx\00", align 1
@.str = private unnamed_addr constant [3 x i8] c"-h\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"--help\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"-?\00", align 1
@errno = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [83 x i8] c"Error in the conversion of the number of password from string to ulong, strtoull()\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca [11 x i8], align 1
%8 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.main.pass, i64 11, i1 false)
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 2
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = load ptr, ptr %12, align 8
%14 = call i32 @ehelp(ptr noundef %13)
br label %15
15: ; preds = %11, %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
%19 = call i32 @strncmp(ptr noundef %18, ptr noundef @.str, i32 noundef 2)
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %33
21: ; preds = %15
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i32 @strncmp(ptr noundef %24, ptr noundef @.str.1, i32 noundef 6)
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %33
27: ; preds = %21
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 1
%30 = load ptr, ptr %29, align 8
%31 = call i32 @strncmp(ptr noundef %30, ptr noundef @.str.2, i32 noundef 2)
%32 = icmp ne i32 %31, 0
br i1 %32, label %37, label %33
33: ; preds = %27, %21, %15
%34 = load ptr, ptr %5, align 8
%35 = load ptr, ptr %34, align 8
%36 = call i32 @ehelp(ptr noundef %35)
br label %37
37: ; preds = %33, %27
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 1
%40 = load ptr, ptr %39, align 8
%41 = call i64 @strtoull(ptr noundef %40, ptr noundef null, i32 noundef 0)
store i64 %41, ptr %6, align 8
%42 = load i64, ptr @errno, align 8
%43 = icmp ne i64 %42, 0
br i1 %43, label %44, label %47
44: ; preds = %37
%45 = call i32 @perror(ptr noundef @.str.3)
%46 = call i32 @exit(i32 noundef 1) #4
unreachable
47: ; preds = %37
%48 = call i32 @time(ptr noundef null)
%49 = call i32 @srand(i32 noundef %48)
store i64 0, ptr %8, align 8
%50 = load i64, ptr %8, align 8
%51 = load i64, ptr %6, align 8
%52 = icmp ult i64 %50, %51
br i1 %52, label %.lr.ph, label %63
.lr.ph: ; preds = %47
br label %53
53: ; preds = %.lr.ph, %57
%54 = getelementptr inbounds [11 x i8], ptr %7, i64 0, i64 0
%55 = call ptr @generatepass(ptr noundef %54)
%56 = call i32 @printf(ptr noundef @.str.4, ptr noundef %55)
br label %57
57: ; preds = %53
%58 = load i64, ptr %8, align 8
%59 = add i64 %58, 1
store i64 %59, ptr %8, align 8
%60 = load i64, ptr %8, align 8
%61 = load i64, ptr %6, align 8
%62 = icmp ult i64 %60, %61
br i1 %62, label %53, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %57
br label %63
63: ; preds = %._crit_edge, %47
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @ehelp(ptr noundef) #2
declare i32 @strncmp(ptr noundef, ptr noundef, i32 noundef) #2
declare i64 @strtoull(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @perror(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @srand(i32 noundef) #2
declare i32 @time(ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
declare ptr @generatepass(ptr noundef) #2
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpi2f88kep.c'
source_filename = "/tmp/tmpi2f88kep.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Enter A Number: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"%d! is: \00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"%d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
store i32 1, ptr %2, align 4
br label %8
8: ; preds = %27, %0
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp sle i32 %9, %10
br i1 %11, label %12, label %30
12: ; preds = %8
%13 = load i32, ptr %2, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %13)
%15 = load i32, ptr %2, align 4
store i32 %15, ptr %5, align 4
store i32 1, ptr %4, align 4
br label %16
16: ; preds = %19, %12
%17 = load i32, ptr %5, align 4
%18 = icmp sgt i32 %17, 0
br i1 %18, label %19, label %24
19: ; preds = %16
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, -1
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %4, align 4
%23 = mul nsw i32 %22, %20
store i32 %23, ptr %4, align 4
br label %16, !llvm.loop !6
24: ; preds = %16
%25 = load i32, ptr %4, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %25)
br label %27
27: ; preds = %24
%28 = load i32, ptr %2, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %2, align 4
br label %8, !llvm.loop !8
30: ; preds = %8
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi2f88kep.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Enter A Number: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"%d! is: \00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"%d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
store i32 1, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp sle i32 %8, %9
br i1 %10, label %.lr.ph2, label %33
.lr.ph2: ; preds = %0
br label %11
11: ; preds = %.lr.ph2, %27
%12 = load i32, ptr %2, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %12)
%14 = load i32, ptr %2, align 4
store i32 %14, ptr %5, align 4
store i32 1, ptr %4, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp sgt i32 %15, 0
br i1 %16, label %.lr.ph, label %24
.lr.ph: ; preds = %11
br label %17
17: ; preds = %.lr.ph, %17
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, -1
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %4, align 4
%21 = mul nsw i32 %20, %18
store i32 %21, ptr %4, align 4
%22 = load i32, ptr %5, align 4
%23 = icmp sgt i32 %22, 0
br i1 %23, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %24
24: ; preds = %._crit_edge, %11
%25 = load i32, ptr %4, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %25)
br label %27
27: ; preds = %24
%28 = load i32, ptr %2, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %2, align 4
%30 = load i32, ptr %2, align 4
%31 = load i32, ptr %3, align 4
%32 = icmp sle i32 %30, %31
br i1 %32, label %11, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %27
br label %33
33: ; preds = %._crit_edge3, %0
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpzu0qm805.c'
source_filename = "/tmp/tmpzu0qm805.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca i8, align 1
%4 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i8 7, ptr %2, align 1
store i8 97, ptr %2, align 1
%5 = load i8, ptr %2, align 1
%6 = sext i8 %5 to i32
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %6)
store i8 8, ptr %2, align 1
%8 = load i8, ptr %2, align 1
%9 = sext i8 %8 to i32
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %9)
store i8 98, ptr %2, align 1
%11 = load i8, ptr %2, align 1
%12 = sext i8 %11 to i32
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %12)
store i8 10, ptr %2, align 1
%14 = load i8, ptr %2, align 1
%15 = sext i8 %14 to i32
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %15)
store i8 97, ptr %2, align 1
%17 = load i8, ptr %2, align 1
%18 = sext i8 %17 to i32
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %18)
store i8 98, ptr %2, align 1
%20 = load i8, ptr %2, align 1
%21 = sext i8 %20 to i32
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %21)
store i8 13, ptr %2, align 1
%23 = load i8, ptr %2, align 1
%24 = sext i8 %23 to i32
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %24)
store i8 99, ptr %2, align 1
%26 = load i8, ptr %2, align 1
%27 = sext i8 %26 to i32
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %27)
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i8 97, ptr %2, align 1
%30 = load i8, ptr %2, align 1
%31 = sext i8 %30 to i32
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %31)
store i8 9, ptr %2, align 1
%33 = load i8, ptr %2, align 1
%34 = sext i8 %33 to i32
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %34)
store i8 98, ptr %2, align 1
%36 = load i8, ptr %2, align 1
%37 = sext i8 %36 to i32
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %37)
store i8 39, ptr %2, align 1
%39 = load i8, ptr %2, align 1
%40 = sext i8 %39 to i32
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %40)
store i8 0, ptr %3, align 1
store i8 0, ptr %4, align 1
%42 = load i8, ptr %4, align 1
%43 = zext i8 %42 to i32
%44 = sub nsw i32 %43, 1
%45 = trunc i32 %44 to i8
store i8 %45, ptr %4, align 1
store i8 127, ptr %3, align 1
%46 = load i8, ptr %3, align 1
%47 = sext i8 %46 to i32
%48 = add nsw i32 %47, 5
%49 = trunc i32 %48 to i8
store i8 %49, ptr %3, align 1
%50 = load i8, ptr %3, align 1
%51 = sext i8 %50 to i32
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %51)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzu0qm805.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca i8, align 1
%4 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i8 7, ptr %2, align 1
store i8 97, ptr %2, align 1
%5 = load i8, ptr %2, align 1
%6 = sext i8 %5 to i32
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %6)
store i8 8, ptr %2, align 1
%8 = load i8, ptr %2, align 1
%9 = sext i8 %8 to i32
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %9)
store i8 98, ptr %2, align 1
%11 = load i8, ptr %2, align 1
%12 = sext i8 %11 to i32
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %12)
store i8 10, ptr %2, align 1
%14 = load i8, ptr %2, align 1
%15 = sext i8 %14 to i32
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %15)
store i8 97, ptr %2, align 1
%17 = load i8, ptr %2, align 1
%18 = sext i8 %17 to i32
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %18)
store i8 98, ptr %2, align 1
%20 = load i8, ptr %2, align 1
%21 = sext i8 %20 to i32
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %21)
store i8 13, ptr %2, align 1
%23 = load i8, ptr %2, align 1
%24 = sext i8 %23 to i32
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %24)
store i8 99, ptr %2, align 1
%26 = load i8, ptr %2, align 1
%27 = sext i8 %26 to i32
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %27)
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i8 97, ptr %2, align 1
%30 = load i8, ptr %2, align 1
%31 = sext i8 %30 to i32
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %31)
store i8 9, ptr %2, align 1
%33 = load i8, ptr %2, align 1
%34 = sext i8 %33 to i32
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %34)
store i8 98, ptr %2, align 1
%36 = load i8, ptr %2, align 1
%37 = sext i8 %36 to i32
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %37)
store i8 39, ptr %2, align 1
%39 = load i8, ptr %2, align 1
%40 = sext i8 %39 to i32
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %40)
store i8 0, ptr %3, align 1
store i8 0, ptr %4, align 1
%42 = load i8, ptr %4, align 1
%43 = zext i8 %42 to i32
%44 = sub nsw i32 %43, 1
%45 = trunc i32 %44 to i8
store i8 %45, ptr %4, align 1
store i8 127, ptr %3, align 1
%46 = load i8, ptr %3, align 1
%47 = sext i8 %46 to i32
%48 = add nsw i32 %47, 5
%49 = trunc i32 %48 to i8
store i8 %49, ptr %3, align 1
%50 = load i8, ptr %3, align 1
%51 = sext i8 %50 to i32
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %51)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvs3rq3y5.c'
source_filename = "/tmp/tmpvs3rq3y5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.addrinfo = type { i32, ptr, i64, ptr, i32 }
%struct.hostent = type { i32, i32, ptr, ptr, ptr }
%struct.sockaddr_in = type { i32 }
@AF_INET6 = dso_local global i32 0, align 4
@AF_INET = dso_local global i32 0, align 4
@AI_CANONNAME = dso_local global i32 0, align 4
@ERANGE = dso_local global i32 0, align 4
@HOST_NOT_FOUND = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@TRY_AGAIN = dso_local global i32 0, align 4
@NO_RECOVERY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gethostbyname2_r(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca %struct.addrinfo, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca i64, align 8
%21 = alloca ptr, align 8
store ptr %0, ptr %9, align 8
store i32 %1, ptr %10, align 4
store ptr %2, ptr %11, align 8
store ptr %3, ptr %12, align 8
store i64 %4, ptr %13, align 8
store ptr %5, ptr %14, align 8
store ptr %6, ptr %15, align 8
call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 40, i1 false)
%22 = getelementptr inbounds %struct.addrinfo, ptr %16, i32 0, i32 0
%23 = load i32, ptr %10, align 4
%24 = load i32, ptr @AF_INET6, align 4
%25 = icmp eq i32 %23, %24
br i1 %25, label %26, label %28
26: ; preds = %7
%27 = load i32, ptr %10, align 4
br label %30
28: ; preds = %7
%29 = load i32, ptr @AF_INET, align 4
br label %30
30: ; preds = %28, %26
%31 = phi i32 [ %27, %26 ], [ %29, %28 ]
store i32 %31, ptr %22, align 8
%32 = getelementptr inbounds %struct.addrinfo, ptr %16, i32 0, i32 4
%33 = load i32, ptr @AI_CANONNAME, align 4
store i32 %33, ptr %32, align 8
%34 = load ptr, ptr %14, align 8
store ptr null, ptr %34, align 8
%35 = getelementptr inbounds %struct.addrinfo, ptr %16, i32 0, i32 0
%36 = load i32, ptr %35, align 8
store i32 %36, ptr %10, align 4
%37 = load ptr, ptr %12, align 8
%38 = ptrtoint ptr %37 to i64
%39 = and i64 %38, 7
%40 = trunc i64 %39 to i32
store i32 %40, ptr %19, align 4
%41 = load i32, ptr %19, align 4
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %62
43: ; preds = %30
%44 = load i64, ptr %13, align 8
%45 = load i32, ptr %19, align 4
%46 = sext i32 %45 to i64
%47 = sub i64 8, %46
%48 = icmp ult i64 %44, %47
br i1 %48, label %49, label %51
49: ; preds = %43
%50 = load i32, ptr @ERANGE, align 4
store i32 %50, ptr %8, align 4
br label %261
51: ; preds = %43
%52 = load i32, ptr %19, align 4
%53 = sext i32 %52 to i64
%54 = sub i64 8, %53
%55 = load ptr, ptr %12, align 8
%56 = getelementptr inbounds i8, ptr %55, i64 %54
store ptr %56, ptr %12, align 8
%57 = load i32, ptr %19, align 4
%58 = sext i32 %57 to i64
%59 = sub i64 8, %58
%60 = load i64, ptr %13, align 8
%61 = sub i64 %60, %59
store i64 %61, ptr %13, align 8
br label %62
62: ; preds = %51, %30
%63 = load ptr, ptr %9, align 8
%64 = call i32 @getaddrinfo(ptr noundef %63, i32 noundef 0, ptr noundef %16, ptr noundef %17)
switch i32 %64, label %73 [
i32 129, label %65
i32 132, label %69
i32 130, label %74
i32 128, label %74
i32 131, label %74
i32 0, label %78
]
65: ; preds = %62
%66 = load i32, ptr @HOST_NOT_FOUND, align 4
%67 = load ptr, ptr %15, align 8
store i32 %66, ptr %67, align 4
%68 = load i32, ptr @errno, align 4
store i32 %68, ptr %8, align 4
br label %261
69: ; preds = %62
%70 = load i32, ptr @TRY_AGAIN, align 4
%71 = load ptr, ptr %15, align 8
store i32 %70, ptr %71, align 4
%72 = load i32, ptr @errno, align 4
store i32 %72, ptr %8, align 4
br label %261
73: ; preds = %62
br label %74
74: ; preds = %62, %62, %62, %73
%75 = load i32, ptr @NO_RECOVERY, align 4
%76 = load ptr, ptr %15, align 8
store i32 %75, ptr %76, align 4
%77 = load i32, ptr @errno, align 4
store i32 %77, ptr %8, align 4
br label %261
78: ; preds = %62
br label %79
79: ; preds = %78
%80 = load i32, ptr %10, align 4
%81 = load ptr, ptr %11, align 8
%82 = getelementptr inbounds %struct.hostent, ptr %81, i32 0, i32 0
store i32 %80, ptr %82, align 8
%83 = load i32, ptr %10, align 4
%84 = load i32, ptr @AF_INET6, align 4
%85 = icmp eq i32 %83, %84
%86 = zext i1 %85 to i64
%87 = select i1 %85, i32 16, i32 4
%88 = load ptr, ptr %11, align 8
%89 = getelementptr inbounds %struct.hostent, ptr %88, i32 0, i32 1
store i32 %87, ptr %89, align 4
%90 = load ptr, ptr %17, align 8
%91 = getelementptr inbounds %struct.addrinfo, ptr %90, i32 0, i32 1
%92 = load ptr, ptr %91, align 8
%93 = icmp ne ptr %92, null
br i1 %93, label %94, label %98
94: ; preds = %79
%95 = load ptr, ptr %17, align 8
%96 = getelementptr inbounds %struct.addrinfo, ptr %95, i32 0, i32 1
%97 = load ptr, ptr %96, align 8
br label %100
98: ; preds = %79
%99 = load ptr, ptr %9, align 8
br label %100
100: ; preds = %98, %94
%101 = phi ptr [ %97, %94 ], [ %99, %98 ]
store ptr %101, ptr %21, align 8
store i64 32, ptr %20, align 8
store i32 0, ptr %19, align 4
%102 = load ptr, ptr %17, align 8
store ptr %102, ptr %18, align 8
br label %103
103: ; preds = %114, %100
%104 = load ptr, ptr %18, align 8
%105 = icmp ne ptr %104, null
br i1 %105, label %106, label %120
106: ; preds = %103
%107 = load ptr, ptr %11, align 8
%108 = getelementptr inbounds %struct.hostent, ptr %107, i32 0, i32 1
%109 = load i32, ptr %108, align 4
%110 = sext i32 %109 to i64
%111 = add i64 8, %110
%112 = load i64, ptr %20, align 8
%113 = add i64 %112, %111
store i64 %113, ptr %20, align 8
br label %114
114: ; preds = %106
%115 = load i32, ptr %19, align 4
%116 = add nsw i32 %115, 1
store i32 %116, ptr %19, align 4
%117 = load ptr, ptr %18, align 8
%118 = getelementptr inbounds %struct.addrinfo, ptr %117, i32 0, i32 3
%119 = load ptr, ptr %118, align 8
store ptr %119, ptr %18, align 8
br label %103, !llvm.loop !6
120: ; preds = %103
%121 = load ptr, ptr %9, align 8
%122 = call i64 @strlen(ptr noundef %121)
%123 = add nsw i64 %122, 1
%124 = load i64, ptr %20, align 8
%125 = add i64 %124, %123
store i64 %125, ptr %20, align 8
%126 = load ptr, ptr %21, align 8
%127 = call i64 @strlen(ptr noundef %126)
%128 = add nsw i64 %127, 1
%129 = load i64, ptr %20, align 8
%130 = add i64 %129, %128
store i64 %130, ptr %20, align 8
%131 = load i64, ptr %20, align 8
%132 = load i64, ptr %13, align 8
%133 = icmp ugt i64 %131, %132
br i1 %133, label %134, label %138
134: ; preds = %120
%135 = load ptr, ptr %17, align 8
%136 = call i32 @freeaddrinfo(ptr noundef %135)
%137 = load i32, ptr @ERANGE, align 4
store i32 %137, ptr %8, align 4
br label %261
138: ; preds = %120
%139 = load ptr, ptr %12, align 8
%140 = load ptr, ptr %11, align 8
%141 = getelementptr inbounds %struct.hostent, ptr %140, i32 0, i32 2
store ptr %139, ptr %141, align 8
%142 = load ptr, ptr %12, align 8
%143 = getelementptr inbounds i8, ptr %142, i64 24
store ptr %143, ptr %12, align 8
%144 = load ptr, ptr %12, align 8
%145 = load ptr, ptr %11, align 8
%146 = getelementptr inbounds %struct.hostent, ptr %145, i32 0, i32 4
store ptr %144, ptr %146, align 8
%147 = load i32, ptr %19, align 4
%148 = add nsw i32 %147, 1
%149 = sext i32 %148 to i64
%150 = mul i64 %149, 8
%151 = load ptr, ptr %12, align 8
%152 = getelementptr inbounds i8, ptr %151, i64 %150
store ptr %152, ptr %12, align 8
%153 = load ptr, ptr %12, align 8
%154 = load ptr, ptr %11, align 8
%155 = getelementptr inbounds %struct.hostent, ptr %154, i32 0, i32 2
%156 = load ptr, ptr %155, align 8
%157 = getelementptr inbounds ptr, ptr %156, i64 0
store ptr %153, ptr %157, align 8
%158 = load ptr, ptr %11, align 8
%159 = getelementptr inbounds %struct.hostent, ptr %158, i32 0, i32 3
store ptr %153, ptr %159, align 8
%160 = load ptr, ptr %11, align 8
%161 = getelementptr inbounds %struct.hostent, ptr %160, i32 0, i32 3
%162 = load ptr, ptr %161, align 8
%163 = load ptr, ptr %21, align 8
%164 = call i32 @strcpy(ptr noundef %162, ptr noundef %163)
%165 = load ptr, ptr %11, align 8
%166 = getelementptr inbounds %struct.hostent, ptr %165, i32 0, i32 3
%167 = load ptr, ptr %166, align 8
%168 = call i64 @strlen(ptr noundef %167)
%169 = add nsw i64 %168, 1
%170 = load ptr, ptr %12, align 8
%171 = getelementptr inbounds i8, ptr %170, i64 %169
store ptr %171, ptr %12, align 8
%172 = load ptr, ptr %11, align 8
%173 = getelementptr inbounds %struct.hostent, ptr %172, i32 0, i32 3
%174 = load ptr, ptr %173, align 8
%175 = load ptr, ptr %9, align 8
%176 = call i64 @strcmp(ptr noundef %174, ptr noundef %175)
%177 = icmp ne i64 %176, 0
br i1 %177, label %178, label %200
178: ; preds = %138
%179 = load ptr, ptr %12, align 8
%180 = load ptr, ptr %11, align 8
%181 = getelementptr inbounds %struct.hostent, ptr %180, i32 0, i32 2
%182 = load ptr, ptr %181, align 8
%183 = getelementptr inbounds ptr, ptr %182, i64 1
store ptr %179, ptr %183, align 8
%184 = load ptr, ptr %11, align 8
%185 = getelementptr inbounds %struct.hostent, ptr %184, i32 0, i32 2
%186 = load ptr, ptr %185, align 8
%187 = getelementptr inbounds ptr, ptr %186, i64 1
%188 = load ptr, ptr %187, align 8
%189 = load ptr, ptr %9, align 8
%190 = call i32 @strcpy(ptr noundef %188, ptr noundef %189)
%191 = load ptr, ptr %11, align 8
%192 = getelementptr inbounds %struct.hostent, ptr %191, i32 0, i32 2
%193 = load ptr, ptr %192, align 8
%194 = getelementptr inbounds ptr, ptr %193, i64 1
%195 = load ptr, ptr %194, align 8
%196 = call i64 @strlen(ptr noundef %195)
%197 = add nsw i64 %196, 1
%198 = load ptr, ptr %12, align 8
%199 = getelementptr inbounds i8, ptr %198, i64 %197
store ptr %199, ptr %12, align 8
br label %205
200: ; preds = %138
%201 = load ptr, ptr %11, align 8
%202 = getelementptr inbounds %struct.hostent, ptr %201, i32 0, i32 2
%203 = load ptr, ptr %202, align 8
%204 = getelementptr inbounds ptr, ptr %203, i64 1
store ptr null, ptr %204, align 8
br label %205
205: ; preds = %200, %178
%206 = load ptr, ptr %11, align 8
%207 = getelementptr inbounds %struct.hostent, ptr %206, i32 0, i32 2
%208 = load ptr, ptr %207, align 8
%209 = getelementptr inbounds ptr, ptr %208, i64 2
store ptr null, ptr %209, align 8
store i32 0, ptr %19, align 4
%210 = load ptr, ptr %17, align 8
store ptr %210, ptr %18, align 8
br label %211
211: ; preds = %244, %205
%212 = load ptr, ptr %18, align 8
%213 = icmp ne ptr %212, null
br i1 %213, label %214, label %250
214: ; preds = %211
%215 = load ptr, ptr %12, align 8
%216 = load ptr, ptr %11, align 8
%217 = getelementptr inbounds %struct.hostent, ptr %216, i32 0, i32 4
%218 = load ptr, ptr %217, align 8
%219 = load i32, ptr %19, align 4
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds ptr, ptr %218, i64 %220
store ptr %215, ptr %221, align 8
%222 = load ptr, ptr %11, align 8
%223 = getelementptr inbounds %struct.hostent, ptr %222, i32 0, i32 1
%224 = load i32, ptr %223, align 4
%225 = load ptr, ptr %12, align 8
%226 = sext i32 %224 to i64
%227 = getelementptr inbounds i8, ptr %225, i64 %226
store ptr %227, ptr %12, align 8
%228 = load ptr, ptr %11, align 8
%229 = getelementptr inbounds %struct.hostent, ptr %228, i32 0, i32 4
%230 = load ptr, ptr %229, align 8
%231 = load i32, ptr %19, align 4
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds ptr, ptr %230, i64 %232
%234 = load ptr, ptr %233, align 8
%235 = load ptr, ptr %18, align 8
%236 = getelementptr inbounds %struct.addrinfo, ptr %235, i32 0, i32 2
%237 = load i64, ptr %236, align 8
%238 = inttoptr i64 %237 to ptr
%239 = getelementptr inbounds %struct.sockaddr_in, ptr %238, i32 0, i32 0
%240 = load ptr, ptr %11, align 8
%241 = getelementptr inbounds %struct.hostent, ptr %240, i32 0, i32 1
%242 = load i32, ptr %241, align 4
%243 = call i32 @memcpy(ptr noundef %234, ptr noundef %239, i32 noundef %242)
br label %244
244: ; preds = %214
%245 = load i32, ptr %19, align 4
%246 = add nsw i32 %245, 1
store i32 %246, ptr %19, align 4
%247 = load ptr, ptr %18, align 8
%248 = getelementptr inbounds %struct.addrinfo, ptr %247, i32 0, i32 3
%249 = load ptr, ptr %248, align 8
store ptr %249, ptr %18, align 8
br label %211, !llvm.loop !8
250: ; preds = %211
%251 = load ptr, ptr %11, align 8
%252 = getelementptr inbounds %struct.hostent, ptr %251, i32 0, i32 4
%253 = load ptr, ptr %252, align 8
%254 = load i32, ptr %19, align 4
%255 = sext i32 %254 to i64
%256 = getelementptr inbounds ptr, ptr %253, i64 %255
store ptr null, ptr %256, align 8
%257 = load ptr, ptr %11, align 8
%258 = load ptr, ptr %14, align 8
store ptr %257, ptr %258, align 8
%259 = load ptr, ptr %17, align 8
%260 = call i32 @freeaddrinfo(ptr noundef %259)
store i32 0, ptr %8, align 4
br label %261
261: ; preds = %250, %134, %74, %69, %65, %49
%262 = load i32, ptr %8, align 4
ret i32 %262
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @getaddrinfo(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i64 @strlen(ptr noundef) #2
declare i32 @freeaddrinfo(ptr noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvs3rq3y5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.addrinfo = type { i32, ptr, i64, ptr, i32 }
%struct.hostent = type { i32, i32, ptr, ptr, ptr }
%struct.sockaddr_in = type { i32 }
@AF_INET6 = dso_local global i32 0, align 4
@AF_INET = dso_local global i32 0, align 4
@AI_CANONNAME = dso_local global i32 0, align 4
@ERANGE = dso_local global i32 0, align 4
@HOST_NOT_FOUND = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@TRY_AGAIN = dso_local global i32 0, align 4
@NO_RECOVERY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gethostbyname2_r(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca %struct.addrinfo, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca i64, align 8
%21 = alloca ptr, align 8
store ptr %0, ptr %9, align 8
store i32 %1, ptr %10, align 4
store ptr %2, ptr %11, align 8
store ptr %3, ptr %12, align 8
store i64 %4, ptr %13, align 8
store ptr %5, ptr %14, align 8
store ptr %6, ptr %15, align 8
call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 40, i1 false)
%22 = getelementptr inbounds %struct.addrinfo, ptr %16, i32 0, i32 0
%23 = load i32, ptr %10, align 4
%24 = load i32, ptr @AF_INET6, align 4
%25 = icmp eq i32 %23, %24
br i1 %25, label %26, label %28
26: ; preds = %7
%27 = load i32, ptr %10, align 4
br label %30
28: ; preds = %7
%29 = load i32, ptr @AF_INET, align 4
br label %30
30: ; preds = %28, %26
%31 = phi i32 [ %27, %26 ], [ %29, %28 ]
store i32 %31, ptr %22, align 8
%32 = getelementptr inbounds %struct.addrinfo, ptr %16, i32 0, i32 4
%33 = load i32, ptr @AI_CANONNAME, align 4
store i32 %33, ptr %32, align 8
%34 = load ptr, ptr %14, align 8
store ptr null, ptr %34, align 8
%35 = getelementptr inbounds %struct.addrinfo, ptr %16, i32 0, i32 0
%36 = load i32, ptr %35, align 8
store i32 %36, ptr %10, align 4
%37 = load ptr, ptr %12, align 8
%38 = ptrtoint ptr %37 to i64
%39 = and i64 %38, 7
%40 = trunc i64 %39 to i32
store i32 %40, ptr %19, align 4
%41 = load i32, ptr %19, align 4
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %62
43: ; preds = %30
%44 = load i64, ptr %13, align 8
%45 = load i32, ptr %19, align 4
%46 = sext i32 %45 to i64
%47 = sub i64 8, %46
%48 = icmp ult i64 %44, %47
br i1 %48, label %49, label %51
49: ; preds = %43
%50 = load i32, ptr @ERANGE, align 4
store i32 %50, ptr %8, align 4
br label %263
51: ; preds = %43
%52 = load i32, ptr %19, align 4
%53 = sext i32 %52 to i64
%54 = sub i64 8, %53
%55 = load ptr, ptr %12, align 8
%56 = getelementptr inbounds i8, ptr %55, i64 %54
store ptr %56, ptr %12, align 8
%57 = load i32, ptr %19, align 4
%58 = sext i32 %57 to i64
%59 = sub i64 8, %58
%60 = load i64, ptr %13, align 8
%61 = sub i64 %60, %59
store i64 %61, ptr %13, align 8
br label %62
62: ; preds = %51, %30
%63 = load ptr, ptr %9, align 8
%64 = call i32 @getaddrinfo(ptr noundef %63, i32 noundef 0, ptr noundef %16, ptr noundef %17)
switch i32 %64, label %73 [
i32 129, label %65
i32 132, label %69
i32 130, label %74
i32 128, label %74
i32 131, label %74
i32 0, label %78
]
65: ; preds = %62
%66 = load i32, ptr @HOST_NOT_FOUND, align 4
%67 = load ptr, ptr %15, align 8
store i32 %66, ptr %67, align 4
%68 = load i32, ptr @errno, align 4
store i32 %68, ptr %8, align 4
br label %263
69: ; preds = %62
%70 = load i32, ptr @TRY_AGAIN, align 4
%71 = load ptr, ptr %15, align 8
store i32 %70, ptr %71, align 4
%72 = load i32, ptr @errno, align 4
store i32 %72, ptr %8, align 4
br label %263
73: ; preds = %62
br label %74
74: ; preds = %73, %62, %62, %62
%75 = load i32, ptr @NO_RECOVERY, align 4
%76 = load ptr, ptr %15, align 8
store i32 %75, ptr %76, align 4
%77 = load i32, ptr @errno, align 4
store i32 %77, ptr %8, align 4
br label %263
78: ; preds = %62
br label %79
79: ; preds = %78
%80 = load i32, ptr %10, align 4
%81 = load ptr, ptr %11, align 8
%82 = getelementptr inbounds %struct.hostent, ptr %81, i32 0, i32 0
store i32 %80, ptr %82, align 8
%83 = load i32, ptr %10, align 4
%84 = load i32, ptr @AF_INET6, align 4
%85 = icmp eq i32 %83, %84
%86 = zext i1 %85 to i64
%87 = select i1 %85, i32 16, i32 4
%88 = load ptr, ptr %11, align 8
%89 = getelementptr inbounds %struct.hostent, ptr %88, i32 0, i32 1
store i32 %87, ptr %89, align 4
%90 = load ptr, ptr %17, align 8
%91 = getelementptr inbounds %struct.addrinfo, ptr %90, i32 0, i32 1
%92 = load ptr, ptr %91, align 8
%93 = icmp ne ptr %92, null
br i1 %93, label %94, label %98
94: ; preds = %79
%95 = load ptr, ptr %17, align 8
%96 = getelementptr inbounds %struct.addrinfo, ptr %95, i32 0, i32 1
%97 = load ptr, ptr %96, align 8
br label %100
98: ; preds = %79
%99 = load ptr, ptr %9, align 8
br label %100
100: ; preds = %98, %94
%101 = phi ptr [ %97, %94 ], [ %99, %98 ]
store ptr %101, ptr %21, align 8
store i64 32, ptr %20, align 8
store i32 0, ptr %19, align 4
%102 = load ptr, ptr %17, align 8
store ptr %102, ptr %18, align 8
%103 = load ptr, ptr %18, align 8
%104 = icmp ne ptr %103, null
br i1 %104, label %.lr.ph, label %121
.lr.ph: ; preds = %100
br label %105
105: ; preds = %.lr.ph, %113
%106 = load ptr, ptr %11, align 8
%107 = getelementptr inbounds %struct.hostent, ptr %106, i32 0, i32 1
%108 = load i32, ptr %107, align 4
%109 = sext i32 %108 to i64
%110 = add i64 8, %109
%111 = load i64, ptr %20, align 8
%112 = add i64 %111, %110
store i64 %112, ptr %20, align 8
br label %113
113: ; preds = %105
%114 = load i32, ptr %19, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %19, align 4
%116 = load ptr, ptr %18, align 8
%117 = getelementptr inbounds %struct.addrinfo, ptr %116, i32 0, i32 3
%118 = load ptr, ptr %117, align 8
store ptr %118, ptr %18, align 8
%119 = load ptr, ptr %18, align 8
%120 = icmp ne ptr %119, null
br i1 %120, label %105, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %113
br label %121
121: ; preds = %._crit_edge, %100
%122 = load ptr, ptr %9, align 8
%123 = call i64 @strlen(ptr noundef %122)
%124 = add nsw i64 %123, 1
%125 = load i64, ptr %20, align 8
%126 = add i64 %125, %124
store i64 %126, ptr %20, align 8
%127 = load ptr, ptr %21, align 8
%128 = call i64 @strlen(ptr noundef %127)
%129 = add nsw i64 %128, 1
%130 = load i64, ptr %20, align 8
%131 = add i64 %130, %129
store i64 %131, ptr %20, align 8
%132 = load i64, ptr %20, align 8
%133 = load i64, ptr %13, align 8
%134 = icmp ugt i64 %132, %133
br i1 %134, label %135, label %139
135: ; preds = %121
%136 = load ptr, ptr %17, align 8
%137 = call i32 @freeaddrinfo(ptr noundef %136)
%138 = load i32, ptr @ERANGE, align 4
store i32 %138, ptr %8, align 4
br label %263
139: ; preds = %121
%140 = load ptr, ptr %12, align 8
%141 = load ptr, ptr %11, align 8
%142 = getelementptr inbounds %struct.hostent, ptr %141, i32 0, i32 2
store ptr %140, ptr %142, align 8
%143 = load ptr, ptr %12, align 8
%144 = getelementptr inbounds i8, ptr %143, i64 24
store ptr %144, ptr %12, align 8
%145 = load ptr, ptr %12, align 8
%146 = load ptr, ptr %11, align 8
%147 = getelementptr inbounds %struct.hostent, ptr %146, i32 0, i32 4
store ptr %145, ptr %147, align 8
%148 = load i32, ptr %19, align 4
%149 = add nsw i32 %148, 1
%150 = sext i32 %149 to i64
%151 = mul i64 %150, 8
%152 = load ptr, ptr %12, align 8
%153 = getelementptr inbounds i8, ptr %152, i64 %151
store ptr %153, ptr %12, align 8
%154 = load ptr, ptr %12, align 8
%155 = load ptr, ptr %11, align 8
%156 = getelementptr inbounds %struct.hostent, ptr %155, i32 0, i32 2
%157 = load ptr, ptr %156, align 8
%158 = getelementptr inbounds ptr, ptr %157, i64 0
store ptr %154, ptr %158, align 8
%159 = load ptr, ptr %11, align 8
%160 = getelementptr inbounds %struct.hostent, ptr %159, i32 0, i32 3
store ptr %154, ptr %160, align 8
%161 = load ptr, ptr %11, align 8
%162 = getelementptr inbounds %struct.hostent, ptr %161, i32 0, i32 3
%163 = load ptr, ptr %162, align 8
%164 = load ptr, ptr %21, align 8
%165 = call i32 @strcpy(ptr noundef %163, ptr noundef %164)
%166 = load ptr, ptr %11, align 8
%167 = getelementptr inbounds %struct.hostent, ptr %166, i32 0, i32 3
%168 = load ptr, ptr %167, align 8
%169 = call i64 @strlen(ptr noundef %168)
%170 = add nsw i64 %169, 1
%171 = load ptr, ptr %12, align 8
%172 = getelementptr inbounds i8, ptr %171, i64 %170
store ptr %172, ptr %12, align 8
%173 = load ptr, ptr %11, align 8
%174 = getelementptr inbounds %struct.hostent, ptr %173, i32 0, i32 3
%175 = load ptr, ptr %174, align 8
%176 = load ptr, ptr %9, align 8
%177 = call i64 @strcmp(ptr noundef %175, ptr noundef %176)
%178 = icmp ne i64 %177, 0
br i1 %178, label %179, label %201
179: ; preds = %139
%180 = load ptr, ptr %12, align 8
%181 = load ptr, ptr %11, align 8
%182 = getelementptr inbounds %struct.hostent, ptr %181, i32 0, i32 2
%183 = load ptr, ptr %182, align 8
%184 = getelementptr inbounds ptr, ptr %183, i64 1
store ptr %180, ptr %184, align 8
%185 = load ptr, ptr %11, align 8
%186 = getelementptr inbounds %struct.hostent, ptr %185, i32 0, i32 2
%187 = load ptr, ptr %186, align 8
%188 = getelementptr inbounds ptr, ptr %187, i64 1
%189 = load ptr, ptr %188, align 8
%190 = load ptr, ptr %9, align 8
%191 = call i32 @strcpy(ptr noundef %189, ptr noundef %190)
%192 = load ptr, ptr %11, align 8
%193 = getelementptr inbounds %struct.hostent, ptr %192, i32 0, i32 2
%194 = load ptr, ptr %193, align 8
%195 = getelementptr inbounds ptr, ptr %194, i64 1
%196 = load ptr, ptr %195, align 8
%197 = call i64 @strlen(ptr noundef %196)
%198 = add nsw i64 %197, 1
%199 = load ptr, ptr %12, align 8
%200 = getelementptr inbounds i8, ptr %199, i64 %198
store ptr %200, ptr %12, align 8
br label %206
201: ; preds = %139
%202 = load ptr, ptr %11, align 8
%203 = getelementptr inbounds %struct.hostent, ptr %202, i32 0, i32 2
%204 = load ptr, ptr %203, align 8
%205 = getelementptr inbounds ptr, ptr %204, i64 1
store ptr null, ptr %205, align 8
br label %206
206: ; preds = %201, %179
%207 = load ptr, ptr %11, align 8
%208 = getelementptr inbounds %struct.hostent, ptr %207, i32 0, i32 2
%209 = load ptr, ptr %208, align 8
%210 = getelementptr inbounds ptr, ptr %209, i64 2
store ptr null, ptr %210, align 8
store i32 0, ptr %19, align 4
%211 = load ptr, ptr %17, align 8
store ptr %211, ptr %18, align 8
%212 = load ptr, ptr %18, align 8
%213 = icmp ne ptr %212, null
br i1 %213, label %.lr.ph2, label %252
.lr.ph2: ; preds = %206
br label %214
214: ; preds = %.lr.ph2, %244
%215 = load ptr, ptr %12, align 8
%216 = load ptr, ptr %11, align 8
%217 = getelementptr inbounds %struct.hostent, ptr %216, i32 0, i32 4
%218 = load ptr, ptr %217, align 8
%219 = load i32, ptr %19, align 4
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds ptr, ptr %218, i64 %220
store ptr %215, ptr %221, align 8
%222 = load ptr, ptr %11, align 8
%223 = getelementptr inbounds %struct.hostent, ptr %222, i32 0, i32 1
%224 = load i32, ptr %223, align 4
%225 = load ptr, ptr %12, align 8
%226 = sext i32 %224 to i64
%227 = getelementptr inbounds i8, ptr %225, i64 %226
store ptr %227, ptr %12, align 8
%228 = load ptr, ptr %11, align 8
%229 = getelementptr inbounds %struct.hostent, ptr %228, i32 0, i32 4
%230 = load ptr, ptr %229, align 8
%231 = load i32, ptr %19, align 4
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds ptr, ptr %230, i64 %232
%234 = load ptr, ptr %233, align 8
%235 = load ptr, ptr %18, align 8
%236 = getelementptr inbounds %struct.addrinfo, ptr %235, i32 0, i32 2
%237 = load i64, ptr %236, align 8
%238 = inttoptr i64 %237 to ptr
%239 = getelementptr inbounds %struct.sockaddr_in, ptr %238, i32 0, i32 0
%240 = load ptr, ptr %11, align 8
%241 = getelementptr inbounds %struct.hostent, ptr %240, i32 0, i32 1
%242 = load i32, ptr %241, align 4
%243 = call i32 @memcpy(ptr noundef %234, ptr noundef %239, i32 noundef %242)
br label %244
244: ; preds = %214
%245 = load i32, ptr %19, align 4
%246 = add nsw i32 %245, 1
store i32 %246, ptr %19, align 4
%247 = load ptr, ptr %18, align 8
%248 = getelementptr inbounds %struct.addrinfo, ptr %247, i32 0, i32 3
%249 = load ptr, ptr %248, align 8
store ptr %249, ptr %18, align 8
%250 = load ptr, ptr %18, align 8
%251 = icmp ne ptr %250, null
br i1 %251, label %214, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %244
br label %252
252: ; preds = %._crit_edge3, %206
%253 = load ptr, ptr %11, align 8
%254 = getelementptr inbounds %struct.hostent, ptr %253, i32 0, i32 4
%255 = load ptr, ptr %254, align 8
%256 = load i32, ptr %19, align 4
%257 = sext i32 %256 to i64
%258 = getelementptr inbounds ptr, ptr %255, i64 %257
store ptr null, ptr %258, align 8
%259 = load ptr, ptr %11, align 8
%260 = load ptr, ptr %14, align 8
store ptr %259, ptr %260, align 8
%261 = load ptr, ptr %17, align 8
%262 = call i32 @freeaddrinfo(ptr noundef %261)
store i32 0, ptr %8, align 4
br label %263
263: ; preds = %252, %135, %74, %69, %65, %49
%264 = load i32, ptr %8, align 4
ret i32 %264
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @getaddrinfo(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i64 @strlen(ptr noundef) #2
declare i32 @freeaddrinfo(ptr noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpkbux0t7n.c'
source_filename = "/tmp/tmpkbux0t7n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@UCHAR_MAX = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strlcpy(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
store ptr %10, ptr %7, align 8
%11 = load i64, ptr %6, align 8
%12 = add i64 %11, -1
store i64 %12, ptr %6, align 8
%13 = icmp ne i64 %11, 0
br i1 %13, label %15, label %14
14: ; preds = %3
br label %120
15: ; preds = %3
%16 = load ptr, ptr %5, align 8
%17 = ptrtoint ptr %16 to i64
%18 = and i64 %17, 7
%19 = load ptr, ptr %4, align 8
%20 = ptrtoint ptr %19 to i64
%21 = and i64 %20, 7
%22 = icmp ne i64 %18, %21
br i1 %22, label %23, label %98
23: ; preds = %15
br label %24
24: ; preds = %41, %23
%25 = load ptr, ptr %5, align 8
%26 = ptrtoint ptr %25 to i64
%27 = and i64 %26, 7
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %38
29: ; preds = %24
%30 = load i64, ptr %6, align 8
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %38
32: ; preds = %29
%33 = load ptr, ptr %5, align 8
%34 = load i8, ptr %33, align 1
%35 = load ptr, ptr %4, align 8
store i8 %34, ptr %35, align 1
%36 = sext i8 %34 to i32
%37 = icmp ne i32 %36, 0
br label %38
38: ; preds = %32, %29, %24
%39 = phi i1 [ false, %29 ], [ false, %24 ], [ %37, %32 ]
br i1 %39, label %40, label %48
40: ; preds = %38
br label %41
41: ; preds = %40
%42 = load i64, ptr %6, align 8
%43 = add i64 %42, -1
store i64 %43, ptr %6, align 8
%44 = load ptr, ptr %5, align 8
%45 = getelementptr inbounds i8, ptr %44, i32 1
store ptr %45, ptr %5, align 8
%46 = load ptr, ptr %4, align 8
%47 = getelementptr inbounds i8, ptr %46, i32 1
store ptr %47, ptr %4, align 8
br label %24, !llvm.loop !6
48: ; preds = %38
%49 = load i64, ptr %6, align 8
%50 = icmp ne i64 %49, 0
br i1 %50, label %51, label %97
51: ; preds = %48
%52 = load ptr, ptr %5, align 8
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %97
56: ; preds = %51
%57 = load ptr, ptr %4, align 8
store ptr %57, ptr %8, align 8
%58 = load ptr, ptr %5, align 8
store ptr %58, ptr %9, align 8
br label %59
59: ; preds = %87, %56
%60 = load i64, ptr %6, align 8
%61 = icmp uge i64 %60, 8
br i1 %61, label %62, label %81
62: ; preds = %59
%63 = load ptr, ptr %9, align 8
%64 = load i64, ptr %63, align 8
%65 = load i64, ptr @UCHAR_MAX, align 8
%66 = udiv i64 -1, %65
%67 = sub i64 %64, %66
%68 = load ptr, ptr %9, align 8
%69 = load i64, ptr %68, align 8
%70 = xor i64 %69, -1
%71 = and i64 %67, %70
%72 = load i64, ptr @UCHAR_MAX, align 8
%73 = udiv i64 -1, %72
%74 = load i64, ptr @UCHAR_MAX, align 8
%75 = udiv i64 %74, 2
%76 = add i64 %75, 1
%77 = mul i64 %73, %76
%78 = and i64 %71, %77
%79 = icmp ne i64 %78, 0
%80 = xor i1 %79, true
br label %81
81: ; preds = %62, %59
%82 = phi i1 [ false, %59 ], [ %80, %62 ]
br i1 %82, label %83, label %94
83: ; preds = %81
%84 = load ptr, ptr %9, align 8
%85 = load i64, ptr %84, align 8
%86 = load ptr, ptr %8, align 8
store i64 %85, ptr %86, align 8
br label %87
87: ; preds = %83
%88 = load i64, ptr %6, align 8
%89 = sub i64 %88, 8
store i64 %89, ptr %6, align 8
%90 = load ptr, ptr %9, align 8
%91 = getelementptr inbounds i64, ptr %90, i32 1
store ptr %91, ptr %9, align 8
%92 = load ptr, ptr %8, align 8
%93 = getelementptr inbounds i64, ptr %92, i32 1
store ptr %93, ptr %8, align 8
br label %59, !llvm.loop !8
94: ; preds = %81
%95 = load ptr, ptr %8, align 8
store ptr %95, ptr %4, align 8
%96 = load ptr, ptr %9, align 8
store ptr %96, ptr %5, align 8
br label %97
97: ; preds = %94, %51, %48
br label %98
98: ; preds = %97, %15
br label %99
99: ; preds = %111, %98
%100 = load i64, ptr %6, align 8
%101 = icmp ne i64 %100, 0
br i1 %101, label %102, label %108
102: ; preds = %99
%103 = load ptr, ptr %5, align 8
%104 = load i8, ptr %103, align 1
%105 = load ptr, ptr %4, align 8
store i8 %104, ptr %105, align 1
%106 = sext i8 %104 to i32
%107 = icmp ne i32 %106, 0
br label %108
108: ; preds = %102, %99
%109 = phi i1 [ false, %99 ], [ %107, %102 ]
br i1 %109, label %110, label %118
110: ; preds = %108
br label %111
111: ; preds = %110
%112 = load i64, ptr %6, align 8
%113 = add i64 %112, -1
store i64 %113, ptr %6, align 8
%114 = load ptr, ptr %5, align 8
%115 = getelementptr inbounds i8, ptr %114, i32 1
store ptr %115, ptr %5, align 8
%116 = load ptr, ptr %4, align 8
%117 = getelementptr inbounds i8, ptr %116, i32 1
store ptr %117, ptr %4, align 8
br label %99, !llvm.loop !9
118: ; preds = %108
%119 = load ptr, ptr %4, align 8
store i8 0, ptr %119, align 1
br label %120
120: ; preds = %118, %14
%121 = load ptr, ptr %4, align 8
%122 = load ptr, ptr %7, align 8
%123 = ptrtoint ptr %121 to i64
%124 = ptrtoint ptr %122 to i64
%125 = sub i64 %123, %124
%126 = load ptr, ptr %5, align 8
%127 = call i64 @strlen(ptr noundef %126)
%128 = add i64 %125, %127
ret i64 %128
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkbux0t7n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@UCHAR_MAX = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strlcpy(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
store ptr %10, ptr %7, align 8
%11 = load i64, ptr %6, align 8
%12 = add i64 %11, -1
store i64 %12, ptr %6, align 8
%13 = icmp ne i64 %11, 0
br i1 %13, label %15, label %14
14: ; preds = %3
br label %120
15: ; preds = %3
%16 = load ptr, ptr %5, align 8
%17 = ptrtoint ptr %16 to i64
%18 = and i64 %17, 7
%19 = load ptr, ptr %4, align 8
%20 = ptrtoint ptr %19 to i64
%21 = and i64 %20, 7
%22 = icmp ne i64 %18, %21
br i1 %22, label %23, label %98
23: ; preds = %15
br label %24
24: ; preds = %41, %23
%25 = load ptr, ptr %5, align 8
%26 = ptrtoint ptr %25 to i64
%27 = and i64 %26, 7
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %38
29: ; preds = %24
%30 = load i64, ptr %6, align 8
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %38
32: ; preds = %29
%33 = load ptr, ptr %5, align 8
%34 = load i8, ptr %33, align 1
%35 = load ptr, ptr %4, align 8
store i8 %34, ptr %35, align 1
%36 = sext i8 %34 to i32
%37 = icmp ne i32 %36, 0
br label %38
38: ; preds = %32, %29, %24
%39 = phi i1 [ false, %29 ], [ false, %24 ], [ %37, %32 ]
br i1 %39, label %40, label %48
40: ; preds = %38
br label %41
41: ; preds = %40
%42 = load i64, ptr %6, align 8
%43 = add i64 %42, -1
store i64 %43, ptr %6, align 8
%44 = load ptr, ptr %5, align 8
%45 = getelementptr inbounds i8, ptr %44, i32 1
store ptr %45, ptr %5, align 8
%46 = load ptr, ptr %4, align 8
%47 = getelementptr inbounds i8, ptr %46, i32 1
store ptr %47, ptr %4, align 8
br label %24, !llvm.loop !6
48: ; preds = %38
%49 = load i64, ptr %6, align 8
%50 = icmp ne i64 %49, 0
br i1 %50, label %51, label %97
51: ; preds = %48
%52 = load ptr, ptr %5, align 8
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %97
56: ; preds = %51
%57 = load ptr, ptr %4, align 8
store ptr %57, ptr %8, align 8
%58 = load ptr, ptr %5, align 8
store ptr %58, ptr %9, align 8
br label %59
59: ; preds = %87, %56
%60 = load i64, ptr %6, align 8
%61 = icmp uge i64 %60, 8
br i1 %61, label %62, label %81
62: ; preds = %59
%63 = load ptr, ptr %9, align 8
%64 = load i64, ptr %63, align 8
%65 = load i64, ptr @UCHAR_MAX, align 8
%66 = udiv i64 -1, %65
%67 = sub i64 %64, %66
%68 = load ptr, ptr %9, align 8
%69 = load i64, ptr %68, align 8
%70 = xor i64 %69, -1
%71 = and i64 %67, %70
%72 = load i64, ptr @UCHAR_MAX, align 8
%73 = udiv i64 -1, %72
%74 = load i64, ptr @UCHAR_MAX, align 8
%75 = udiv i64 %74, 2
%76 = add i64 %75, 1
%77 = mul i64 %73, %76
%78 = and i64 %71, %77
%79 = icmp ne i64 %78, 0
%80 = xor i1 %79, true
br label %81
81: ; preds = %62, %59
%82 = phi i1 [ false, %59 ], [ %80, %62 ]
br i1 %82, label %83, label %94
83: ; preds = %81
%84 = load ptr, ptr %9, align 8
%85 = load i64, ptr %84, align 8
%86 = load ptr, ptr %8, align 8
store i64 %85, ptr %86, align 8
br label %87
87: ; preds = %83
%88 = load i64, ptr %6, align 8
%89 = sub i64 %88, 8
store i64 %89, ptr %6, align 8
%90 = load ptr, ptr %9, align 8
%91 = getelementptr inbounds i64, ptr %90, i32 1
store ptr %91, ptr %9, align 8
%92 = load ptr, ptr %8, align 8
%93 = getelementptr inbounds i64, ptr %92, i32 1
store ptr %93, ptr %8, align 8
br label %59, !llvm.loop !8
94: ; preds = %81
%95 = load ptr, ptr %8, align 8
store ptr %95, ptr %4, align 8
%96 = load ptr, ptr %9, align 8
store ptr %96, ptr %5, align 8
br label %97
97: ; preds = %94, %51, %48
br label %98
98: ; preds = %97, %15
br label %99
99: ; preds = %111, %98
%100 = load i64, ptr %6, align 8
%101 = icmp ne i64 %100, 0
br i1 %101, label %102, label %108
102: ; preds = %99
%103 = load ptr, ptr %5, align 8
%104 = load i8, ptr %103, align 1
%105 = load ptr, ptr %4, align 8
store i8 %104, ptr %105, align 1
%106 = sext i8 %104 to i32
%107 = icmp ne i32 %106, 0
br label %108
108: ; preds = %102, %99
%109 = phi i1 [ false, %99 ], [ %107, %102 ]
br i1 %109, label %110, label %118
110: ; preds = %108
br label %111
111: ; preds = %110
%112 = load i64, ptr %6, align 8
%113 = add i64 %112, -1
store i64 %113, ptr %6, align 8
%114 = load ptr, ptr %5, align 8
%115 = getelementptr inbounds i8, ptr %114, i32 1
store ptr %115, ptr %5, align 8
%116 = load ptr, ptr %4, align 8
%117 = getelementptr inbounds i8, ptr %116, i32 1
store ptr %117, ptr %4, align 8
br label %99, !llvm.loop !9
118: ; preds = %108
%119 = load ptr, ptr %4, align 8
store i8 0, ptr %119, align 1
br label %120
120: ; preds = %118, %14
%121 = load ptr, ptr %4, align 8
%122 = load ptr, ptr %7, align 8
%123 = ptrtoint ptr %121 to i64
%124 = ptrtoint ptr %122 to i64
%125 = sub i64 %123, %124
%126 = load ptr, ptr %5, align 8
%127 = call i64 @strlen(ptr noundef %126)
%128 = add i64 %125, %127
ret i64 %128
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpegfs7jif.c'
source_filename = "/tmp/tmpegfs7jif.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"\E2\96\90\00", align 1
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @display_bar(i32 noundef %0, double noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca double, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store double %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%12 = load double, ptr %6, align 8
%13 = load i32, ptr %8, align 4
%14 = sitofp i32 %13 to double
%15 = fdiv double %12, %14
%16 = fadd double %15, 1.000000e+00
%17 = call i32 @trunc(double noundef %16)
store i32 %17, ptr %10, align 4
%18 = load i32, ptr %10, align 4
%19 = load i32, ptr %7, align 4
%20 = icmp sgt i32 %18, %19
br i1 %20, label %21, label %23
21: ; preds = %4
%22 = load i32, ptr %7, align 4
store i32 %22, ptr %10, align 4
br label %23
23: ; preds = %21, %4
store i32 0, ptr %9, align 4
br label %24
24: ; preds = %41, %23
%25 = load i32, ptr %9, align 4
%26 = load i32, ptr %10, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %44
28: ; preds = %24
%29 = load i32, ptr %9, align 4
%30 = load i32, ptr %7, align 4
%31 = call i32 @get_color_by_level(i32 noundef %29, i32 noundef %30)
store i32 %31, ptr %11, align 4
%32 = load i32, ptr %11, align 4
%33 = call i32 @set_color(i32 noundef %32)
%34 = load i32, ptr %5, align 4
%35 = load i32, ptr %7, align 4
%36 = load i32, ptr %9, align 4
%37 = sub nsw i32 %35, %36
%38 = add nsw i32 %37, 2
%39 = call i32 @goto_xy(i32 noundef %34, i32 noundef %38)
%40 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
br label %41
41: ; preds = %28
%42 = load i32, ptr %9, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %9, align 4
br label %24, !llvm.loop !6
44: ; preds = %24
%45 = call i32 (...) @reset_color()
%46 = load i32, ptr @stdout, align 4
%47 = call i32 @fflush(i32 noundef %46)
ret void
}
declare i32 @trunc(double noundef) #1
declare i32 @get_color_by_level(i32 noundef, i32 noundef) #1
declare i32 @set_color(i32 noundef) #1
declare i32 @goto_xy(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @reset_color(...) #1
declare i32 @fflush(i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpegfs7jif.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"\E2\96\90\00", align 1
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @display_bar(i32 noundef %0, double noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca double, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store double %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%12 = load double, ptr %6, align 8
%13 = load i32, ptr %8, align 4
%14 = sitofp i32 %13 to double
%15 = fdiv double %12, %14
%16 = fadd double %15, 1.000000e+00
%17 = call i32 @trunc(double noundef %16)
store i32 %17, ptr %10, align 4
%18 = load i32, ptr %10, align 4
%19 = load i32, ptr %7, align 4
%20 = icmp sgt i32 %18, %19
br i1 %20, label %21, label %23
21: ; preds = %4
%22 = load i32, ptr %7, align 4
store i32 %22, ptr %10, align 4
br label %23
23: ; preds = %21, %4
store i32 0, ptr %9, align 4
%24 = load i32, ptr %9, align 4
%25 = load i32, ptr %10, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %.lr.ph, label %46
.lr.ph: ; preds = %23
br label %27
27: ; preds = %.lr.ph, %40
%28 = load i32, ptr %9, align 4
%29 = load i32, ptr %7, align 4
%30 = call i32 @get_color_by_level(i32 noundef %28, i32 noundef %29)
store i32 %30, ptr %11, align 4
%31 = load i32, ptr %11, align 4
%32 = call i32 @set_color(i32 noundef %31)
%33 = load i32, ptr %5, align 4
%34 = load i32, ptr %7, align 4
%35 = load i32, ptr %9, align 4
%36 = sub nsw i32 %34, %35
%37 = add nsw i32 %36, 2
%38 = call i32 @goto_xy(i32 noundef %33, i32 noundef %37)
%39 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
br label %40
40: ; preds = %27
%41 = load i32, ptr %9, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %9, align 4
%43 = load i32, ptr %9, align 4
%44 = load i32, ptr %10, align 4
%45 = icmp slt i32 %43, %44
br i1 %45, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %40
br label %46
46: ; preds = %._crit_edge, %23
%47 = call i32 (...) @reset_color()
%48 = load i32, ptr @stdout, align 4
%49 = call i32 @fflush(i32 noundef %48)
ret void
}
declare i32 @trunc(double noundef) #1
declare i32 @get_color_by_level(i32 noundef, i32 noundef) #1
declare i32 @set_color(i32 noundef) #1
declare i32 @goto_xy(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @reset_color(...) #1
declare i32 @fflush(i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpu04fr50h.c'
source_filename = "/tmp/tmpu04fr50h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Adding user: %s with pass: %s\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"echo %s > %s%s.txt\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"./users/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @addUser(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca [1024 x i8], align 16
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 1
%11 = call ptr @strchr(ptr noundef %10, i8 noundef signext 58)
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %15, label %14
14: ; preds = %3
br label %29
15: ; preds = %3
%16 = load ptr, ptr %7, align 8
store i8 0, ptr %16, align 1
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %6, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 1
%20 = load ptr, ptr %7, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 1
%22 = call i32 @logData(ptr noundef %17, ptr noundef @.str, ptr noundef %19, ptr noundef %21)
%23 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%24 = load ptr, ptr %7, align 8
%25 = getelementptr inbounds i8, ptr %24, i64 1
%26 = load ptr, ptr %6, align 8
%27 = getelementptr inbounds i8, ptr %26, i64 1
%28 = call i32 @snprintf(ptr noundef %23, i32 noundef 1023, ptr noundef @.str.1, ptr noundef %25, ptr noundef @.str.2, ptr noundef %27)
br label %29
29: ; preds = %15, %14
ret void
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @logData(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu04fr50h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Adding user: %s with pass: %s\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"echo %s > %s%s.txt\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"./users/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @addUser(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca [1024 x i8], align 16
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 1
%11 = call ptr @strchr(ptr noundef %10, i8 noundef signext 58)
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %15, label %14
14: ; preds = %3
br label %29
15: ; preds = %3
%16 = load ptr, ptr %7, align 8
store i8 0, ptr %16, align 1
%17 = load ptr, ptr %4, align 8
%18 = load ptr, ptr %6, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 1
%20 = load ptr, ptr %7, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 1
%22 = call i32 @logData(ptr noundef %17, ptr noundef @.str, ptr noundef %19, ptr noundef %21)
%23 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%24 = load ptr, ptr %7, align 8
%25 = getelementptr inbounds i8, ptr %24, i64 1
%26 = load ptr, ptr %6, align 8
%27 = getelementptr inbounds i8, ptr %26, i64 1
%28 = call i32 @snprintf(ptr noundef %23, i32 noundef 1023, ptr noundef @.str.1, ptr noundef %25, ptr noundef @.str.2, ptr noundef %27)
br label %29
29: ; preds = %15, %14
ret void
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @logData(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt88av9um.c'
source_filename = "/tmp/tmpt88av9um.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @libc_strcmpi(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca i8, align 1
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%11 = load ptr, ptr %4, align 8
%12 = call i32 @libc_strlen(ptr noundef %11)
store i32 %12, ptr %7, align 4
%13 = load ptr, ptr %5, align 8
%14 = call i32 @libc_strlen(ptr noundef %13)
store i32 %14, ptr %8, align 4
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %8, align 4
%17 = icmp ne i32 %15, %16
br i1 %17, label %18, label %22
18: ; preds = %2
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %8, align 4
%21 = sub nsw i32 %19, %20
store i32 %21, ptr %3, align 4
br label %58
22: ; preds = %2
br label %23
23: ; preds = %55, %22
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %58
31: ; preds = %23
%32 = load ptr, ptr %4, align 8
%33 = load i32, ptr %6, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load i8, ptr %35, align 1
%37 = call signext i8 @libc_toupper(i8 noundef signext %36)
store i8 %37, ptr %9, align 1
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %6, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %38, i64 %40
%42 = load i8, ptr %41, align 1
%43 = call signext i8 @libc_toupper(i8 noundef signext %42)
store i8 %43, ptr %10, align 1
%44 = load i8, ptr %9, align 1
%45 = sext i8 %44 to i32
%46 = load i8, ptr %10, align 1
%47 = sext i8 %46 to i32
%48 = icmp ne i32 %45, %47
br i1 %48, label %49, label %55
49: ; preds = %31
%50 = load i8, ptr %9, align 1
%51 = sext i8 %50 to i32
%52 = load i8, ptr %10, align 1
%53 = sext i8 %52 to i32
%54 = sub i32 %51, %53
store i32 %54, ptr %3, align 4
br label %58
55: ; preds = %31
%56 = load i32, ptr %6, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %6, align 4
br label %23, !llvm.loop !6
58: ; preds = %18, %49, %23
%59 = load i32, ptr %3, align 4
ret i32 %59
}
declare i32 @libc_strlen(ptr noundef) #1
declare signext i8 @libc_toupper(i8 noundef signext) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt88av9um.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @libc_strcmpi(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca i8, align 1
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%11 = load ptr, ptr %4, align 8
%12 = call i32 @libc_strlen(ptr noundef %11)
store i32 %12, ptr %7, align 4
%13 = load ptr, ptr %5, align 8
%14 = call i32 @libc_strlen(ptr noundef %13)
store i32 %14, ptr %8, align 4
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %8, align 4
%17 = icmp ne i32 %15, %16
br i1 %17, label %18, label %22
18: ; preds = %2
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %8, align 4
%21 = sub nsw i32 %19, %20
store i32 %21, ptr %3, align 4
br label %64
22: ; preds = %2
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %6, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %28, 0
br i1 %29, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %22
br label %30
30: ; preds = %.lr.ph, %54
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %6, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
%35 = load i8, ptr %34, align 1
%36 = call signext i8 @libc_toupper(i8 noundef signext %35)
store i8 %36, ptr %9, align 1
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %6, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
%41 = load i8, ptr %40, align 1
%42 = call signext i8 @libc_toupper(i8 noundef signext %41)
store i8 %42, ptr %10, align 1
%43 = load i8, ptr %9, align 1
%44 = sext i8 %43 to i32
%45 = load i8, ptr %10, align 1
%46 = sext i8 %45 to i32
%47 = icmp ne i32 %44, %46
br i1 %47, label %48, label %54
48: ; preds = %30
%49 = load i8, ptr %9, align 1
%50 = sext i8 %49 to i32
%51 = load i8, ptr %10, align 1
%52 = sext i8 %51 to i32
%53 = sub i32 %50, %52
store i32 %53, ptr %3, align 4
br label %64
54: ; preds = %30
%55 = load i32, ptr %6, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %6, align 4
%57 = load ptr, ptr %4, align 8
%58 = load i32, ptr %6, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, ptr %57, i64 %59
%61 = load i8, ptr %60, align 1
%62 = sext i8 %61 to i32
%63 = icmp ne i32 %62, 0
br i1 %63, label %30, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %54
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %22
br label %64
64: ; preds = %.loopexit, %48, %18
%65 = load i32, ptr %3, align 4
ret i32 %65
}
declare i32 @libc_strlen(ptr noundef) #1
declare signext i8 @libc_toupper(i8 noundef signext) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp1gi3b6rn.c'
source_filename = "/tmp/tmp1gi3b6rn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca ptr, align 8
store ptr inttoptr (i64 753664 to ptr), ptr %1, align 8
%2 = load ptr, ptr %1, align 8
store i8 88, ptr %2, align 1
ret void
}
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1gi3b6rn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca ptr, align 8
store ptr inttoptr (i64 753664 to ptr), ptr %1, align 8
%2 = load ptr, ptr %1, align 8
store i8 88, ptr %2, align 1
ret void
}
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_6_hfm6o.c'
source_filename = "/tmp/tmp_6_hfm6o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"You typed: %s.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x i8], align 16
store i32 0, ptr %1, align 4
%3 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%5 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @printf(ptr noundef @.str.1, ptr noundef %5)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_6_hfm6o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"You typed: %s.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x i8], align 16
store i32 0, ptr %1, align 4
%3 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%5 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @printf(ptr noundef @.str.1, ptr noundef %5)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpaekr84r2.c'
source_filename = "/tmp/tmpaekr84r2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%02hhX\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cli_print_byte(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %3)
ret void
}
declare i32 @printf(ptr noundef, i8 noundef zeroext) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaekr84r2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%02hhX\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cli_print_byte(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %3)
ret void
}
declare i32 @printf(ptr noundef, i8 noundef zeroext) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5hy6vqit.c'
source_filename = "/tmp/tmp5hy6vqit.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @env_get_def(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call ptr @env_get(ptr noundef %6)
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %16, label %10
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 0
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %10, %2
%17 = load ptr, ptr %4, align 8
store ptr %17, ptr %5, align 8
br label %18
18: ; preds = %16, %10
%19 = load ptr, ptr %5, align 8
ret ptr %19
}
declare ptr @env_get(ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5hy6vqit.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @env_get_def(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call ptr @env_get(ptr noundef %6)
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %16, label %10
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 0
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %10, %2
%17 = load ptr, ptr %4, align 8
store ptr %17, ptr %5, align 8
br label %18
18: ; preds = %16, %10
%19 = load ptr, ptr %5, align 8
ret ptr %19
}
declare ptr @env_get(ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0j9fyhs_.c'
source_filename = "/tmp/tmp0j9fyhs_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%union.anon = type { i16 }
@.str = private unnamed_addr constant [13 x i8] c"short is %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"\E5\AD\97\E8\8A\82\E5\BA\8F\E4\B8\BA\E5\A4\A7\E7\AB\AF big\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"\E5\AD\97\E8\8A\82\E5\BA\8F\E4\B8\BA\E5\B0\8F\E7\AB\AF small\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"\E5\AD\97\E8\8A\82\E5\BA\8F\E6\9C\AA\E7\9F\A5 un know\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"x0=0x%x,x1=0x%x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca %union.anon, align 2
%7 = alloca i16, align 2
%8 = alloca i8, align 1
%9 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = call i32 (ptr, i8, ...) @printf(ptr noundef @.str, i8 noundef signext 2)
store i16 258, ptr %6, align 2
%11 = getelementptr inbounds [2 x i8], ptr %6, i64 0, i64 0
%12 = load i8, ptr %11, align 2
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 1
br i1 %14, label %15, label %22
15: ; preds = %2
%16 = getelementptr inbounds [2 x i8], ptr %6, i64 0, i64 1
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 2
br i1 %19, label %20, label %22
20: ; preds = %15
%21 = call i32 @puts(ptr noundef @.str.1)
br label %37
22: ; preds = %15, %2
%23 = getelementptr inbounds [2 x i8], ptr %6, i64 0, i64 0
%24 = load i8, ptr %23, align 2
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 2
br i1 %26, label %27, label %34
27: ; preds = %22
%28 = getelementptr inbounds [2 x i8], ptr %6, i64 0, i64 1
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 1
br i1 %31, label %32, label %34
32: ; preds = %27
%33 = call i32 @puts(ptr noundef @.str.2)
br label %36
34: ; preds = %27, %22
%35 = call i32 @puts(ptr noundef @.str.3)
br label %36
36: ; preds = %34, %32
br label %37
37: ; preds = %36, %20
store i16 4386, ptr %7, align 2
%38 = getelementptr inbounds i8, ptr %7, i64 0
%39 = load i8, ptr %38, align 2
store i8 %39, ptr %8, align 1
%40 = getelementptr inbounds i8, ptr %7, i64 1
%41 = load i8, ptr %40, align 1
store i8 %41, ptr %9, align 1
%42 = load i8, ptr %8, align 1
%43 = load i8, ptr %9, align 1
%44 = sext i8 %43 to i32
%45 = call i32 (ptr, i8, ...) @printf(ptr noundef @.str.4, i8 noundef signext %42, i32 noundef %44)
ret i32 0
}
declare i32 @printf(ptr noundef, i8 noundef signext, ...) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0j9fyhs_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%union.anon = type { i16 }
@.str = private unnamed_addr constant [13 x i8] c"short is %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"\E5\AD\97\E8\8A\82\E5\BA\8F\E4\B8\BA\E5\A4\A7\E7\AB\AF big\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"\E5\AD\97\E8\8A\82\E5\BA\8F\E4\B8\BA\E5\B0\8F\E7\AB\AF small\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"\E5\AD\97\E8\8A\82\E5\BA\8F\E6\9C\AA\E7\9F\A5 un know\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"x0=0x%x,x1=0x%x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca %union.anon, align 2
%7 = alloca i16, align 2
%8 = alloca i8, align 1
%9 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = call i32 (ptr, i8, ...) @printf(ptr noundef @.str, i8 noundef signext 2)
store i16 258, ptr %6, align 2
%11 = getelementptr inbounds [2 x i8], ptr %6, i64 0, i64 0
%12 = load i8, ptr %11, align 2
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 1
br i1 %14, label %15, label %22
15: ; preds = %2
%16 = getelementptr inbounds [2 x i8], ptr %6, i64 0, i64 1
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 2
br i1 %19, label %20, label %22
20: ; preds = %15
%21 = call i32 @puts(ptr noundef @.str.1)
br label %37
22: ; preds = %15, %2
%23 = getelementptr inbounds [2 x i8], ptr %6, i64 0, i64 0
%24 = load i8, ptr %23, align 2
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 2
br i1 %26, label %27, label %34
27: ; preds = %22
%28 = getelementptr inbounds [2 x i8], ptr %6, i64 0, i64 1
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 1
br i1 %31, label %32, label %34
32: ; preds = %27
%33 = call i32 @puts(ptr noundef @.str.2)
br label %36
34: ; preds = %27, %22
%35 = call i32 @puts(ptr noundef @.str.3)
br label %36
36: ; preds = %34, %32
br label %37
37: ; preds = %36, %20
store i16 4386, ptr %7, align 2
%38 = getelementptr inbounds i8, ptr %7, i64 0
%39 = load i8, ptr %38, align 2
store i8 %39, ptr %8, align 1
%40 = getelementptr inbounds i8, ptr %7, i64 1
%41 = load i8, ptr %40, align 1
store i8 %41, ptr %9, align 1
%42 = load i8, ptr %8, align 1
%43 = load i8, ptr %9, align 1
%44 = sext i8 %43 to i32
%45 = call i32 (ptr, i8, ...) @printf(ptr noundef @.str.4, i8 noundef signext %42, i32 noundef %44)
ret i32 0
}
declare i32 @printf(ptr noundef, i8 noundef signext, ...) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprarnyq2x.c'
source_filename = "/tmp/tmprarnyq2x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprarnyq2x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpiwhqu0kw.c'
source_filename = "/tmp/tmpiwhqu0kw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @free_matrix(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds ptr, ptr %3, i64 0
%5 = load ptr, ptr %4, align 8
%6 = call i32 @free(ptr noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = call i32 @free(ptr noundef %7)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiwhqu0kw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @free_matrix(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds ptr, ptr %3, i64 0
%5 = load ptr, ptr %4, align 8
%6 = call i32 @free(ptr noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = call i32 @free(ptr noundef %7)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnlu4v3cd.c'
source_filename = "/tmp/tmpnlu4v3cd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"mapreduce.cluster.local.dir\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_tt_root(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @check_variable_against_config(ptr noundef @.str, ptr noundef %3)
ret i32 %4
}
declare i32 @check_variable_against_config(ptr noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnlu4v3cd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"mapreduce.cluster.local.dir\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_tt_root(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @check_variable_against_config(ptr noundef @.str, ptr noundef %3)
ret i32 %4
}
declare i32 @check_variable_against_config(ptr noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbt6sswkb.c'
source_filename = "/tmp/tmpbt6sswkb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbt6sswkb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7rrf59u6.c'
source_filename = "/tmp/tmp7rrf59u6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7rrf59u6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5_q8_jpm.c'
source_filename = "/tmp/tmp5_q8_jpm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @new_sieve(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 1, ptr %11, align 4
%12 = load i32, ptr %3, align 4
%13 = srem i32 %12, 2
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = load i32, ptr %3, align 4
%17 = sdiv i32 %16, 2
store i32 %17, ptr %5, align 4
br label %22
18: ; preds = %2
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, 1
%21 = sdiv i32 %20, 2
store i32 %21, ptr %5, align 4
br label %22
22: ; preds = %18, %15
%23 = load i32, ptr %5, align 4
%24 = sext i32 %23 to i64
%25 = mul i64 %24, 4
%26 = trunc i64 %25 to i32
%27 = call i64 @malloc(i32 noundef %26)
%28 = inttoptr i64 %27 to ptr
store ptr %28, ptr %6, align 8
store i32 1, ptr %9, align 4
br label %29
29: ; preds = %66, %22
%30 = load i32, ptr %9, align 4
%31 = load i32, ptr %5, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %69
33: ; preds = %29
%34 = load i32, ptr %9, align 4
%35 = mul nsw i32 2, %34
%36 = add nsw i32 %35, 1
store i32 %36, ptr %10, align 4
%37 = load i32, ptr %9, align 4
%38 = load i32, ptr %10, align 4
%39 = add nsw i32 %37, %38
store i32 %39, ptr %8, align 4
br label %40
40: ; preds = %49, %33
%41 = load i32, ptr %8, align 4
%42 = load i32, ptr %5, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %44, label %53
44: ; preds = %40
%45 = load ptr, ptr %6, align 8
%46 = load i32, ptr %8, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i32, ptr %45, i64 %47
store i32 1, ptr %48, align 4
br label %49
49: ; preds = %44
%50 = load i32, ptr %10, align 4
%51 = load i32, ptr %8, align 4
%52 = add nsw i32 %51, %50
store i32 %52, ptr %8, align 4
br label %40, !llvm.loop !6
53: ; preds = %40
%54 = load i32, ptr %9, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %9, align 4
br label %56
56: ; preds = %63, %53
%57 = load ptr, ptr %6, align 8
%58 = load i32, ptr %9, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i32, ptr %57, i64 %59
%61 = load i32, ptr %60, align 4
%62 = icmp ne i32 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %56
%64 = load i32, ptr %9, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %9, align 4
br label %56, !llvm.loop !8
66: ; preds = %56
%67 = load i32, ptr %11, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %11, align 4
br label %29, !llvm.loop !9
69: ; preds = %29
%70 = load i32, ptr %11, align 4
%71 = load ptr, ptr %4, align 8
store i32 %70, ptr %71, align 4
%72 = load i32, ptr %11, align 4
%73 = sext i32 %72 to i64
%74 = mul i64 %73, 4
%75 = trunc i64 %74 to i32
%76 = call i64 @malloc(i32 noundef %75)
%77 = inttoptr i64 %76 to ptr
store ptr %77, ptr %7, align 8
store i32 1, ptr %8, align 4
%78 = load ptr, ptr %7, align 8
%79 = getelementptr inbounds i32, ptr %78, i64 0
store i32 2, ptr %79, align 4
store i32 1, ptr %9, align 4
br label %80
80: ; preds = %102, %69
%81 = load i32, ptr %9, align 4
%82 = load i32, ptr %5, align 4
%83 = icmp slt i32 %81, %82
br i1 %83, label %84, label %105
84: ; preds = %80
%85 = load ptr, ptr %6, align 8
%86 = load i32, ptr %9, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i32, ptr %85, i64 %87
%89 = load i32, ptr %88, align 4
%90 = icmp eq i32 %89, 0
br i1 %90, label %91, label %101
91: ; preds = %84
%92 = load i32, ptr %9, align 4
%93 = mul nsw i32 2, %92
%94 = add nsw i32 %93, 1
%95 = load ptr, ptr %7, align 8
%96 = load i32, ptr %8, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i32, ptr %95, i64 %97
store i32 %94, ptr %98, align 4
%99 = load i32, ptr %8, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %8, align 4
br label %101
101: ; preds = %91, %84
br label %102
102: ; preds = %101
%103 = load i32, ptr %9, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %9, align 4
br label %80, !llvm.loop !10
105: ; preds = %80
%106 = load ptr, ptr %7, align 8
ret ptr %106
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5_q8_jpm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @new_sieve(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 1, ptr %11, align 4
%12 = load i32, ptr %3, align 4
%13 = srem i32 %12, 2
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = load i32, ptr %3, align 4
%17 = sdiv i32 %16, 2
store i32 %17, ptr %5, align 4
br label %22
18: ; preds = %2
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, 1
%21 = sdiv i32 %20, 2
store i32 %21, ptr %5, align 4
br label %22
22: ; preds = %18, %15
%23 = load i32, ptr %5, align 4
%24 = sext i32 %23 to i64
%25 = mul i64 %24, 4
%26 = trunc i64 %25 to i32
%27 = call i64 @malloc(i32 noundef %26)
%28 = inttoptr i64 %27 to ptr
store ptr %28, ptr %6, align 8
store i32 1, ptr %9, align 4
%29 = load i32, ptr %9, align 4
%30 = load i32, ptr %5, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %.lr.ph5, label %78
.lr.ph5: ; preds = %22
br label %32
32: ; preds = %.lr.ph5, %72
%33 = load i32, ptr %9, align 4
%34 = mul nsw i32 2, %33
%35 = add nsw i32 %34, 1
store i32 %35, ptr %10, align 4
%36 = load i32, ptr %9, align 4
%37 = load i32, ptr %10, align 4
%38 = add nsw i32 %36, %37
store i32 %38, ptr %8, align 4
%39 = load i32, ptr %8, align 4
%40 = load i32, ptr %5, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %.lr.ph, label %54
.lr.ph: ; preds = %32
br label %42
42: ; preds = %.lr.ph, %47
%43 = load ptr, ptr %6, align 8
%44 = load i32, ptr %8, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %43, i64 %45
store i32 1, ptr %46, align 4
br label %47
47: ; preds = %42
%48 = load i32, ptr %10, align 4
%49 = load i32, ptr %8, align 4
%50 = add nsw i32 %49, %48
store i32 %50, ptr %8, align 4
%51 = load i32, ptr %8, align 4
%52 = load i32, ptr %5, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %42, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %47
br label %54
54: ; preds = %._crit_edge, %32
%55 = load i32, ptr %9, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %9, align 4
%57 = load ptr, ptr %6, align 8
%58 = load i32, ptr %9, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i32, ptr %57, i64 %59
%61 = load i32, ptr %60, align 4
%62 = icmp ne i32 %61, 0
br i1 %62, label %.lr.ph2, label %72
.lr.ph2: ; preds = %54
br label %63
63: ; preds = %.lr.ph2, %63
%64 = load i32, ptr %9, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %9, align 4
%66 = load ptr, ptr %6, align 8
%67 = load i32, ptr %9, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, ptr %66, i64 %68
%70 = load i32, ptr %69, align 4
%71 = icmp ne i32 %70, 0
br i1 %71, label %63, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %63
br label %72
72: ; preds = %._crit_edge3, %54
%73 = load i32, ptr %11, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %11, align 4
%75 = load i32, ptr %9, align 4
%76 = load i32, ptr %5, align 4
%77 = icmp slt i32 %75, %76
br i1 %77, label %32, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %72
br label %78
78: ; preds = %._crit_edge6, %22
%79 = load i32, ptr %11, align 4
%80 = load ptr, ptr %4, align 8
store i32 %79, ptr %80, align 4
%81 = load i32, ptr %11, align 4
%82 = sext i32 %81 to i64
%83 = mul i64 %82, 4
%84 = trunc i64 %83 to i32
%85 = call i64 @malloc(i32 noundef %84)
%86 = inttoptr i64 %85 to ptr
store ptr %86, ptr %7, align 8
store i32 1, ptr %8, align 4
%87 = load ptr, ptr %7, align 8
%88 = getelementptr inbounds i32, ptr %87, i64 0
store i32 2, ptr %88, align 4
store i32 1, ptr %9, align 4
%89 = load i32, ptr %9, align 4
%90 = load i32, ptr %5, align 4
%91 = icmp slt i32 %89, %90
br i1 %91, label %.lr.ph8, label %116
.lr.ph8: ; preds = %78
br label %92
92: ; preds = %.lr.ph8, %110
%93 = load ptr, ptr %6, align 8
%94 = load i32, ptr %9, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i32, ptr %93, i64 %95
%97 = load i32, ptr %96, align 4
%98 = icmp eq i32 %97, 0
br i1 %98, label %99, label %109
99: ; preds = %92
%100 = load i32, ptr %9, align 4
%101 = mul nsw i32 2, %100
%102 = add nsw i32 %101, 1
%103 = load ptr, ptr %7, align 8
%104 = load i32, ptr %8, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds i32, ptr %103, i64 %105
store i32 %102, ptr %106, align 4
%107 = load i32, ptr %8, align 4
%108 = add nsw i32 %107, 1
store i32 %108, ptr %8, align 4
br label %109
109: ; preds = %99, %92
br label %110
110: ; preds = %109
%111 = load i32, ptr %9, align 4
%112 = add nsw i32 %111, 1
store i32 %112, ptr %9, align 4
%113 = load i32, ptr %9, align 4
%114 = load i32, ptr %5, align 4
%115 = icmp slt i32 %113, %114
br i1 %115, label %92, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %110
br label %116
116: ; preds = %._crit_edge9, %78
%117 = load ptr, ptr %7, align 8
ret ptr %117
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpaqqnlgau.c'
source_filename = "/tmp/tmpaqqnlgau.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @strcasecmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @stricmp(ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @stricmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaqqnlgau.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @strcasecmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @stricmp(ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @stricmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5bcc7eix.c'
source_filename = "/tmp/tmp5bcc7eix.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EX_USAGE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5bcc7eix.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EX_USAGE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbb78lk0n.c'
source_filename = "/tmp/tmpbb78lk0n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%lld\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca [100000 x i8], align 16
%6 = alloca [10000 x i32], align 16
store i32 0, ptr %1, align 4
store i64 0, ptr %4, align 8
%7 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
br label %8
8: ; preds = %42, %0
%9 = load i64, ptr %2, align 8
%10 = add nsw i64 %9, -1
store i64 %10, ptr %2, align 8
%11 = icmp ne i64 %9, 0
br i1 %11, label %12, label %44
12: ; preds = %8
%13 = getelementptr inbounds [100000 x i8], ptr %5, i64 0, i64 0
%14 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %13)
%15 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3)
store i64 0, ptr %4, align 8
br label %16
16: ; preds = %24, %12
%17 = load i64, ptr %4, align 8
%18 = load i64, ptr %3, align 8
%19 = icmp slt i64 %17, %18
br i1 %19, label %20, label %27
20: ; preds = %16
%21 = load i64, ptr %4, align 8
%22 = getelementptr inbounds [10000 x i32], ptr %6, i64 0, i64 %21
%23 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %22)
br label %24
24: ; preds = %20
%25 = load i64, ptr %4, align 8
%26 = add nsw i64 %25, 1
store i64 %26, ptr %4, align 8
br label %16, !llvm.loop !6
27: ; preds = %16
store i64 0, ptr %4, align 8
br label %28
28: ; preds = %34, %27
%29 = load i64, ptr %4, align 8
%30 = getelementptr inbounds [100000 x i8], ptr %5, i64 0, i64 %29
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %42
34: ; preds = %28
%35 = load i64, ptr %4, align 8
%36 = getelementptr inbounds [100000 x i8], ptr %5, i64 0, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %38)
%40 = load i64, ptr %4, align 8
%41 = add nsw i64 %40, 1
store i64 %41, ptr %4, align 8
br label %28, !llvm.loop !8
42: ; preds = %28
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %8, !llvm.loop !9
44: ; preds = %8
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbb78lk0n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%lld\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca [100000 x i8], align 16
%6 = alloca [10000 x i32], align 16
store i32 0, ptr %1, align 4
store i64 0, ptr %4, align 8
%7 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
%8 = load i64, ptr %2, align 8
%9 = add nsw i64 %8, -1
store i64 %9, ptr %2, align 8
%10 = icmp ne i64 %8, 0
br i1 %10, label %.lr.ph5, label %52
.lr.ph5: ; preds = %0
br label %11
11: ; preds = %.lr.ph5, %47
%12 = getelementptr inbounds [100000 x i8], ptr %5, i64 0, i64 0
%13 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %12)
%14 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3)
store i64 0, ptr %4, align 8
%15 = load i64, ptr %4, align 8
%16 = load i64, ptr %3, align 8
%17 = icmp slt i64 %15, %16
br i1 %17, label %.lr.ph, label %28
.lr.ph: ; preds = %11
br label %18
18: ; preds = %.lr.ph, %22
%19 = load i64, ptr %4, align 8
%20 = getelementptr inbounds [10000 x i32], ptr %6, i64 0, i64 %19
%21 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %20)
br label %22
22: ; preds = %18
%23 = load i64, ptr %4, align 8
%24 = add nsw i64 %23, 1
store i64 %24, ptr %4, align 8
%25 = load i64, ptr %4, align 8
%26 = load i64, ptr %3, align 8
%27 = icmp slt i64 %25, %26
br i1 %27, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %28
28: ; preds = %._crit_edge, %11
store i64 0, ptr %4, align 8
%29 = load i64, ptr %4, align 8
%30 = getelementptr inbounds [100000 x i8], ptr %5, i64 0, i64 %29
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %32, 0
br i1 %33, label %.lr.ph2, label %47
.lr.ph2: ; preds = %28
br label %34
34: ; preds = %.lr.ph2, %34
%35 = load i64, ptr %4, align 8
%36 = getelementptr inbounds [100000 x i8], ptr %5, i64 0, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %38)
%40 = load i64, ptr %4, align 8
%41 = add nsw i64 %40, 1
store i64 %41, ptr %4, align 8
%42 = load i64, ptr %4, align 8
%43 = getelementptr inbounds [100000 x i8], ptr %5, i64 0, i64 %42
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %45, 0
br i1 %46, label %34, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %34
br label %47
47: ; preds = %._crit_edge3, %28
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%49 = load i64, ptr %2, align 8
%50 = add nsw i64 %49, -1
store i64 %50, ptr %2, align 8
%51 = icmp ne i64 %49, 0
br i1 %51, label %11, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %47
br label %52
52: ; preds = %._crit_edge6, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpilp3z0_8.c'
source_filename = "/tmp/tmpilp3z0_8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpilp3z0_8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpla5x6gp_.c'
source_filename = "/tmp/tmpla5x6gp_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline noreturn nounwind sspstrong uwtable
define dso_local void @abort() #0 {
%1 = load i32, ptr @EXIT_FAILURE, align 4
%2 = call i32 @exit(i32 noundef %1) #2
unreachable
}
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #1
attributes #0 = { noinline noreturn 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpla5x6gp_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline noreturn nounwind sspstrong uwtable
define dso_local void @abort() #0 {
%1 = load i32, ptr @EXIT_FAILURE, align 4
%2 = call i32 @exit(i32 noundef %1) #2
unreachable
}
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #1
attributes #0 = { noinline noreturn 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps_nvjhue.c'
source_filename = "/tmp/tmps_nvjhue.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps_nvjhue.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpplut27o6.c'
source_filename = "/tmp/tmpplut27o6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @forwcol(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 0, ptr %9, align 4
br label %10
10: ; preds = %72, %3
%11 = load i32, ptr %9, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %75
14: ; preds = %10
%15 = load ptr, ptr %6, align 8
%16 = load i32, ptr %9, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [800 x double], ptr %15, i64 %17
%19 = load i32, ptr %9, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [800 x double], ptr %18, i64 0, i64 %20
%22 = load double, ptr %21, align 8
%23 = call i64 @is_zero(double noundef %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %14
store i32 -1, ptr %4, align 4
br label %76
26: ; preds = %14
%27 = load ptr, ptr %6, align 8
%28 = load i32, ptr %9, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [800 x double], ptr %27, i64 %29
%31 = load i32, ptr %9, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [800 x double], ptr %30, i64 0, i64 %32
%34 = load double, ptr %33, align 8
%35 = load ptr, ptr %7, align 8
%36 = load i32, ptr %9, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds double, ptr %35, i64 %37
%39 = load double, ptr %38, align 8
%40 = fdiv double %39, %34
store double %40, ptr %38, align 8
%41 = load i32, ptr %9, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %8, align 4
br label %43
43: ; preds = %68, %26
%44 = load i32, ptr %8, align 4
%45 = load i32, ptr %5, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %71
47: ; preds = %43
%48 = load ptr, ptr %6, align 8
%49 = load i32, ptr %8, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [800 x double], ptr %48, i64 %50
%52 = load i32, ptr %9, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [800 x double], ptr %51, i64 0, i64 %53
%55 = load double, ptr %54, align 8
%56 = load ptr, ptr %7, align 8
%57 = load i32, ptr %9, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds double, ptr %56, i64 %58
%60 = load double, ptr %59, align 8
%61 = load ptr, ptr %7, align 8
%62 = load i32, ptr %8, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, ptr %61, i64 %63
%65 = load double, ptr %64, align 8
%66 = fneg double %55
%67 = call double @llvm.fmuladd.f64(double %66, double %60, double %65)
store double %67, ptr %64, align 8
br label %68
68: ; preds = %47
%69 = load i32, ptr %8, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %8, align 4
br label %43, !llvm.loop !6
71: ; preds = %43
br label %72
72: ; preds = %71
%73 = load i32, ptr %9, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %9, align 4
br label %10, !llvm.loop !8
75: ; preds = %10
store i32 0, ptr %4, align 4
br label %76
76: ; preds = %75, %25
%77 = load i32, ptr %4, align 4
ret i32 %77
}
declare i64 @is_zero(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpplut27o6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @forwcol(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 0, ptr %9, align 4
%10 = load i32, ptr %9, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph2, label %79
.lr.ph2: ; preds = %3
br label %13
13: ; preds = %.lr.ph2, %73
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %9, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [800 x double], ptr %14, i64 %16
%18 = load i32, ptr %9, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [800 x double], ptr %17, i64 0, i64 %19
%21 = load double, ptr %20, align 8
%22 = call i64 @is_zero(double noundef %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %13
store i32 -1, ptr %4, align 4
br label %80
25: ; preds = %13
%26 = load ptr, ptr %6, align 8
%27 = load i32, ptr %9, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [800 x double], ptr %26, i64 %28
%30 = load i32, ptr %9, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [800 x double], ptr %29, i64 0, i64 %31
%33 = load double, ptr %32, align 8
%34 = load ptr, ptr %7, align 8
%35 = load i32, ptr %9, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds double, ptr %34, i64 %36
%38 = load double, ptr %37, align 8
%39 = fdiv double %38, %33
store double %39, ptr %37, align 8
%40 = load i32, ptr %9, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %8, align 4
%42 = load i32, ptr %8, align 4
%43 = load i32, ptr %5, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %.lr.ph, label %72
.lr.ph: ; preds = %25
br label %45
45: ; preds = %.lr.ph, %66
%46 = load ptr, ptr %6, align 8
%47 = load i32, ptr %8, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [800 x double], ptr %46, i64 %48
%50 = load i32, ptr %9, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [800 x double], ptr %49, i64 0, i64 %51
%53 = load double, ptr %52, align 8
%54 = load ptr, ptr %7, align 8
%55 = load i32, ptr %9, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, ptr %54, i64 %56
%58 = load double, ptr %57, align 8
%59 = load ptr, ptr %7, align 8
%60 = load i32, ptr %8, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds double, ptr %59, i64 %61
%63 = load double, ptr %62, align 8
%64 = fneg double %53
%65 = call double @llvm.fmuladd.f64(double %64, double %58, double %63)
store double %65, ptr %62, align 8
br label %66
66: ; preds = %45
%67 = load i32, ptr %8, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %8, align 4
%69 = load i32, ptr %8, align 4
%70 = load i32, ptr %5, align 4
%71 = icmp slt i32 %69, %70
br i1 %71, label %45, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %66
br label %72
72: ; preds = %._crit_edge, %25
br label %73
73: ; preds = %72
%74 = load i32, ptr %9, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %9, align 4
%76 = load i32, ptr %9, align 4
%77 = load i32, ptr %5, align 4
%78 = icmp slt i32 %76, %77
br i1 %78, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %73
br label %79
79: ; preds = %._crit_edge3, %3
store i32 0, ptr %4, align 4
br label %80
80: ; preds = %79, %24
%81 = load i32, ptr %4, align 4
ret i32 %81
}
declare i64 @is_zero(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp7j_ge4gp.c'
source_filename = "/tmp/tmp7j_ge4gp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.hostent = type { i32, i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"Socket failed\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"gethostbyname failed\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"connection failed\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"Hello world or socket\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"Send failed\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"Send %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %struct.sockaddr_in, align 4
%8 = alloca ptr, align 8
%9 = alloca [1024 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 12)
%11 = load i32, ptr @AF_INET, align 4
%12 = load i32, ptr @SOCK_STREAM, align 4
%13 = call i32 @socket(i32 noundef %11, i32 noundef %12, i32 noundef 0)
store i32 %13, ptr %6, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %2
%17 = call i32 @perror(ptr noundef @.str)
%18 = load i32, ptr %6, align 4
%19 = call i32 @close(i32 noundef %18)
%20 = call i32 @exit(i32 noundef 1) #3
unreachable
21: ; preds = %2
%22 = load i32, ptr @AF_INET, align 4
%23 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
store i32 %22, ptr %23, align 4
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
%27 = load i8, ptr %26, align 1
%28 = call ptr @gethostbyname(i8 noundef signext %27)
store ptr %28, ptr %8, align 8
%29 = load ptr, ptr %8, align 8
%30 = icmp eq ptr %29, null
br i1 %30, label %31, label %36
31: ; preds = %21
%32 = call i32 @perror(ptr noundef @.str.1)
%33 = load i32, ptr %6, align 4
%34 = call i32 @close(i32 noundef %33)
%35 = call i32 @exit(i32 noundef 1) #3
unreachable
36: ; preds = %21
%37 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
%38 = load ptr, ptr %8, align 8
%39 = getelementptr inbounds %struct.hostent, ptr %38, i32 0, i32 1
%40 = load i32, ptr %39, align 4
%41 = load ptr, ptr %8, align 8
%42 = getelementptr inbounds %struct.hostent, ptr %41, i32 0, i32 0
%43 = load i32, ptr %42, align 4
%44 = call i32 @memcpy(ptr noundef %37, i32 noundef %40, i32 noundef %43)
%45 = call i32 @htons(i32 noundef 5000)
%46 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
store i32 %45, ptr %46, align 4
%47 = load i32, ptr %6, align 4
%48 = call i64 @connect(i32 noundef %47, ptr noundef %7, i32 noundef 12)
%49 = icmp slt i64 %48, 0
br i1 %49, label %50, label %55
50: ; preds = %36
%51 = call i32 @perror(ptr noundef @.str.2)
%52 = load i32, ptr %6, align 4
%53 = call i32 @close(i32 noundef %52)
%54 = call i32 @exit(i32 noundef 1) #3
unreachable
55: ; preds = %36
%56 = load i32, ptr %6, align 4
%57 = call i64 @send(i32 noundef %56, ptr noundef @.str.3, i32 noundef 22, i32 noundef 0)
%58 = icmp slt i64 %57, 0
br i1 %58, label %59, label %64
59: ; preds = %55
%60 = call i32 @perror(ptr noundef @.str.4)
%61 = load i32, ptr %6, align 4
%62 = call i32 @close(i32 noundef %61)
%63 = call i32 @exit(i32 noundef 1) #3
unreachable
64: ; preds = %55
%65 = call i32 @printf(ptr noundef @.str.5, ptr noundef @.str.3)
%66 = load i32, ptr %6, align 4
%67 = call i32 @close(i32 noundef %66)
ret i32 0
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @close(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @gethostbyname(i8 noundef signext) #1
declare i32 @memcpy(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7j_ge4gp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.hostent = type { i32, i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"Socket failed\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"gethostbyname failed\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"connection failed\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"Hello world or socket\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"Send failed\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"Send %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %struct.sockaddr_in, align 4
%8 = alloca ptr, align 8
%9 = alloca [1024 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 12)
%11 = load i32, ptr @AF_INET, align 4
%12 = load i32, ptr @SOCK_STREAM, align 4
%13 = call i32 @socket(i32 noundef %11, i32 noundef %12, i32 noundef 0)
store i32 %13, ptr %6, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %2
%17 = call i32 @perror(ptr noundef @.str)
%18 = load i32, ptr %6, align 4
%19 = call i32 @close(i32 noundef %18)
%20 = call i32 @exit(i32 noundef 1) #3
unreachable
21: ; preds = %2
%22 = load i32, ptr @AF_INET, align 4
%23 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
store i32 %22, ptr %23, align 4
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
%27 = load i8, ptr %26, align 1
%28 = call ptr @gethostbyname(i8 noundef signext %27)
store ptr %28, ptr %8, align 8
%29 = load ptr, ptr %8, align 8
%30 = icmp eq ptr %29, null
br i1 %30, label %31, label %36
31: ; preds = %21
%32 = call i32 @perror(ptr noundef @.str.1)
%33 = load i32, ptr %6, align 4
%34 = call i32 @close(i32 noundef %33)
%35 = call i32 @exit(i32 noundef 1) #3
unreachable
36: ; preds = %21
%37 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
%38 = load ptr, ptr %8, align 8
%39 = getelementptr inbounds %struct.hostent, ptr %38, i32 0, i32 1
%40 = load i32, ptr %39, align 4
%41 = load ptr, ptr %8, align 8
%42 = getelementptr inbounds %struct.hostent, ptr %41, i32 0, i32 0
%43 = load i32, ptr %42, align 4
%44 = call i32 @memcpy(ptr noundef %37, i32 noundef %40, i32 noundef %43)
%45 = call i32 @htons(i32 noundef 5000)
%46 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
store i32 %45, ptr %46, align 4
%47 = load i32, ptr %6, align 4
%48 = call i64 @connect(i32 noundef %47, ptr noundef %7, i32 noundef 12)
%49 = icmp slt i64 %48, 0
br i1 %49, label %50, label %55
50: ; preds = %36
%51 = call i32 @perror(ptr noundef @.str.2)
%52 = load i32, ptr %6, align 4
%53 = call i32 @close(i32 noundef %52)
%54 = call i32 @exit(i32 noundef 1) #3
unreachable
55: ; preds = %36
%56 = load i32, ptr %6, align 4
%57 = call i64 @send(i32 noundef %56, ptr noundef @.str.3, i32 noundef 22, i32 noundef 0)
%58 = icmp slt i64 %57, 0
br i1 %58, label %59, label %64
59: ; preds = %55
%60 = call i32 @perror(ptr noundef @.str.4)
%61 = load i32, ptr %6, align 4
%62 = call i32 @close(i32 noundef %61)
%63 = call i32 @exit(i32 noundef 1) #3
unreachable
64: ; preds = %55
%65 = call i32 @printf(ptr noundef @.str.5, ptr noundef @.str.3)
%66 = load i32, ptr %6, align 4
%67 = call i32 @close(i32 noundef %66)
ret i32 0
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @close(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @gethostbyname(i8 noundef signext) #1
declare i32 @memcpy(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx2_5ywq8.c'
source_filename = "/tmp/tmpx2_5ywq8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"\0AInfix Expression: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c" %c %c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @postfix_to_infix(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i8, align 1
%5 = alloca i8, align 1
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strlen(ptr noundef %7)
store i32 %8, ptr %3, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = load ptr, ptr %2, align 8
%11 = getelementptr inbounds i8, ptr %10, i64 0
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %13)
store i32 1, ptr %6, align 4
br label %15
15: ; preds = %47, %1
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %3, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %50
19: ; preds = %15
%20 = load ptr, ptr %2, align 8
%21 = load i32, ptr %6, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = call i32 @operand(i8 noundef signext %24)
%26 = icmp ne i32 %25, 0
br i1 %26, label %34, label %27
27: ; preds = %19
%28 = load ptr, ptr %2, align 8
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load i8, ptr %31, align 1
%33 = call i32 @push(i8 noundef signext %32)
br label %46
34: ; preds = %19
%35 = call signext i8 (...) @pop()
store i8 %35, ptr %4, align 1
%36 = load ptr, ptr %2, align 8
%37 = load i32, ptr %6, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load i8, ptr %39, align 1
store i8 %40, ptr %5, align 1
%41 = load i8, ptr %5, align 1
%42 = sext i8 %41 to i32
%43 = load i8, ptr %4, align 1
%44 = sext i8 %43 to i32
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %42, i32 noundef %44)
br label %46
46: ; preds = %34, %27
br label %47
47: ; preds = %46
%48 = load i32, ptr %6, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %6, align 4
br label %15, !llvm.loop !6
50: ; preds = %15
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @operand(i8 noundef signext) #1
declare i32 @push(i8 noundef signext) #1
declare signext i8 @pop(...) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx2_5ywq8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"\0AInfix Expression: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c" %c %c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @postfix_to_infix(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i8, align 1
%5 = alloca i8, align 1
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strlen(ptr noundef %7)
store i32 %8, ptr %3, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = load ptr, ptr %2, align 8
%11 = getelementptr inbounds i8, ptr %10, i64 0
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %13)
store i32 1, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %52
.lr.ph: ; preds = %1
br label %18
18: ; preds = %.lr.ph, %46
%19 = load ptr, ptr %2, align 8
%20 = load i32, ptr %6, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = load i8, ptr %22, align 1
%24 = call i32 @operand(i8 noundef signext %23)
%25 = icmp ne i32 %24, 0
br i1 %25, label %33, label %26
26: ; preds = %18
%27 = load ptr, ptr %2, align 8
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = call i32 @push(i8 noundef signext %31)
br label %45
33: ; preds = %18
%34 = call signext i8 (...) @pop()
store i8 %34, ptr %4, align 1
%35 = load ptr, ptr %2, align 8
%36 = load i32, ptr %6, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
%39 = load i8, ptr %38, align 1
store i8 %39, ptr %5, align 1
%40 = load i8, ptr %5, align 1
%41 = sext i8 %40 to i32
%42 = load i8, ptr %4, align 1
%43 = sext i8 %42 to i32
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %41, i32 noundef %43)
br label %45
45: ; preds = %33, %26
br label %46
46: ; preds = %45
%47 = load i32, ptr %6, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %6, align 4
%49 = load i32, ptr %6, align 4
%50 = load i32, ptr %3, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %46
br label %52
52: ; preds = %._crit_edge, %1
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @operand(i8 noundef signext) #1
declare i32 @push(i8 noundef signext) #1
declare signext i8 @pop(...) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9asl7dtp.c'
source_filename = "/tmp/tmp9asl7dtp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"sin (0.0) = %g\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @libfoo2_LTX_foo2() #0 {
%1 = call i64 @sin(double noundef 0.000000e+00)
%2 = sitofp i64 %1 to double
%3 = call i32 @printf(ptr noundef @.str, double noundef %2)
%4 = call i32 (...) @_foo2_helper()
ret i32 %4
}
declare i32 @printf(ptr noundef, double noundef) #1
declare i64 @sin(double noundef) #1
declare i32 @_foo2_helper(...) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9asl7dtp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"sin (0.0) = %g\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @libfoo2_LTX_foo2() #0 {
%1 = call i64 @sin(double noundef 0.000000e+00)
%2 = sitofp i64 %1 to double
%3 = call i32 @printf(ptr noundef @.str, double noundef %2)
%4 = call i32 (...) @_foo2_helper()
ret i32 %4
}
declare i32 @printf(ptr noundef, double noundef) #1
declare i64 @sin(double noundef) #1
declare i32 @_foo2_helper(...) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfqdw5oel.c'
source_filename = "/tmp/tmpfqdw5oel.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfqdw5oel.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo6spmg7m.c'
source_filename = "/tmp/tmpo6spmg7m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.rusage = type { %struct.TYPE_4__, %struct.TYPE_3__ }
%struct.TYPE_4__ = type { double, i32 }
%struct.TYPE_3__ = type { double, i32 }
@RUSAGE_SELF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @cputime() #0 {
%1 = alloca %struct.rusage, align 8
%2 = load i32, ptr @RUSAGE_SELF, align 4
%3 = call i32 @getrusage(i32 noundef %2, ptr noundef %1)
%4 = getelementptr inbounds %struct.rusage, ptr %1, i32 0, i32 1
%5 = getelementptr inbounds %struct.TYPE_3__, ptr %4, i32 0, i32 0
%6 = load double, ptr %5, align 8
%7 = getelementptr inbounds %struct.rusage, ptr %1, i32 0, i32 0
%8 = getelementptr inbounds %struct.TYPE_4__, ptr %7, i32 0, i32 0
%9 = load double, ptr %8, align 8
%10 = fadd double %6, %9
%11 = getelementptr inbounds %struct.rusage, ptr %1, i32 0, i32 1
%12 = getelementptr inbounds %struct.TYPE_3__, ptr %11, i32 0, i32 1
%13 = load i32, ptr %12, align 8
%14 = getelementptr inbounds %struct.rusage, ptr %1, i32 0, i32 0
%15 = getelementptr inbounds %struct.TYPE_4__, ptr %14, i32 0, i32 1
%16 = load i32, ptr %15, align 8
%17 = add nsw i32 %13, %16
%18 = sitofp i32 %17 to double
%19 = call double @llvm.fmuladd.f64(double 0x3EB0C6F7A0B5ED8D, double %18, double %10)
ret double %19
}
declare i32 @getrusage(i32 noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo6spmg7m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.rusage = type { %struct.TYPE_4__, %struct.TYPE_3__ }
%struct.TYPE_4__ = type { double, i32 }
%struct.TYPE_3__ = type { double, i32 }
@RUSAGE_SELF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @cputime() #0 {
%1 = alloca %struct.rusage, align 8
%2 = load i32, ptr @RUSAGE_SELF, align 4
%3 = call i32 @getrusage(i32 noundef %2, ptr noundef %1)
%4 = getelementptr inbounds %struct.rusage, ptr %1, i32 0, i32 1
%5 = getelementptr inbounds %struct.TYPE_3__, ptr %4, i32 0, i32 0
%6 = load double, ptr %5, align 8
%7 = getelementptr inbounds %struct.rusage, ptr %1, i32 0, i32 0
%8 = getelementptr inbounds %struct.TYPE_4__, ptr %7, i32 0, i32 0
%9 = load double, ptr %8, align 8
%10 = fadd double %6, %9
%11 = getelementptr inbounds %struct.rusage, ptr %1, i32 0, i32 1
%12 = getelementptr inbounds %struct.TYPE_3__, ptr %11, i32 0, i32 1
%13 = load i32, ptr %12, align 8
%14 = getelementptr inbounds %struct.rusage, ptr %1, i32 0, i32 0
%15 = getelementptr inbounds %struct.TYPE_4__, ptr %14, i32 0, i32 1
%16 = load i32, ptr %15, align 8
%17 = add nsw i32 %13, %16
%18 = sitofp i32 %17 to double
%19 = call double @llvm.fmuladd.f64(double 0x3EB0C6F7A0B5ED8D, double %18, double %10)
ret double %19
}
declare i32 @getrusage(i32 noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplq4yiel8.c'
source_filename = "/tmp/tmplq4yiel8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [53 x i8] c"Usage: snodfish [-d][-f <configfile>][-w <workers>]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = call i32 @exit(i32 noundef 2) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplq4yiel8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [53 x i8] c"Usage: snodfish [-d][-f <configfile>][-w <workers>]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = call i32 @exit(i32 noundef 2) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjeiner6_.c'
source_filename = "/tmp/tmpjeiner6_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [137 x i8] c"vita-libs-gen by xerpi\0Ausage: vita-libs-gen [-c] nids.yml [extra.yml ...] output-dir\0A\09-c: Generate CMakeLists.txt instead of a Makefile\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjeiner6_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [137 x i8] c"vita-libs-gen by xerpi\0Ausage: vita-libs-gen [-c] nids.yml [extra.yml ...] output-dir\0A\09-c: Generate CMakeLists.txt instead of a Makefile\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpb4leuexz.c'
source_filename = "/tmp/tmpb4leuexz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @strcut(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %4, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i8, ptr %6, i64 %8
%10 = load ptr, ptr %3, align 8
%11 = call i64 @strlen(ptr noundef %10)
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = sub nsw i64 %11, %13
%15 = call i32 @memmove(ptr noundef %5, ptr noundef %9, i64 noundef %14)
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
declare i32 @memmove(ptr noundef, ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb4leuexz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @strcut(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %4, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i8, ptr %6, i64 %8
%10 = load ptr, ptr %3, align 8
%11 = call i64 @strlen(ptr noundef %10)
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = sub nsw i64 %11, %13
%15 = call i32 @memmove(ptr noundef %5, ptr noundef %9, i64 noundef %14)
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
declare i32 @memmove(ptr noundef, ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg_3aejmm.c'
source_filename = "/tmp/tmpg_3aejmm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32 }
@.str = private unnamed_addr constant [13 x i8] c"getsockname:\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_port_by_sock(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca %struct.sockaddr_in, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 4, ptr %6, align 4
%7 = load i32, ptr %2, align 4
%8 = call i64 @getsockname(i32 noundef %7, ptr noundef %5, ptr noundef %6)
%9 = icmp ne i64 0, %8
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = call i32 @perror(ptr noundef @.str)
%12 = load i32, ptr @errno, align 4
store i32 %12, ptr %3, align 4
br label %18
13: ; preds = %1
%14 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 0
%15 = load i32, ptr %14, align 4
%16 = call i64 @ntohs(i32 noundef %15)
%17 = trunc i64 %16 to i32
store i32 %17, ptr %4, align 4
br label %18
18: ; preds = %13, %10
%19 = load i32, ptr %4, align 4
ret i32 %19
}
declare i64 @getsockname(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @ntohs(i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg_3aejmm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32 }
@.str = private unnamed_addr constant [13 x i8] c"getsockname:\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_port_by_sock(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca %struct.sockaddr_in, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 4, ptr %6, align 4
%7 = load i32, ptr %2, align 4
%8 = call i64 @getsockname(i32 noundef %7, ptr noundef %5, ptr noundef %6)
%9 = icmp ne i64 0, %8
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = call i32 @perror(ptr noundef @.str)
%12 = load i32, ptr @errno, align 4
store i32 %12, ptr %3, align 4
br label %18
13: ; preds = %1
%14 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 0
%15 = load i32, ptr %14, align 4
%16 = call i64 @ntohs(i32 noundef %15)
%17 = trunc i64 %16 to i32
store i32 %17, ptr %4, align 4
br label %18
18: ; preds = %13, %10
%19 = load i32, ptr %4, align 4
ret i32 %19
}
declare i64 @getsockname(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @ntohs(i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkmedpo0n.c'
source_filename = "/tmp/tmpkmedpo0n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkmedpo0n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3y9uqmfm.c'
source_filename = "/tmp/tmp3y9uqmfm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @myPow(double noundef 2.000000e+00, i32 noundef -3)
%3 = call i32 @printf(ptr noundef @.str, i32 noundef %2)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @myPow(double noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3y9uqmfm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @myPow(double noundef 2.000000e+00, i32 noundef -3)
%3 = call i32 @printf(ptr noundef @.str, i32 noundef %2)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @myPow(double noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphxot1mmb.c'
source_filename = "/tmp/tmphxot1mmb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dbg_client_detached() #0 {
%1 = call i32 @send_command_to_vpi(i32 noundef 13)
ret void
}
declare i32 @send_command_to_vpi(i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphxot1mmb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dbg_client_detached() #0 {
%1 = call i32 @send_command_to_vpi(i32 noundef 13)
ret void
}
declare i32 @send_command_to_vpi(i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkwqp0mim.c'
source_filename = "/tmp/tmpkwqp0mim.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.setCursorSPI.spi_data = private unnamed_addr constant [2 x i8] c"y\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setCursorSPI() #0 {
%1 = alloca [2 x i8], align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr align 1 @__const.setCursorSPI.spi_data, i64 2, i1 false)
%2 = getelementptr inbounds [2 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @wiringXSPIDataRW(i32 noundef 0, ptr noundef %2, i32 noundef 2)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @wiringXSPIDataRW(i32 noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkwqp0mim.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.setCursorSPI.spi_data = private unnamed_addr constant [2 x i8] c"y\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setCursorSPI() #0 {
%1 = alloca [2 x i8], align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr align 1 @__const.setCursorSPI.spi_data, i64 2, i1 false)
%2 = getelementptr inbounds [2 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @wiringXSPIDataRW(i32 noundef 0, ptr noundef %2, i32 noundef 2)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @wiringXSPIDataRW(i32 noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcmfhgba4.c'
source_filename = "/tmp/tmpcmfhgba4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @areEqualFloats(double noundef %0, double noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
%6 = load double, ptr %4, align 8
%7 = load double, ptr %5, align 8
%8 = fsub double %6, %7
%9 = call double @llvm.fabs.f64(double %8)
%10 = fcmp olt double %9, 1.000000e-04
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 1, ptr %3, align 4
br label %13
12: ; preds = %2
store i32 0, ptr %3, align 4
br label %13
13: ; preds = %12, %11
%14 = load i32, ptr %3, align 4
ret i32 %14
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcmfhgba4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @areEqualFloats(double noundef %0, double noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
%6 = load double, ptr %4, align 8
%7 = load double, ptr %5, align 8
%8 = fsub double %6, %7
%9 = call double @llvm.fabs.f64(double %8)
%10 = fcmp olt double %9, 1.000000e-04
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 1, ptr %3, align 4
br label %13
12: ; preds = %2
store i32 0, ptr %3, align 4
br label %13
13: ; preds = %12, %11
%14 = load i32, ptr %3, align 4
ret i32 %14
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfmke5rag.c'
source_filename = "/tmp/tmpfmke5rag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i16 @CRC_16(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i16, align 2
%7 = alloca [256 x i16], align 16
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i16 0, ptr %6, align 2
%8 = getelementptr inbounds [256 x i16], ptr %7, i64 0, i64 0
%9 = call i32 @CRCBuildTable16(i32 noundef 4129, ptr noundef %8)
store i64 0, ptr %5, align 8
br label %10
10: ; preds = %32, %2
%11 = load i64, ptr %5, align 8
%12 = load i64, ptr %4, align 8
%13 = icmp ult i64 %11, %12
br i1 %13, label %14, label %35
14: ; preds = %10
%15 = load i16, ptr %6, align 2
%16 = zext i16 %15 to i32
%17 = shl i32 %16, 8
%18 = load i16, ptr %6, align 2
%19 = zext i16 %18 to i32
%20 = ashr i32 %19, 8
%21 = load ptr, ptr %3, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %3, align 8
%23 = load i8, ptr %21, align 1
%24 = zext i8 %23 to i32
%25 = xor i32 %20, %24
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [256 x i16], ptr %7, i64 0, i64 %26
%28 = load i16, ptr %27, align 2
%29 = zext i16 %28 to i32
%30 = xor i32 %17, %29
%31 = trunc i32 %30 to i16
store i16 %31, ptr %6, align 2
br label %32
32: ; preds = %14
%33 = load i64, ptr %5, align 8
%34 = add i64 %33, 1
store i64 %34, ptr %5, align 8
br label %10, !llvm.loop !6
35: ; preds = %10
%36 = load i16, ptr %6, align 2
ret i16 %36
}
declare i32 @CRCBuildTable16(i32 noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfmke5rag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i16 @CRC_16(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i16, align 2
%7 = alloca [256 x i16], align 16
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i16 0, ptr %6, align 2
%8 = getelementptr inbounds [256 x i16], ptr %7, i64 0, i64 0
%9 = call i32 @CRCBuildTable16(i32 noundef 4129, ptr noundef %8)
store i64 0, ptr %5, align 8
%10 = load i64, ptr %5, align 8
%11 = load i64, ptr %4, align 8
%12 = icmp ult i64 %10, %11
br i1 %12, label %.lr.ph, label %37
.lr.ph: ; preds = %2
br label %13
13: ; preds = %.lr.ph, %31
%14 = load i16, ptr %6, align 2
%15 = zext i16 %14 to i32
%16 = shl i32 %15, 8
%17 = load i16, ptr %6, align 2
%18 = zext i16 %17 to i32
%19 = ashr i32 %18, 8
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 1
store ptr %21, ptr %3, align 8
%22 = load i8, ptr %20, align 1
%23 = zext i8 %22 to i32
%24 = xor i32 %19, %23
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [256 x i16], ptr %7, i64 0, i64 %25
%27 = load i16, ptr %26, align 2
%28 = zext i16 %27 to i32
%29 = xor i32 %16, %28
%30 = trunc i32 %29 to i16
store i16 %30, ptr %6, align 2
br label %31
31: ; preds = %13
%32 = load i64, ptr %5, align 8
%33 = add i64 %32, 1
store i64 %33, ptr %5, align 8
%34 = load i64, ptr %5, align 8
%35 = load i64, ptr %4, align 8
%36 = icmp ult i64 %34, %35
br i1 %36, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %37
37: ; preds = %._crit_edge, %2
%38 = load i16, ptr %6, align 2
ret i16 %38
}
declare i32 @CRCBuildTable16(i32 noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_6n1cv0z.c'
source_filename = "/tmp/tmp_6n1cv0z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"astG3DText\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @astG3DText(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%11 = call i32 @Report(ptr noundef @.str)
ret i32 0
}
declare i32 @Report(ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_6n1cv0z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"astG3DText\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @astG3DText(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%11 = call i32 @Report(ptr noundef @.str)
ret i32 0
}
declare i32 @Report(ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2tly3s2l.c'
source_filename = "/tmp/tmp2tly3s2l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ft_putnbr(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %21
5: ; preds = %1
%6 = call i32 @ft_putchar(i32 noundef 45)
%7 = load i32, ptr %2, align 4
%8 = sext i32 %7 to i64
%9 = icmp eq i64 %8, -2147483648
br i1 %9, label %10, label %17
10: ; preds = %5
%11 = load i32, ptr %2, align 4
%12 = sdiv i32 %11, 10
%13 = sub nsw i32 0, %12
call void @ft_putnbr(i32 noundef %13)
%14 = load i32, ptr %2, align 4
%15 = srem i32 %14, 10
%16 = sub nsw i32 0, %15
call void @ft_putnbr(i32 noundef %16)
br label %20
17: ; preds = %5
%18 = load i32, ptr %2, align 4
%19 = sub nsw i32 0, %18
call void @ft_putnbr(i32 noundef %19)
br label %20
20: ; preds = %17, %10
br label %34
21: ; preds = %1
%22 = load i32, ptr %2, align 4
%23 = icmp sge i32 %22, 10
br i1 %23, label %24, label %29
24: ; preds = %21
%25 = load i32, ptr %2, align 4
%26 = sdiv i32 %25, 10
call void @ft_putnbr(i32 noundef %26)
%27 = load i32, ptr %2, align 4
%28 = srem i32 %27, 10
call void @ft_putnbr(i32 noundef %28)
br label %33
29: ; preds = %21
%30 = load i32, ptr %2, align 4
%31 = add nsw i32 %30, 48
%32 = call i32 @ft_putchar(i32 noundef %31)
br label %33
33: ; preds = %29, %24
br label %34
34: ; preds = %33, %20
ret void
}
declare i32 @ft_putchar(i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2tly3s2l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ft_putnbr(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %21
5: ; preds = %1
%6 = call i32 @ft_putchar(i32 noundef 45)
%7 = load i32, ptr %2, align 4
%8 = sext i32 %7 to i64
%9 = icmp eq i64 %8, -2147483648
br i1 %9, label %10, label %17
10: ; preds = %5
%11 = load i32, ptr %2, align 4
%12 = sdiv i32 %11, 10
%13 = sub nsw i32 0, %12
call void @ft_putnbr(i32 noundef %13)
%14 = load i32, ptr %2, align 4
%15 = srem i32 %14, 10
%16 = sub nsw i32 0, %15
call void @ft_putnbr(i32 noundef %16)
br label %20
17: ; preds = %5
%18 = load i32, ptr %2, align 4
%19 = sub nsw i32 0, %18
call void @ft_putnbr(i32 noundef %19)
br label %20
20: ; preds = %17, %10
br label %34
21: ; preds = %1
%22 = load i32, ptr %2, align 4
%23 = icmp sge i32 %22, 10
br i1 %23, label %24, label %29
24: ; preds = %21
%25 = load i32, ptr %2, align 4
%26 = sdiv i32 %25, 10
call void @ft_putnbr(i32 noundef %26)
%27 = load i32, ptr %2, align 4
%28 = srem i32 %27, 10
call void @ft_putnbr(i32 noundef %28)
br label %33
29: ; preds = %21
%30 = load i32, ptr %2, align 4
%31 = add nsw i32 %30, 48
%32 = call i32 @ft_putchar(i32 noundef %31)
br label %33
33: ; preds = %29, %24
br label %34
34: ; preds = %33, %20
ret void
}
declare i32 @ft_putchar(i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7z9vrnkt.c'
source_filename = "/tmp/tmp7z9vrnkt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"Reallocate memory error\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @resizeMemory(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = load i64, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = mul i64 %9, %10
%12 = call ptr @realloc(ptr noundef %8, i64 noundef %11) #3
store ptr %12, ptr %7, align 8
%13 = load ptr, ptr %7, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %17, label %15
15: ; preds = %3
%16 = call i32 @printf(ptr noundef @.str)
br label %17
17: ; preds = %15, %3
%18 = load ptr, ptr %7, align 8
ret ptr %18
}
; Function Attrs: allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #1
declare i32 @printf(ptr noundef) #2
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { allocsize(1) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { allocsize(1) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7z9vrnkt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"Reallocate memory error\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @resizeMemory(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = load i64, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = mul i64 %9, %10
%12 = call ptr @realloc(ptr noundef %8, i64 noundef %11) #3
store ptr %12, ptr %7, align 8
%13 = load ptr, ptr %7, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %17, label %15
15: ; preds = %3
%16 = call i32 @printf(ptr noundef @.str)
br label %17
17: ; preds = %15, %3
%18 = load ptr, ptr %7, align 8
ret ptr %18
}
; Function Attrs: allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #1
declare i32 @printf(ptr noundef) #2
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { allocsize(1) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { allocsize(1) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpz706qi74.c'
source_filename = "/tmp/tmpz706qi74.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @testClosureZrV(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = load ptr, ptr %3, align 8
%9 = load i32, ptr %4, align 4
call void %8(i32 noundef %9)
br label %10
10: ; preds = %7, %2
ret void
}
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz706qi74.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @testClosureZrV(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = load ptr, ptr %3, align 8
%9 = load i32, ptr %4, align 4
call void %8(i32 noundef %9)
br label %10
10: ; preds = %7, %2
ret void
}
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps0eb6ps7.c'
source_filename = "/tmp/tmps0eb6ps7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [53 x i8] c"--port | -p <port> start listening on port <port>.\0A\00", align 1
@.str.1 = private unnamed_addr constant [47 x i8] c" The default port is 8053.\0A\00", align 1
@.str.2 = private unnamed_addr constant [49 x i8] c"--iface | -i <ip> start listening on ip <ip>.\0A\00", align 1
@.str.3 = private unnamed_addr constant [65 x i8] c" The default is to listen on all interfaces.\0A\00", align 1
@.str.4 = private unnamed_addr constant [57 x i8] c"--size | -s <size> Message size in bytes (1 to 65535).\0A\00", align 1
@.str.5 = private unnamed_addr constant [62 x i8] c" The default messages size is 1024 bytes.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @server_usage() #0 {
%1 = load i32, ptr @stdout, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @stdout, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str.1)
%5 = load i32, ptr @stdout, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str.2)
%7 = load i32, ptr @stdout, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str.3)
%9 = load i32, ptr @stdout, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str.4)
%11 = load i32, ptr @stdout, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.5)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps0eb6ps7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [53 x i8] c"--port | -p <port> start listening on port <port>.\0A\00", align 1
@.str.1 = private unnamed_addr constant [47 x i8] c" The default port is 8053.\0A\00", align 1
@.str.2 = private unnamed_addr constant [49 x i8] c"--iface | -i <ip> start listening on ip <ip>.\0A\00", align 1
@.str.3 = private unnamed_addr constant [65 x i8] c" The default is to listen on all interfaces.\0A\00", align 1
@.str.4 = private unnamed_addr constant [57 x i8] c"--size | -s <size> Message size in bytes (1 to 65535).\0A\00", align 1
@.str.5 = private unnamed_addr constant [62 x i8] c" The default messages size is 1024 bytes.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @server_usage() #0 {
%1 = load i32, ptr @stdout, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @stdout, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str.1)
%5 = load i32, ptr @stdout, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str.2)
%7 = load i32, ptr @stdout, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str.3)
%9 = load i32, ptr @stdout, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str.4)
%11 = load i32, ptr @stdout, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.5)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzd2o8st8.c'
source_filename = "/tmp/tmpzd2o8st8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 (...) @f()
%4 = call i32 (...) @replace()
%5 = call i32 (...) @replace()
%6 = call i32 (...) @g()
ret void
}
declare i32 @f(...) #1
declare i32 @replace(...) #1
declare i32 @g(...) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzd2o8st8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 (...) @f()
%4 = call i32 (...) @replace()
%5 = call i32 (...) @replace()
%6 = call i32 (...) @g()
ret void
}
declare i32 @f(...) #1
declare i32 @replace(...) #1
declare i32 @g(...) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppeuyaws_.c'
source_filename = "/tmp/tmppeuyaws_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [75 x i8] c"\0A************************************************************************\0A\00", align 1
@.str.1 = private unnamed_addr constant [76 x i8] c"\0A+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+\0A\00", align 1
@.str.2 = private unnamed_addr constant [75 x i8] c"\0A------------------------------------------------------------------------\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @lines(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
switch i32 %3, label %8 [
i32 1, label %4
i32 2, label %6
]
4: ; preds = %1
%5 = call i32 @printf(ptr noundef @.str)
br label %10
6: ; preds = %1
%7 = call i32 @printf(ptr noundef @.str.1)
br label %10
8: ; preds = %1
%9 = call i32 @printf(ptr noundef @.str.2)
br label %10
10: ; preds = %8, %6, %4
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppeuyaws_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [75 x i8] c"\0A************************************************************************\0A\00", align 1
@.str.1 = private unnamed_addr constant [76 x i8] c"\0A+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+\0A\00", align 1
@.str.2 = private unnamed_addr constant [75 x i8] c"\0A------------------------------------------------------------------------\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @lines(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
switch i32 %3, label %8 [
i32 1, label %4
i32 2, label %6
]
4: ; preds = %1
%5 = call i32 @printf(ptr noundef @.str)
br label %10
6: ; preds = %1
%7 = call i32 @printf(ptr noundef @.str.1)
br label %10
8: ; preds = %1
%9 = call i32 @printf(ptr noundef @.str.2)
br label %10
10: ; preds = %8, %6, %4
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp68e_stt2.c'
source_filename = "/tmp/tmp68e_stt2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp68e_stt2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpiav8owe_.c'
source_filename = "/tmp/tmpiav8owe_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_bishop_moves_black(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca i32, align 4
%10 = alloca i8, align 1
%11 = alloca i8, align 1
%12 = alloca i8, align 1
%13 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %9, align 4
store i8 97, ptr %7, align 1
br label %14
14: ; preds = %397, %3
%15 = load i8, ptr %7, align 1
%16 = sext i8 %15 to i32
%17 = icmp sle i32 %16, 104
br i1 %17, label %18, label %400
18: ; preds = %14
store i8 49, ptr %8, align 1
br label %19
19: ; preds = %393, %18
%20 = load i8, ptr %8, align 1
%21 = sext i8 %20 to i32
%22 = icmp sle i32 %21, 56
br i1 %22, label %23, label %396
23: ; preds = %19
%24 = load ptr, ptr %5, align 8
%25 = load i8, ptr %7, align 1
%26 = load i8, ptr %8, align 1
%27 = call signext i8 @get_piece(ptr noundef %24, i8 noundef signext %25, i8 noundef signext %26)
store i8 %27, ptr %10, align 1
%28 = load i8, ptr %10, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 98
br i1 %30, label %31, label %392
31: ; preds = %23
%32 = load i8, ptr %7, align 1
%33 = sext i8 %32 to i32
%34 = sub nsw i32 %33, 1
%35 = trunc i32 %34 to i8
store i8 %35, ptr %11, align 1
%36 = load i8, ptr %8, align 1
%37 = sext i8 %36 to i32
%38 = sub nsw i32 %37, 1
%39 = trunc i32 %38 to i8
store i8 %39, ptr %12, align 1
store i32 1, ptr %13, align 4
%40 = load i8, ptr %7, align 1
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 97
br i1 %42, label %47, label %43
43: ; preds = %31
%44 = load i8, ptr %8, align 1
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 49
br i1 %46, label %47, label %48
47: ; preds = %43, %31
store i32 0, ptr %13, align 4
br label %48
48: ; preds = %47, %43
br label %49
49: ; preds = %120, %48
%50 = load i32, ptr %13, align 4
%51 = icmp eq i32 %50, 1
br i1 %51, label %52, label %58
52: ; preds = %49
%53 = load ptr, ptr %5, align 8
%54 = load i8, ptr %11, align 1
%55 = load i8, ptr %12, align 1
%56 = call i32 @is_occupied(ptr noundef %53, i8 noundef signext %54, i8 noundef signext %55)
%57 = icmp eq i32 %56, 0
br label %58
58: ; preds = %52, %49
%59 = phi i1 [ false, %49 ], [ %57, %52 ]
br i1 %59, label %60, label %121
60: ; preds = %58
%61 = load ptr, ptr %4, align 8
%62 = load ptr, ptr %5, align 8
%63 = load ptr, ptr %6, align 8
%64 = load i8, ptr %7, align 1
%65 = load i8, ptr %8, align 1
%66 = load i8, ptr %11, align 1
%67 = load i8, ptr %12, align 1
%68 = call ptr @store_move(ptr noundef %61, ptr noundef %62, i32 noundef 0, ptr noundef %63, i8 noundef signext %64, i8 noundef signext %65, i8 noundef signext %66, i8 noundef signext %67)
store ptr %68, ptr %4, align 8
%69 = load i32, ptr %9, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %9, align 4
%71 = load i8, ptr %11, align 1
%72 = sext i8 %71 to i32
%73 = icmp sgt i32 %72, 97
br i1 %73, label %74, label %107
74: ; preds = %60
%75 = load i8, ptr %12, align 1
%76 = sext i8 %75 to i32
%77 = icmp sgt i32 %76, 49
br i1 %77, label %78, label %107
78: ; preds = %74
%79 = load ptr, ptr %5, align 8
%80 = load i8, ptr %11, align 1
%81 = sext i8 %80 to i32
%82 = sub nsw i32 %81, 1
%83 = trunc i32 %82 to i8
%84 = load i8, ptr %12, align 1
%85 = sext i8 %84 to i32
%86 = sub nsw i32 %85, 1
%87 = trunc i32 %86 to i8
%88 = call i32 @is_occupied(ptr noundef %79, i8 noundef signext %83, i8 noundef signext %87)
%89 = icmp eq i32 %88, 1
br i1 %89, label %90, label %107
90: ; preds = %78
%91 = load ptr, ptr %4, align 8
%92 = load ptr, ptr %5, align 8
%93 = load ptr, ptr %6, align 8
%94 = load i8, ptr %7, align 1
%95 = load i8, ptr %8, align 1
%96 = load i8, ptr %11, align 1
%97 = sext i8 %96 to i32
%98 = sub nsw i32 %97, 1
%99 = trunc i32 %98 to i8
%100 = load i8, ptr %12, align 1
%101 = sext i8 %100 to i32
%102 = sub nsw i32 %101, 1
%103 = trunc i32 %102 to i8
%104 = call ptr @store_move(ptr noundef %91, ptr noundef %92, i32 noundef 0, ptr noundef %93, i8 noundef signext %94, i8 noundef signext %95, i8 noundef signext %99, i8 noundef signext %103)
store ptr %104, ptr %4, align 8
%105 = load i32, ptr %9, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %9, align 4
store i32 0, ptr %13, align 4
br label %107
107: ; preds = %90, %78, %74, %60
%108 = load i8, ptr %11, align 1
%109 = add i8 %108, -1
store i8 %109, ptr %11, align 1
%110 = load i8, ptr %12, align 1
%111 = add i8 %110, -1
store i8 %111, ptr %12, align 1
%112 = load i8, ptr %11, align 1
%113 = sext i8 %112 to i32
%114 = icmp slt i32 %113, 97
br i1 %114, label %119, label %115
115: ; preds = %107
%116 = load i8, ptr %12, align 1
%117 = sext i8 %116 to i32
%118 = icmp slt i32 %117, 49
br i1 %118, label %119, label %120
119: ; preds = %115, %107
store i32 0, ptr %13, align 4
br label %120
120: ; preds = %119, %115
br label %49, !llvm.loop !6
121: ; preds = %58
%122 = load i8, ptr %7, align 1
%123 = sext i8 %122 to i32
%124 = add nsw i32 %123, 1
%125 = trunc i32 %124 to i8
store i8 %125, ptr %11, align 1
%126 = load i8, ptr %8, align 1
%127 = sext i8 %126 to i32
%128 = sub nsw i32 %127, 1
%129 = trunc i32 %128 to i8
store i8 %129, ptr %12, align 1
store i32 1, ptr %13, align 4
%130 = load i8, ptr %7, align 1
%131 = sext i8 %130 to i32
%132 = icmp eq i32 %131, 104
br i1 %132, label %137, label %133
133: ; preds = %121
%134 = load i8, ptr %8, align 1
%135 = sext i8 %134 to i32
%136 = icmp eq i32 %135, 49
br i1 %136, label %137, label %138
137: ; preds = %133, %121
store i32 0, ptr %13, align 4
br label %138
138: ; preds = %137, %133
br label %139
139: ; preds = %210, %138
%140 = load i32, ptr %13, align 4
%141 = icmp eq i32 %140, 1
br i1 %141, label %142, label %148
142: ; preds = %139
%143 = load ptr, ptr %5, align 8
%144 = load i8, ptr %11, align 1
%145 = load i8, ptr %12, align 1
%146 = call i32 @is_occupied(ptr noundef %143, i8 noundef signext %144, i8 noundef signext %145)
%147 = icmp eq i32 %146, 0
br label %148
148: ; preds = %142, %139
%149 = phi i1 [ false, %139 ], [ %147, %142 ]
br i1 %149, label %150, label %211
150: ; preds = %148
%151 = load ptr, ptr %4, align 8
%152 = load ptr, ptr %5, align 8
%153 = load ptr, ptr %6, align 8
%154 = load i8, ptr %7, align 1
%155 = load i8, ptr %8, align 1
%156 = load i8, ptr %11, align 1
%157 = load i8, ptr %12, align 1
%158 = call ptr @store_move(ptr noundef %151, ptr noundef %152, i32 noundef 0, ptr noundef %153, i8 noundef signext %154, i8 noundef signext %155, i8 noundef signext %156, i8 noundef signext %157)
store ptr %158, ptr %4, align 8
%159 = load i32, ptr %9, align 4
%160 = add nsw i32 %159, 1
store i32 %160, ptr %9, align 4
%161 = load i8, ptr %11, align 1
%162 = sext i8 %161 to i32
%163 = icmp slt i32 %162, 104
br i1 %163, label %164, label %197
164: ; preds = %150
%165 = load i8, ptr %12, align 1
%166 = sext i8 %165 to i32
%167 = icmp sgt i32 %166, 49
br i1 %167, label %168, label %197
168: ; preds = %164
%169 = load ptr, ptr %5, align 8
%170 = load i8, ptr %11, align 1
%171 = sext i8 %170 to i32
%172 = add nsw i32 %171, 1
%173 = trunc i32 %172 to i8
%174 = load i8, ptr %12, align 1
%175 = sext i8 %174 to i32
%176 = sub nsw i32 %175, 1
%177 = trunc i32 %176 to i8
%178 = call i32 @is_occupied(ptr noundef %169, i8 noundef signext %173, i8 noundef signext %177)
%179 = icmp eq i32 %178, 1
br i1 %179, label %180, label %197
180: ; preds = %168
%181 = load ptr, ptr %4, align 8
%182 = load ptr, ptr %5, align 8
%183 = load ptr, ptr %6, align 8
%184 = load i8, ptr %7, align 1
%185 = load i8, ptr %8, align 1
%186 = load i8, ptr %11, align 1
%187 = sext i8 %186 to i32
%188 = add nsw i32 %187, 1
%189 = trunc i32 %188 to i8
%190 = load i8, ptr %12, align 1
%191 = sext i8 %190 to i32
%192 = sub nsw i32 %191, 1
%193 = trunc i32 %192 to i8
%194 = call ptr @store_move(ptr noundef %181, ptr noundef %182, i32 noundef 0, ptr noundef %183, i8 noundef signext %184, i8 noundef signext %185, i8 noundef signext %189, i8 noundef signext %193)
store ptr %194, ptr %4, align 8
%195 = load i32, ptr %9, align 4
%196 = add nsw i32 %195, 1
store i32 %196, ptr %9, align 4
store i32 0, ptr %13, align 4
br label %197
197: ; preds = %180, %168, %164, %150
%198 = load i8, ptr %11, align 1
%199 = add i8 %198, 1
store i8 %199, ptr %11, align 1
%200 = load i8, ptr %12, align 1
%201 = add i8 %200, -1
store i8 %201, ptr %12, align 1
%202 = load i8, ptr %11, align 1
%203 = sext i8 %202 to i32
%204 = icmp sgt i32 %203, 104
br i1 %204, label %209, label %205
205: ; preds = %197
%206 = load i8, ptr %12, align 1
%207 = sext i8 %206 to i32
%208 = icmp slt i32 %207, 49
br i1 %208, label %209, label %210
209: ; preds = %205, %197
store i32 0, ptr %13, align 4
br label %210
210: ; preds = %209, %205
br label %139, !llvm.loop !8
211: ; preds = %148
%212 = load i8, ptr %7, align 1
%213 = sext i8 %212 to i32
%214 = sub nsw i32 %213, 1
%215 = trunc i32 %214 to i8
store i8 %215, ptr %11, align 1
%216 = load i8, ptr %8, align 1
%217 = sext i8 %216 to i32
%218 = add nsw i32 %217, 1
%219 = trunc i32 %218 to i8
store i8 %219, ptr %12, align 1
store i32 1, ptr %13, align 4
%220 = load i8, ptr %7, align 1
%221 = sext i8 %220 to i32
%222 = icmp eq i32 %221, 97
br i1 %222, label %227, label %223
223: ; preds = %211
%224 = load i8, ptr %8, align 1
%225 = sext i8 %224 to i32
%226 = icmp eq i32 %225, 56
br i1 %226, label %227, label %228
227: ; preds = %223, %211
store i32 0, ptr %13, align 4
br label %228
228: ; preds = %227, %223
br label %229
229: ; preds = %300, %228
%230 = load i32, ptr %13, align 4
%231 = icmp eq i32 %230, 1
br i1 %231, label %232, label %238
232: ; preds = %229
%233 = load ptr, ptr %5, align 8
%234 = load i8, ptr %11, align 1
%235 = load i8, ptr %12, align 1
%236 = call i32 @is_occupied(ptr noundef %233, i8 noundef signext %234, i8 noundef signext %235)
%237 = icmp eq i32 %236, 0
br label %238
238: ; preds = %232, %229
%239 = phi i1 [ false, %229 ], [ %237, %232 ]
br i1 %239, label %240, label %301
240: ; preds = %238
%241 = load ptr, ptr %4, align 8
%242 = load ptr, ptr %5, align 8
%243 = load ptr, ptr %6, align 8
%244 = load i8, ptr %7, align 1
%245 = load i8, ptr %8, align 1
%246 = load i8, ptr %11, align 1
%247 = load i8, ptr %12, align 1
%248 = call ptr @store_move(ptr noundef %241, ptr noundef %242, i32 noundef 0, ptr noundef %243, i8 noundef signext %244, i8 noundef signext %245, i8 noundef signext %246, i8 noundef signext %247)
store ptr %248, ptr %4, align 8
%249 = load i32, ptr %9, align 4
%250 = add nsw i32 %249, 1
store i32 %250, ptr %9, align 4
%251 = load i8, ptr %11, align 1
%252 = sext i8 %251 to i32
%253 = icmp sgt i32 %252, 97
br i1 %253, label %254, label %287
254: ; preds = %240
%255 = load i8, ptr %12, align 1
%256 = sext i8 %255 to i32
%257 = icmp slt i32 %256, 56
br i1 %257, label %258, label %287
258: ; preds = %254
%259 = load ptr, ptr %5, align 8
%260 = load i8, ptr %11, align 1
%261 = sext i8 %260 to i32
%262 = sub nsw i32 %261, 1
%263 = trunc i32 %262 to i8
%264 = load i8, ptr %12, align 1
%265 = sext i8 %264 to i32
%266 = add nsw i32 %265, 1
%267 = trunc i32 %266 to i8
%268 = call i32 @is_occupied(ptr noundef %259, i8 noundef signext %263, i8 noundef signext %267)
%269 = icmp eq i32 %268, 1
br i1 %269, label %270, label %287
270: ; preds = %258
%271 = load ptr, ptr %4, align 8
%272 = load ptr, ptr %5, align 8
%273 = load ptr, ptr %6, align 8
%274 = load i8, ptr %7, align 1
%275 = load i8, ptr %8, align 1
%276 = load i8, ptr %11, align 1
%277 = sext i8 %276 to i32
%278 = sub nsw i32 %277, 1
%279 = trunc i32 %278 to i8
%280 = load i8, ptr %12, align 1
%281 = sext i8 %280 to i32
%282 = add nsw i32 %281, 1
%283 = trunc i32 %282 to i8
%284 = call ptr @store_move(ptr noundef %271, ptr noundef %272, i32 noundef 0, ptr noundef %273, i8 noundef signext %274, i8 noundef signext %275, i8 noundef signext %279, i8 noundef signext %283)
store ptr %284, ptr %4, align 8
%285 = load i32, ptr %9, align 4
%286 = add nsw i32 %285, 1
store i32 %286, ptr %9, align 4
store i32 0, ptr %13, align 4
br label %287
287: ; preds = %270, %258, %254, %240
%288 = load i8, ptr %11, align 1
%289 = add i8 %288, -1
store i8 %289, ptr %11, align 1
%290 = load i8, ptr %12, align 1
%291 = add i8 %290, 1
store i8 %291, ptr %12, align 1
%292 = load i8, ptr %11, align 1
%293 = sext i8 %292 to i32
%294 = icmp slt i32 %293, 97
br i1 %294, label %299, label %295
295: ; preds = %287
%296 = load i8, ptr %12, align 1
%297 = sext i8 %296 to i32
%298 = icmp sgt i32 %297, 56
br i1 %298, label %299, label %300
299: ; preds = %295, %287
store i32 0, ptr %13, align 4
br label %300
300: ; preds = %299, %295
br label %229, !llvm.loop !9
301: ; preds = %238
%302 = load i8, ptr %7, align 1
%303 = sext i8 %302 to i32
%304 = add nsw i32 %303, 1
%305 = trunc i32 %304 to i8
store i8 %305, ptr %11, align 1
%306 = load i8, ptr %8, align 1
%307 = sext i8 %306 to i32
%308 = add nsw i32 %307, 1
%309 = trunc i32 %308 to i8
store i8 %309, ptr %12, align 1
store i32 1, ptr %13, align 4
%310 = load i8, ptr %7, align 1
%311 = sext i8 %310 to i32
%312 = icmp eq i32 %311, 104
br i1 %312, label %317, label %313
313: ; preds = %301
%314 = load i8, ptr %8, align 1
%315 = sext i8 %314 to i32
%316 = icmp eq i32 %315, 56
br i1 %316, label %317, label %318
317: ; preds = %313, %301
store i32 0, ptr %13, align 4
br label %318
318: ; preds = %317, %313
br label %319
319: ; preds = %390, %318
%320 = load i32, ptr %13, align 4
%321 = icmp eq i32 %320, 1
br i1 %321, label %322, label %328
322: ; preds = %319
%323 = load ptr, ptr %5, align 8
%324 = load i8, ptr %11, align 1
%325 = load i8, ptr %12, align 1
%326 = call i32 @is_occupied(ptr noundef %323, i8 noundef signext %324, i8 noundef signext %325)
%327 = icmp eq i32 %326, 0
br label %328
328: ; preds = %322, %319
%329 = phi i1 [ false, %319 ], [ %327, %322 ]
br i1 %329, label %330, label %391
330: ; preds = %328
%331 = load ptr, ptr %4, align 8
%332 = load ptr, ptr %5, align 8
%333 = load ptr, ptr %6, align 8
%334 = load i8, ptr %7, align 1
%335 = load i8, ptr %8, align 1
%336 = load i8, ptr %11, align 1
%337 = load i8, ptr %12, align 1
%338 = call ptr @store_move(ptr noundef %331, ptr noundef %332, i32 noundef 0, ptr noundef %333, i8 noundef signext %334, i8 noundef signext %335, i8 noundef signext %336, i8 noundef signext %337)
store ptr %338, ptr %4, align 8
%339 = load i32, ptr %9, align 4
%340 = add nsw i32 %339, 1
store i32 %340, ptr %9, align 4
%341 = load i8, ptr %11, align 1
%342 = sext i8 %341 to i32
%343 = icmp slt i32 %342, 104
br i1 %343, label %344, label %377
344: ; preds = %330
%345 = load i8, ptr %12, align 1
%346 = sext i8 %345 to i32
%347 = icmp slt i32 %346, 56
br i1 %347, label %348, label %377
348: ; preds = %344
%349 = load ptr, ptr %5, align 8
%350 = load i8, ptr %11, align 1
%351 = sext i8 %350 to i32
%352 = add nsw i32 %351, 1
%353 = trunc i32 %352 to i8
%354 = load i8, ptr %12, align 1
%355 = sext i8 %354 to i32
%356 = add nsw i32 %355, 1
%357 = trunc i32 %356 to i8
%358 = call i32 @is_occupied(ptr noundef %349, i8 noundef signext %353, i8 noundef signext %357)
%359 = icmp eq i32 %358, 1
br i1 %359, label %360, label %377
360: ; preds = %348
%361 = load ptr, ptr %4, align 8
%362 = load ptr, ptr %5, align 8
%363 = load ptr, ptr %6, align 8
%364 = load i8, ptr %7, align 1
%365 = load i8, ptr %8, align 1
%366 = load i8, ptr %11, align 1
%367 = sext i8 %366 to i32
%368 = add nsw i32 %367, 1
%369 = trunc i32 %368 to i8
%370 = load i8, ptr %12, align 1
%371 = sext i8 %370 to i32
%372 = add nsw i32 %371, 1
%373 = trunc i32 %372 to i8
%374 = call ptr @store_move(ptr noundef %361, ptr noundef %362, i32 noundef 0, ptr noundef %363, i8 noundef signext %364, i8 noundef signext %365, i8 noundef signext %369, i8 noundef signext %373)
store ptr %374, ptr %4, align 8
%375 = load i32, ptr %9, align 4
%376 = add nsw i32 %375, 1
store i32 %376, ptr %9, align 4
store i32 0, ptr %13, align 4
br label %377
377: ; preds = %360, %348, %344, %330
%378 = load i8, ptr %11, align 1
%379 = add i8 %378, 1
store i8 %379, ptr %11, align 1
%380 = load i8, ptr %12, align 1
%381 = add i8 %380, 1
store i8 %381, ptr %12, align 1
%382 = load i8, ptr %11, align 1
%383 = sext i8 %382 to i32
%384 = icmp sgt i32 %383, 104
br i1 %384, label %389, label %385
385: ; preds = %377
%386 = load i8, ptr %12, align 1
%387 = sext i8 %386 to i32
%388 = icmp sgt i32 %387, 56
br i1 %388, label %389, label %390
389: ; preds = %385, %377
store i32 0, ptr %13, align 4
br label %390
390: ; preds = %389, %385
br label %319, !llvm.loop !10
391: ; preds = %328
br label %392
392: ; preds = %391, %23
br label %393
393: ; preds = %392
%394 = load i8, ptr %8, align 1
%395 = add i8 %394, 1
store i8 %395, ptr %8, align 1
br label %19, !llvm.loop !11
396: ; preds = %19
br label %397
397: ; preds = %396
%398 = load i8, ptr %7, align 1
%399 = add i8 %398, 1
store i8 %399, ptr %7, align 1
br label %14, !llvm.loop !12
400: ; preds = %14
%401 = load ptr, ptr %4, align 8
ret ptr %401
}
declare signext i8 @get_piece(ptr noundef, i8 noundef signext, i8 noundef signext) #1
declare i32 @is_occupied(ptr noundef, i8 noundef signext, i8 noundef signext) #1
declare ptr @store_move(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiav8owe_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_bishop_moves_black(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca i32, align 4
%10 = alloca i8, align 1
%11 = alloca i8, align 1
%12 = alloca i8, align 1
%13 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %9, align 4
store i8 97, ptr %7, align 1
%14 = load i8, ptr %7, align 1
%15 = sext i8 %14 to i32
%16 = icmp sle i32 %15, 104
br i1 %16, label %.lr.ph2, label %404
.lr.ph2: ; preds = %3
br label %17
17: ; preds = %.lr.ph2, %398
store i8 49, ptr %8, align 1
%18 = load i8, ptr %8, align 1
%19 = sext i8 %18 to i32
%20 = icmp sle i32 %19, 56
br i1 %20, label %.lr.ph, label %397
.lr.ph: ; preds = %17
br label %21
21: ; preds = %.lr.ph, %391
%22 = load ptr, ptr %5, align 8
%23 = load i8, ptr %7, align 1
%24 = load i8, ptr %8, align 1
%25 = call signext i8 @get_piece(ptr noundef %22, i8 noundef signext %23, i8 noundef signext %24)
store i8 %25, ptr %10, align 1
%26 = load i8, ptr %10, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 98
br i1 %28, label %29, label %390
29: ; preds = %21
%30 = load i8, ptr %7, align 1
%31 = sext i8 %30 to i32
%32 = sub nsw i32 %31, 1
%33 = trunc i32 %32 to i8
store i8 %33, ptr %11, align 1
%34 = load i8, ptr %8, align 1
%35 = sext i8 %34 to i32
%36 = sub nsw i32 %35, 1
%37 = trunc i32 %36 to i8
store i8 %37, ptr %12, align 1
store i32 1, ptr %13, align 4
%38 = load i8, ptr %7, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 97
br i1 %40, label %45, label %41
41: ; preds = %29
%42 = load i8, ptr %8, align 1
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %43, 49
br i1 %44, label %45, label %46
45: ; preds = %41, %29
store i32 0, ptr %13, align 4
br label %46
46: ; preds = %45, %41
br label %47
47: ; preds = %118, %46
%48 = load i32, ptr %13, align 4
%49 = icmp eq i32 %48, 1
br i1 %49, label %50, label %56
50: ; preds = %47
%51 = load ptr, ptr %5, align 8
%52 = load i8, ptr %11, align 1
%53 = load i8, ptr %12, align 1
%54 = call i32 @is_occupied(ptr noundef %51, i8 noundef signext %52, i8 noundef signext %53)
%55 = icmp eq i32 %54, 0
br label %56
56: ; preds = %50, %47
%57 = phi i1 [ false, %47 ], [ %55, %50 ]
br i1 %57, label %58, label %119
58: ; preds = %56
%59 = load ptr, ptr %4, align 8
%60 = load ptr, ptr %5, align 8
%61 = load ptr, ptr %6, align 8
%62 = load i8, ptr %7, align 1
%63 = load i8, ptr %8, align 1
%64 = load i8, ptr %11, align 1
%65 = load i8, ptr %12, align 1
%66 = call ptr @store_move(ptr noundef %59, ptr noundef %60, i32 noundef 0, ptr noundef %61, i8 noundef signext %62, i8 noundef signext %63, i8 noundef signext %64, i8 noundef signext %65)
store ptr %66, ptr %4, align 8
%67 = load i32, ptr %9, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %9, align 4
%69 = load i8, ptr %11, align 1
%70 = sext i8 %69 to i32
%71 = icmp sgt i32 %70, 97
br i1 %71, label %72, label %105
72: ; preds = %58
%73 = load i8, ptr %12, align 1
%74 = sext i8 %73 to i32
%75 = icmp sgt i32 %74, 49
br i1 %75, label %76, label %105
76: ; preds = %72
%77 = load ptr, ptr %5, align 8
%78 = load i8, ptr %11, align 1
%79 = sext i8 %78 to i32
%80 = sub nsw i32 %79, 1
%81 = trunc i32 %80 to i8
%82 = load i8, ptr %12, align 1
%83 = sext i8 %82 to i32
%84 = sub nsw i32 %83, 1
%85 = trunc i32 %84 to i8
%86 = call i32 @is_occupied(ptr noundef %77, i8 noundef signext %81, i8 noundef signext %85)
%87 = icmp eq i32 %86, 1
br i1 %87, label %88, label %105
88: ; preds = %76
%89 = load ptr, ptr %4, align 8
%90 = load ptr, ptr %5, align 8
%91 = load ptr, ptr %6, align 8
%92 = load i8, ptr %7, align 1
%93 = load i8, ptr %8, align 1
%94 = load i8, ptr %11, align 1
%95 = sext i8 %94 to i32
%96 = sub nsw i32 %95, 1
%97 = trunc i32 %96 to i8
%98 = load i8, ptr %12, align 1
%99 = sext i8 %98 to i32
%100 = sub nsw i32 %99, 1
%101 = trunc i32 %100 to i8
%102 = call ptr @store_move(ptr noundef %89, ptr noundef %90, i32 noundef 0, ptr noundef %91, i8 noundef signext %92, i8 noundef signext %93, i8 noundef signext %97, i8 noundef signext %101)
store ptr %102, ptr %4, align 8
%103 = load i32, ptr %9, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %9, align 4
store i32 0, ptr %13, align 4
br label %105
105: ; preds = %88, %76, %72, %58
%106 = load i8, ptr %11, align 1
%107 = add i8 %106, -1
store i8 %107, ptr %11, align 1
%108 = load i8, ptr %12, align 1
%109 = add i8 %108, -1
store i8 %109, ptr %12, align 1
%110 = load i8, ptr %11, align 1
%111 = sext i8 %110 to i32
%112 = icmp slt i32 %111, 97
br i1 %112, label %117, label %113
113: ; preds = %105
%114 = load i8, ptr %12, align 1
%115 = sext i8 %114 to i32
%116 = icmp slt i32 %115, 49
br i1 %116, label %117, label %118
117: ; preds = %113, %105
store i32 0, ptr %13, align 4
br label %118
118: ; preds = %117, %113
br label %47, !llvm.loop !6
119: ; preds = %56
%120 = load i8, ptr %7, align 1
%121 = sext i8 %120 to i32
%122 = add nsw i32 %121, 1
%123 = trunc i32 %122 to i8
store i8 %123, ptr %11, align 1
%124 = load i8, ptr %8, align 1
%125 = sext i8 %124 to i32
%126 = sub nsw i32 %125, 1
%127 = trunc i32 %126 to i8
store i8 %127, ptr %12, align 1
store i32 1, ptr %13, align 4
%128 = load i8, ptr %7, align 1
%129 = sext i8 %128 to i32
%130 = icmp eq i32 %129, 104
br i1 %130, label %135, label %131
131: ; preds = %119
%132 = load i8, ptr %8, align 1
%133 = sext i8 %132 to i32
%134 = icmp eq i32 %133, 49
br i1 %134, label %135, label %136
135: ; preds = %131, %119
store i32 0, ptr %13, align 4
br label %136
136: ; preds = %135, %131
br label %137
137: ; preds = %208, %136
%138 = load i32, ptr %13, align 4
%139 = icmp eq i32 %138, 1
br i1 %139, label %140, label %146
140: ; preds = %137
%141 = load ptr, ptr %5, align 8
%142 = load i8, ptr %11, align 1
%143 = load i8, ptr %12, align 1
%144 = call i32 @is_occupied(ptr noundef %141, i8 noundef signext %142, i8 noundef signext %143)
%145 = icmp eq i32 %144, 0
br label %146
146: ; preds = %140, %137
%147 = phi i1 [ false, %137 ], [ %145, %140 ]
br i1 %147, label %148, label %209
148: ; preds = %146
%149 = load ptr, ptr %4, align 8
%150 = load ptr, ptr %5, align 8
%151 = load ptr, ptr %6, align 8
%152 = load i8, ptr %7, align 1
%153 = load i8, ptr %8, align 1
%154 = load i8, ptr %11, align 1
%155 = load i8, ptr %12, align 1
%156 = call ptr @store_move(ptr noundef %149, ptr noundef %150, i32 noundef 0, ptr noundef %151, i8 noundef signext %152, i8 noundef signext %153, i8 noundef signext %154, i8 noundef signext %155)
store ptr %156, ptr %4, align 8
%157 = load i32, ptr %9, align 4
%158 = add nsw i32 %157, 1
store i32 %158, ptr %9, align 4
%159 = load i8, ptr %11, align 1
%160 = sext i8 %159 to i32
%161 = icmp slt i32 %160, 104
br i1 %161, label %162, label %195
162: ; preds = %148
%163 = load i8, ptr %12, align 1
%164 = sext i8 %163 to i32
%165 = icmp sgt i32 %164, 49
br i1 %165, label %166, label %195
166: ; preds = %162
%167 = load ptr, ptr %5, align 8
%168 = load i8, ptr %11, align 1
%169 = sext i8 %168 to i32
%170 = add nsw i32 %169, 1
%171 = trunc i32 %170 to i8
%172 = load i8, ptr %12, align 1
%173 = sext i8 %172 to i32
%174 = sub nsw i32 %173, 1
%175 = trunc i32 %174 to i8
%176 = call i32 @is_occupied(ptr noundef %167, i8 noundef signext %171, i8 noundef signext %175)
%177 = icmp eq i32 %176, 1
br i1 %177, label %178, label %195
178: ; preds = %166
%179 = load ptr, ptr %4, align 8
%180 = load ptr, ptr %5, align 8
%181 = load ptr, ptr %6, align 8
%182 = load i8, ptr %7, align 1
%183 = load i8, ptr %8, align 1
%184 = load i8, ptr %11, align 1
%185 = sext i8 %184 to i32
%186 = add nsw i32 %185, 1
%187 = trunc i32 %186 to i8
%188 = load i8, ptr %12, align 1
%189 = sext i8 %188 to i32
%190 = sub nsw i32 %189, 1
%191 = trunc i32 %190 to i8
%192 = call ptr @store_move(ptr noundef %179, ptr noundef %180, i32 noundef 0, ptr noundef %181, i8 noundef signext %182, i8 noundef signext %183, i8 noundef signext %187, i8 noundef signext %191)
store ptr %192, ptr %4, align 8
%193 = load i32, ptr %9, align 4
%194 = add nsw i32 %193, 1
store i32 %194, ptr %9, align 4
store i32 0, ptr %13, align 4
br label %195
195: ; preds = %178, %166, %162, %148
%196 = load i8, ptr %11, align 1
%197 = add i8 %196, 1
store i8 %197, ptr %11, align 1
%198 = load i8, ptr %12, align 1
%199 = add i8 %198, -1
store i8 %199, ptr %12, align 1
%200 = load i8, ptr %11, align 1
%201 = sext i8 %200 to i32
%202 = icmp sgt i32 %201, 104
br i1 %202, label %207, label %203
203: ; preds = %195
%204 = load i8, ptr %12, align 1
%205 = sext i8 %204 to i32
%206 = icmp slt i32 %205, 49
br i1 %206, label %207, label %208
207: ; preds = %203, %195
store i32 0, ptr %13, align 4
br label %208
208: ; preds = %207, %203
br label %137, !llvm.loop !8
209: ; preds = %146
%210 = load i8, ptr %7, align 1
%211 = sext i8 %210 to i32
%212 = sub nsw i32 %211, 1
%213 = trunc i32 %212 to i8
store i8 %213, ptr %11, align 1
%214 = load i8, ptr %8, align 1
%215 = sext i8 %214 to i32
%216 = add nsw i32 %215, 1
%217 = trunc i32 %216 to i8
store i8 %217, ptr %12, align 1
store i32 1, ptr %13, align 4
%218 = load i8, ptr %7, align 1
%219 = sext i8 %218 to i32
%220 = icmp eq i32 %219, 97
br i1 %220, label %225, label %221
221: ; preds = %209
%222 = load i8, ptr %8, align 1
%223 = sext i8 %222 to i32
%224 = icmp eq i32 %223, 56
br i1 %224, label %225, label %226
225: ; preds = %221, %209
store i32 0, ptr %13, align 4
br label %226
226: ; preds = %225, %221
br label %227
227: ; preds = %298, %226
%228 = load i32, ptr %13, align 4
%229 = icmp eq i32 %228, 1
br i1 %229, label %230, label %236
230: ; preds = %227
%231 = load ptr, ptr %5, align 8
%232 = load i8, ptr %11, align 1
%233 = load i8, ptr %12, align 1
%234 = call i32 @is_occupied(ptr noundef %231, i8 noundef signext %232, i8 noundef signext %233)
%235 = icmp eq i32 %234, 0
br label %236
236: ; preds = %230, %227
%237 = phi i1 [ false, %227 ], [ %235, %230 ]
br i1 %237, label %238, label %299
238: ; preds = %236
%239 = load ptr, ptr %4, align 8
%240 = load ptr, ptr %5, align 8
%241 = load ptr, ptr %6, align 8
%242 = load i8, ptr %7, align 1
%243 = load i8, ptr %8, align 1
%244 = load i8, ptr %11, align 1
%245 = load i8, ptr %12, align 1
%246 = call ptr @store_move(ptr noundef %239, ptr noundef %240, i32 noundef 0, ptr noundef %241, i8 noundef signext %242, i8 noundef signext %243, i8 noundef signext %244, i8 noundef signext %245)
store ptr %246, ptr %4, align 8
%247 = load i32, ptr %9, align 4
%248 = add nsw i32 %247, 1
store i32 %248, ptr %9, align 4
%249 = load i8, ptr %11, align 1
%250 = sext i8 %249 to i32
%251 = icmp sgt i32 %250, 97
br i1 %251, label %252, label %285
252: ; preds = %238
%253 = load i8, ptr %12, align 1
%254 = sext i8 %253 to i32
%255 = icmp slt i32 %254, 56
br i1 %255, label %256, label %285
256: ; preds = %252
%257 = load ptr, ptr %5, align 8
%258 = load i8, ptr %11, align 1
%259 = sext i8 %258 to i32
%260 = sub nsw i32 %259, 1
%261 = trunc i32 %260 to i8
%262 = load i8, ptr %12, align 1
%263 = sext i8 %262 to i32
%264 = add nsw i32 %263, 1
%265 = trunc i32 %264 to i8
%266 = call i32 @is_occupied(ptr noundef %257, i8 noundef signext %261, i8 noundef signext %265)
%267 = icmp eq i32 %266, 1
br i1 %267, label %268, label %285
268: ; preds = %256
%269 = load ptr, ptr %4, align 8
%270 = load ptr, ptr %5, align 8
%271 = load ptr, ptr %6, align 8
%272 = load i8, ptr %7, align 1
%273 = load i8, ptr %8, align 1
%274 = load i8, ptr %11, align 1
%275 = sext i8 %274 to i32
%276 = sub nsw i32 %275, 1
%277 = trunc i32 %276 to i8
%278 = load i8, ptr %12, align 1
%279 = sext i8 %278 to i32
%280 = add nsw i32 %279, 1
%281 = trunc i32 %280 to i8
%282 = call ptr @store_move(ptr noundef %269, ptr noundef %270, i32 noundef 0, ptr noundef %271, i8 noundef signext %272, i8 noundef signext %273, i8 noundef signext %277, i8 noundef signext %281)
store ptr %282, ptr %4, align 8
%283 = load i32, ptr %9, align 4
%284 = add nsw i32 %283, 1
store i32 %284, ptr %9, align 4
store i32 0, ptr %13, align 4
br label %285
285: ; preds = %268, %256, %252, %238
%286 = load i8, ptr %11, align 1
%287 = add i8 %286, -1
store i8 %287, ptr %11, align 1
%288 = load i8, ptr %12, align 1
%289 = add i8 %288, 1
store i8 %289, ptr %12, align 1
%290 = load i8, ptr %11, align 1
%291 = sext i8 %290 to i32
%292 = icmp slt i32 %291, 97
br i1 %292, label %297, label %293
293: ; preds = %285
%294 = load i8, ptr %12, align 1
%295 = sext i8 %294 to i32
%296 = icmp sgt i32 %295, 56
br i1 %296, label %297, label %298
297: ; preds = %293, %285
store i32 0, ptr %13, align 4
br label %298
298: ; preds = %297, %293
br label %227, !llvm.loop !9
299: ; preds = %236
%300 = load i8, ptr %7, align 1
%301 = sext i8 %300 to i32
%302 = add nsw i32 %301, 1
%303 = trunc i32 %302 to i8
store i8 %303, ptr %11, align 1
%304 = load i8, ptr %8, align 1
%305 = sext i8 %304 to i32
%306 = add nsw i32 %305, 1
%307 = trunc i32 %306 to i8
store i8 %307, ptr %12, align 1
store i32 1, ptr %13, align 4
%308 = load i8, ptr %7, align 1
%309 = sext i8 %308 to i32
%310 = icmp eq i32 %309, 104
br i1 %310, label %315, label %311
311: ; preds = %299
%312 = load i8, ptr %8, align 1
%313 = sext i8 %312 to i32
%314 = icmp eq i32 %313, 56
br i1 %314, label %315, label %316
315: ; preds = %311, %299
store i32 0, ptr %13, align 4
br label %316
316: ; preds = %315, %311
br label %317
317: ; preds = %388, %316
%318 = load i32, ptr %13, align 4
%319 = icmp eq i32 %318, 1
br i1 %319, label %320, label %326
320: ; preds = %317
%321 = load ptr, ptr %5, align 8
%322 = load i8, ptr %11, align 1
%323 = load i8, ptr %12, align 1
%324 = call i32 @is_occupied(ptr noundef %321, i8 noundef signext %322, i8 noundef signext %323)
%325 = icmp eq i32 %324, 0
br label %326
326: ; preds = %320, %317
%327 = phi i1 [ false, %317 ], [ %325, %320 ]
br i1 %327, label %328, label %389
328: ; preds = %326
%329 = load ptr, ptr %4, align 8
%330 = load ptr, ptr %5, align 8
%331 = load ptr, ptr %6, align 8
%332 = load i8, ptr %7, align 1
%333 = load i8, ptr %8, align 1
%334 = load i8, ptr %11, align 1
%335 = load i8, ptr %12, align 1
%336 = call ptr @store_move(ptr noundef %329, ptr noundef %330, i32 noundef 0, ptr noundef %331, i8 noundef signext %332, i8 noundef signext %333, i8 noundef signext %334, i8 noundef signext %335)
store ptr %336, ptr %4, align 8
%337 = load i32, ptr %9, align 4
%338 = add nsw i32 %337, 1
store i32 %338, ptr %9, align 4
%339 = load i8, ptr %11, align 1
%340 = sext i8 %339 to i32
%341 = icmp slt i32 %340, 104
br i1 %341, label %342, label %375
342: ; preds = %328
%343 = load i8, ptr %12, align 1
%344 = sext i8 %343 to i32
%345 = icmp slt i32 %344, 56
br i1 %345, label %346, label %375
346: ; preds = %342
%347 = load ptr, ptr %5, align 8
%348 = load i8, ptr %11, align 1
%349 = sext i8 %348 to i32
%350 = add nsw i32 %349, 1
%351 = trunc i32 %350 to i8
%352 = load i8, ptr %12, align 1
%353 = sext i8 %352 to i32
%354 = add nsw i32 %353, 1
%355 = trunc i32 %354 to i8
%356 = call i32 @is_occupied(ptr noundef %347, i8 noundef signext %351, i8 noundef signext %355)
%357 = icmp eq i32 %356, 1
br i1 %357, label %358, label %375
358: ; preds = %346
%359 = load ptr, ptr %4, align 8
%360 = load ptr, ptr %5, align 8
%361 = load ptr, ptr %6, align 8
%362 = load i8, ptr %7, align 1
%363 = load i8, ptr %8, align 1
%364 = load i8, ptr %11, align 1
%365 = sext i8 %364 to i32
%366 = add nsw i32 %365, 1
%367 = trunc i32 %366 to i8
%368 = load i8, ptr %12, align 1
%369 = sext i8 %368 to i32
%370 = add nsw i32 %369, 1
%371 = trunc i32 %370 to i8
%372 = call ptr @store_move(ptr noundef %359, ptr noundef %360, i32 noundef 0, ptr noundef %361, i8 noundef signext %362, i8 noundef signext %363, i8 noundef signext %367, i8 noundef signext %371)
store ptr %372, ptr %4, align 8
%373 = load i32, ptr %9, align 4
%374 = add nsw i32 %373, 1
store i32 %374, ptr %9, align 4
store i32 0, ptr %13, align 4
br label %375
375: ; preds = %358, %346, %342, %328
%376 = load i8, ptr %11, align 1
%377 = add i8 %376, 1
store i8 %377, ptr %11, align 1
%378 = load i8, ptr %12, align 1
%379 = add i8 %378, 1
store i8 %379, ptr %12, align 1
%380 = load i8, ptr %11, align 1
%381 = sext i8 %380 to i32
%382 = icmp sgt i32 %381, 104
br i1 %382, label %387, label %383
383: ; preds = %375
%384 = load i8, ptr %12, align 1
%385 = sext i8 %384 to i32
%386 = icmp sgt i32 %385, 56
br i1 %386, label %387, label %388
387: ; preds = %383, %375
store i32 0, ptr %13, align 4
br label %388
388: ; preds = %387, %383
br label %317, !llvm.loop !10
389: ; preds = %326
br label %390
390: ; preds = %389, %21
br label %391
391: ; preds = %390
%392 = load i8, ptr %8, align 1
%393 = add i8 %392, 1
store i8 %393, ptr %8, align 1
%394 = load i8, ptr %8, align 1
%395 = sext i8 %394 to i32
%396 = icmp sle i32 %395, 56
br i1 %396, label %21, label %._crit_edge, !llvm.loop !11
._crit_edge: ; preds = %391
br label %397
397: ; preds = %._crit_edge, %17
br label %398
398: ; preds = %397
%399 = load i8, ptr %7, align 1
%400 = add i8 %399, 1
store i8 %400, ptr %7, align 1
%401 = load i8, ptr %7, align 1
%402 = sext i8 %401 to i32
%403 = icmp sle i32 %402, 104
br i1 %403, label %17, label %._crit_edge3, !llvm.loop !12
._crit_edge3: ; preds = %398
br label %404
404: ; preds = %._crit_edge3, %3
%405 = load ptr, ptr %4, align 8
ret ptr %405
}
declare signext i8 @get_piece(ptr noundef, i8 noundef signext, i8 noundef signext) #1
declare i32 @is_occupied(ptr noundef, i8 noundef signext, i8 noundef signext) #1
declare ptr @store_move(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmplswsqa9k.c'
source_filename = "/tmp/tmplswsqa9k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: alwaysinline nobuiltin nocallback nounwind sspstrong uwtable
declare double @lgamma(double noundef) #0
declare double @lgamma_r(double noundef, ptr noundef) #1
attributes #0 = { alwaysinline nobuiltin nocallback nounwind sspstrong uwtable "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplswsqa9k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: alwaysinline nobuiltin nocallback nounwind sspstrong uwtable
declare double @lgamma(double noundef) #0
declare double @lgamma_r(double noundef, ptr noundef) #1
attributes #0 = { alwaysinline nobuiltin nocallback nounwind sspstrong uwtable "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp16sz8r8o.c'
source_filename = "/tmp/tmp16sz8r8o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.sockaddr, align 4
%3 = alloca i32, align 4
store i32 4, ptr %1, align 4
store i32 4, ptr %3, align 4
%4 = load i32, ptr %1, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 @bind(i32 noundef %4, ptr noundef %2, i32 noundef %5)
ret i32 %6
}
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp16sz8r8o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.sockaddr, align 4
%3 = alloca i32, align 4
store i32 4, ptr %1, align 4
store i32 4, ptr %3, align 4
%4 = load i32, ptr %1, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 @bind(i32 noundef %4, ptr noundef %2, i32 noundef %5)
ret i32 %6
}
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpoa_gdcyr.c'
source_filename = "/tmp/tmpoa_gdcyr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoa_gdcyr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxvig3mrg.c'
source_filename = "/tmp/tmpxvig3mrg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%lu\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x i64], align 8
%7 = alloca [1 x i64], align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
br label %19
19: ; preds = %22, %18
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %20, 1
br i1 %21, label %22, label %36
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %23, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i64 @strtoul(ptr noundef %28, i32 noundef 0, i32 noundef 10)
store i64 %29, ptr %9, align 8
%30 = load i64, ptr %9, align 8
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [1 x i64], ptr %6, i64 0, i64 %32
store i64 %30, ptr %33, align 8
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
br label %19, !llvm.loop !6
36: ; preds = %19
%37 = getelementptr inbounds [1 x i64], ptr %6, i64 0, i64 0
%38 = getelementptr inbounds [1 x i64], ptr %7, i64 0, i64 0
%39 = call i32 @RandomFunc(ptr noundef %37, ptr noundef %38)
%40 = getelementptr inbounds [1 x i64], ptr %7, i64 0, i64 0
%41 = load i64, ptr %40, align 8
%42 = icmp eq i64 %41, 2796453894361272001
br i1 %42, label %43, label %45
43: ; preds = %36
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %46
45: ; preds = %36
br label %46
46: ; preds = %45, %43
store i32 0, ptr %10, align 4
br label %47
47: ; preds = %50, %46
%48 = load i32, ptr %10, align 4
%49 = icmp slt i32 %48, 1
br i1 %49, label %50, label %58
50: ; preds = %47
%51 = load i32, ptr %10, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [1 x i64], ptr %7, i64 0, i64 %52
%54 = load i64, ptr %53, align 8
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %54)
%56 = load i32, ptr %10, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %10, align 4
br label %47, !llvm.loop !8
58: ; preds = %47
%59 = load i32, ptr %3, align 4
ret i32 %59
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxvig3mrg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%lu\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x i64], align 8
%7 = alloca [1 x i64], align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %19, 1
br i1 %20, label %.lr.ph, label %37
.lr.ph: ; preds = %18
br label %21
21: ; preds = %.lr.ph, %21
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %22, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strtoul(ptr noundef %27, i32 noundef 0, i32 noundef 10)
store i64 %28, ptr %9, align 8
%29 = load i64, ptr %9, align 8
%30 = load i32, ptr %8, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [1 x i64], ptr %6, i64 0, i64 %31
store i64 %29, ptr %32, align 8
%33 = load i32, ptr %8, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %8, align 4
%35 = load i32, ptr %8, align 4
%36 = icmp slt i32 %35, 1
br i1 %36, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %37
37: ; preds = %._crit_edge, %18
%38 = getelementptr inbounds [1 x i64], ptr %6, i64 0, i64 0
%39 = getelementptr inbounds [1 x i64], ptr %7, i64 0, i64 0
%40 = call i32 @RandomFunc(ptr noundef %38, ptr noundef %39)
%41 = getelementptr inbounds [1 x i64], ptr %7, i64 0, i64 0
%42 = load i64, ptr %41, align 8
%43 = icmp eq i64 %42, 2796453894361272001
br i1 %43, label %44, label %46
44: ; preds = %37
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %47
46: ; preds = %37
br label %47
47: ; preds = %46, %44
store i32 0, ptr %10, align 4
%48 = load i32, ptr %10, align 4
%49 = icmp slt i32 %48, 1
br i1 %49, label %.lr.ph2, label %60
.lr.ph2: ; preds = %47
br label %50
50: ; preds = %.lr.ph2, %50
%51 = load i32, ptr %10, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [1 x i64], ptr %7, i64 0, i64 %52
%54 = load i64, ptr %53, align 8
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %54)
%56 = load i32, ptr %10, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %10, align 4
%58 = load i32, ptr %10, align 4
%59 = icmp slt i32 %58, 1
br i1 %59, label %50, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %50
br label %60
60: ; preds = %._crit_edge3, %47
%61 = load i32, ptr %3, align 4
ret i32 %61
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpmftvny9y.c'
source_filename = "/tmp/tmpmftvny9y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@UINT_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @vp8_sad16x8x8_c(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%11 = load ptr, ptr %6, align 8
%12 = load i32, ptr %7, align 4
%13 = load ptr, ptr %8, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 0
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr @UINT_MAX, align 4
%17 = call i64 @vp8_sad16x8_c(ptr noundef %11, i32 noundef %12, ptr noundef %14, i32 noundef %15, i32 noundef %16)
%18 = trunc i64 %17 to i16
%19 = load ptr, ptr %10, align 8
%20 = getelementptr inbounds i16, ptr %19, i64 0
store i16 %18, ptr %20, align 2
%21 = load ptr, ptr %6, align 8
%22 = load i32, ptr %7, align 4
%23 = load ptr, ptr %8, align 8
%24 = getelementptr inbounds i8, ptr %23, i64 1
%25 = load i32, ptr %9, align 4
%26 = load i32, ptr @UINT_MAX, align 4
%27 = call i64 @vp8_sad16x8_c(ptr noundef %21, i32 noundef %22, ptr noundef %24, i32 noundef %25, i32 noundef %26)
%28 = trunc i64 %27 to i16
%29 = load ptr, ptr %10, align 8
%30 = getelementptr inbounds i16, ptr %29, i64 1
store i16 %28, ptr %30, align 2
%31 = load ptr, ptr %6, align 8
%32 = load i32, ptr %7, align 4
%33 = load ptr, ptr %8, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 2
%35 = load i32, ptr %9, align 4
%36 = load i32, ptr @UINT_MAX, align 4
%37 = call i64 @vp8_sad16x8_c(ptr noundef %31, i32 noundef %32, ptr noundef %34, i32 noundef %35, i32 noundef %36)
%38 = trunc i64 %37 to i16
%39 = load ptr, ptr %10, align 8
%40 = getelementptr inbounds i16, ptr %39, i64 2
store i16 %38, ptr %40, align 2
%41 = load ptr, ptr %6, align 8
%42 = load i32, ptr %7, align 4
%43 = load ptr, ptr %8, align 8
%44 = getelementptr inbounds i8, ptr %43, i64 3
%45 = load i32, ptr %9, align 4
%46 = load i32, ptr @UINT_MAX, align 4
%47 = call i64 @vp8_sad16x8_c(ptr noundef %41, i32 noundef %42, ptr noundef %44, i32 noundef %45, i32 noundef %46)
%48 = trunc i64 %47 to i16
%49 = load ptr, ptr %10, align 8
%50 = getelementptr inbounds i16, ptr %49, i64 3
store i16 %48, ptr %50, align 2
%51 = load ptr, ptr %6, align 8
%52 = load i32, ptr %7, align 4
%53 = load ptr, ptr %8, align 8
%54 = getelementptr inbounds i8, ptr %53, i64 4
%55 = load i32, ptr %9, align 4
%56 = load i32, ptr @UINT_MAX, align 4
%57 = call i64 @vp8_sad16x8_c(ptr noundef %51, i32 noundef %52, ptr noundef %54, i32 noundef %55, i32 noundef %56)
%58 = trunc i64 %57 to i16
%59 = load ptr, ptr %10, align 8
%60 = getelementptr inbounds i16, ptr %59, i64 4
store i16 %58, ptr %60, align 2
%61 = load ptr, ptr %6, align 8
%62 = load i32, ptr %7, align 4
%63 = load ptr, ptr %8, align 8
%64 = getelementptr inbounds i8, ptr %63, i64 5
%65 = load i32, ptr %9, align 4
%66 = load i32, ptr @UINT_MAX, align 4
%67 = call i64 @vp8_sad16x8_c(ptr noundef %61, i32 noundef %62, ptr noundef %64, i32 noundef %65, i32 noundef %66)
%68 = trunc i64 %67 to i16
%69 = load ptr, ptr %10, align 8
%70 = getelementptr inbounds i16, ptr %69, i64 5
store i16 %68, ptr %70, align 2
%71 = load ptr, ptr %6, align 8
%72 = load i32, ptr %7, align 4
%73 = load ptr, ptr %8, align 8
%74 = getelementptr inbounds i8, ptr %73, i64 6
%75 = load i32, ptr %9, align 4
%76 = load i32, ptr @UINT_MAX, align 4
%77 = call i64 @vp8_sad16x8_c(ptr noundef %71, i32 noundef %72, ptr noundef %74, i32 noundef %75, i32 noundef %76)
%78 = trunc i64 %77 to i16
%79 = load ptr, ptr %10, align 8
%80 = getelementptr inbounds i16, ptr %79, i64 6
store i16 %78, ptr %80, align 2
%81 = load ptr, ptr %6, align 8
%82 = load i32, ptr %7, align 4
%83 = load ptr, ptr %8, align 8
%84 = getelementptr inbounds i8, ptr %83, i64 7
%85 = load i32, ptr %9, align 4
%86 = load i32, ptr @UINT_MAX, align 4
%87 = call i64 @vp8_sad16x8_c(ptr noundef %81, i32 noundef %82, ptr noundef %84, i32 noundef %85, i32 noundef %86)
%88 = trunc i64 %87 to i16
%89 = load ptr, ptr %10, align 8
%90 = getelementptr inbounds i16, ptr %89, i64 7
store i16 %88, ptr %90, align 2
ret void
}
declare i64 @vp8_sad16x8_c(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmftvny9y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@UINT_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @vp8_sad16x8x8_c(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%11 = load ptr, ptr %6, align 8
%12 = load i32, ptr %7, align 4
%13 = load ptr, ptr %8, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 0
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr @UINT_MAX, align 4
%17 = call i64 @vp8_sad16x8_c(ptr noundef %11, i32 noundef %12, ptr noundef %14, i32 noundef %15, i32 noundef %16)
%18 = trunc i64 %17 to i16
%19 = load ptr, ptr %10, align 8
%20 = getelementptr inbounds i16, ptr %19, i64 0
store i16 %18, ptr %20, align 2
%21 = load ptr, ptr %6, align 8
%22 = load i32, ptr %7, align 4
%23 = load ptr, ptr %8, align 8
%24 = getelementptr inbounds i8, ptr %23, i64 1
%25 = load i32, ptr %9, align 4
%26 = load i32, ptr @UINT_MAX, align 4
%27 = call i64 @vp8_sad16x8_c(ptr noundef %21, i32 noundef %22, ptr noundef %24, i32 noundef %25, i32 noundef %26)
%28 = trunc i64 %27 to i16
%29 = load ptr, ptr %10, align 8
%30 = getelementptr inbounds i16, ptr %29, i64 1
store i16 %28, ptr %30, align 2
%31 = load ptr, ptr %6, align 8
%32 = load i32, ptr %7, align 4
%33 = load ptr, ptr %8, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 2
%35 = load i32, ptr %9, align 4
%36 = load i32, ptr @UINT_MAX, align 4
%37 = call i64 @vp8_sad16x8_c(ptr noundef %31, i32 noundef %32, ptr noundef %34, i32 noundef %35, i32 noundef %36)
%38 = trunc i64 %37 to i16
%39 = load ptr, ptr %10, align 8
%40 = getelementptr inbounds i16, ptr %39, i64 2
store i16 %38, ptr %40, align 2
%41 = load ptr, ptr %6, align 8
%42 = load i32, ptr %7, align 4
%43 = load ptr, ptr %8, align 8
%44 = getelementptr inbounds i8, ptr %43, i64 3
%45 = load i32, ptr %9, align 4
%46 = load i32, ptr @UINT_MAX, align 4
%47 = call i64 @vp8_sad16x8_c(ptr noundef %41, i32 noundef %42, ptr noundef %44, i32 noundef %45, i32 noundef %46)
%48 = trunc i64 %47 to i16
%49 = load ptr, ptr %10, align 8
%50 = getelementptr inbounds i16, ptr %49, i64 3
store i16 %48, ptr %50, align 2
%51 = load ptr, ptr %6, align 8
%52 = load i32, ptr %7, align 4
%53 = load ptr, ptr %8, align 8
%54 = getelementptr inbounds i8, ptr %53, i64 4
%55 = load i32, ptr %9, align 4
%56 = load i32, ptr @UINT_MAX, align 4
%57 = call i64 @vp8_sad16x8_c(ptr noundef %51, i32 noundef %52, ptr noundef %54, i32 noundef %55, i32 noundef %56)
%58 = trunc i64 %57 to i16
%59 = load ptr, ptr %10, align 8
%60 = getelementptr inbounds i16, ptr %59, i64 4
store i16 %58, ptr %60, align 2
%61 = load ptr, ptr %6, align 8
%62 = load i32, ptr %7, align 4
%63 = load ptr, ptr %8, align 8
%64 = getelementptr inbounds i8, ptr %63, i64 5
%65 = load i32, ptr %9, align 4
%66 = load i32, ptr @UINT_MAX, align 4
%67 = call i64 @vp8_sad16x8_c(ptr noundef %61, i32 noundef %62, ptr noundef %64, i32 noundef %65, i32 noundef %66)
%68 = trunc i64 %67 to i16
%69 = load ptr, ptr %10, align 8
%70 = getelementptr inbounds i16, ptr %69, i64 5
store i16 %68, ptr %70, align 2
%71 = load ptr, ptr %6, align 8
%72 = load i32, ptr %7, align 4
%73 = load ptr, ptr %8, align 8
%74 = getelementptr inbounds i8, ptr %73, i64 6
%75 = load i32, ptr %9, align 4
%76 = load i32, ptr @UINT_MAX, align 4
%77 = call i64 @vp8_sad16x8_c(ptr noundef %71, i32 noundef %72, ptr noundef %74, i32 noundef %75, i32 noundef %76)
%78 = trunc i64 %77 to i16
%79 = load ptr, ptr %10, align 8
%80 = getelementptr inbounds i16, ptr %79, i64 6
store i16 %78, ptr %80, align 2
%81 = load ptr, ptr %6, align 8
%82 = load i32, ptr %7, align 4
%83 = load ptr, ptr %8, align 8
%84 = getelementptr inbounds i8, ptr %83, i64 7
%85 = load i32, ptr %9, align 4
%86 = load i32, ptr @UINT_MAX, align 4
%87 = call i64 @vp8_sad16x8_c(ptr noundef %81, i32 noundef %82, ptr noundef %84, i32 noundef %85, i32 noundef %86)
%88 = trunc i64 %87 to i16
%89 = load ptr, ptr %10, align 8
%90 = getelementptr inbounds i16, ptr %89, i64 7
store i16 %88, ptr %90, align 2
ret void
}
declare i64 @vp8_sad16x8_c(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl1yexgoz.c'
source_filename = "/tmp/tmpl1yexgoz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @core_cpu_i_op_cz(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @core_cpu_i__call(ptr noundef %5, ptr noundef %6, i32 noundef 1)
ret void
}
declare i32 @core_cpu_i__call(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl1yexgoz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @core_cpu_i_op_cz(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @core_cpu_i__call(ptr noundef %5, ptr noundef %6, i32 noundef 1)
ret void
}
declare i32 @core_cpu_i__call(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzh7krh19.c'
source_filename = "/tmp/tmpzh7krh19.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzh7krh19.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpn3khzt4b.c'
source_filename = "/tmp/tmpn3khzt4b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@layer4_write._error = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @layer4_write(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i8, align 1
%7 = alloca i32, align 4
%8 = alloca [4 x i8], align 1
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%9 = load i32, ptr @layer4_write._error, align 4
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 -1, ptr @layer4_write._error, align 4
store i32 -1, ptr %3, align 4
br label %47
12: ; preds = %2
store i8 0, ptr %6, align 1
store i32 0, ptr %7, align 4
br label %13
13: ; preds = %28, %12
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %31
17: ; preds = %13
%18 = load ptr, ptr %4, align 8
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = load i8, ptr %6, align 1
%25 = sext i8 %24 to i32
%26 = add nsw i32 %25, %23
%27 = trunc i32 %26 to i8
store i8 %27, ptr %6, align 1
br label %28
28: ; preds = %17
%29 = load i32, ptr %7, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %7, align 4
br label %13, !llvm.loop !6
31: ; preds = %13
%32 = load i8, ptr %6, align 1
%33 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
%34 = call i32 @value_to_char_array(i8 noundef signext %32, ptr noundef %33)
%35 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
%36 = call i32 @layer3_write(ptr noundef %35, i32 noundef 4)
%37 = icmp eq i32 %36, -1
br i1 %37, label %38, label %39
38: ; preds = %31
store i32 -1, ptr @layer4_write._error, align 4
store i32 -1, ptr %3, align 4
br label %47
39: ; preds = %31
%40 = load ptr, ptr %4, align 8
%41 = load i32, ptr %5, align 4
%42 = call i32 @layer3_write(ptr noundef %40, i32 noundef %41)
%43 = icmp eq i32 %42, -1
br i1 %43, label %44, label %45
44: ; preds = %39
store i32 -1, ptr @layer4_write._error, align 4
store i32 -1, ptr %3, align 4
br label %47
45: ; preds = %39
%46 = load i32, ptr %5, align 4
store i32 %46, ptr %3, align 4
br label %47
47: ; preds = %45, %44, %38, %11
%48 = load i32, ptr %3, align 4
ret i32 %48
}
declare i32 @value_to_char_array(i8 noundef signext, ptr noundef) #1
declare i32 @layer3_write(ptr noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn3khzt4b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@layer4_write._error = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @layer4_write(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i8, align 1
%7 = alloca i32, align 4
%8 = alloca [4 x i8], align 1
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%9 = load i32, ptr @layer4_write._error, align 4
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 -1, ptr @layer4_write._error, align 4
store i32 -1, ptr %3, align 4
br label %49
12: ; preds = %2
store i8 0, ptr %6, align 1
store i32 0, ptr %7, align 4
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %33
.lr.ph: ; preds = %12
br label %16
16: ; preds = %.lr.ph, %27
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %7, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = load i8, ptr %6, align 1
%24 = sext i8 %23 to i32
%25 = add nsw i32 %24, %22
%26 = trunc i32 %25 to i8
store i8 %26, ptr %6, align 1
br label %27
27: ; preds = %16
%28 = load i32, ptr %7, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %7, align 4
%30 = load i32, ptr %7, align 4
%31 = load i32, ptr %5, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %33
33: ; preds = %._crit_edge, %12
%34 = load i8, ptr %6, align 1
%35 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
%36 = call i32 @value_to_char_array(i8 noundef signext %34, ptr noundef %35)
%37 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
%38 = call i32 @layer3_write(ptr noundef %37, i32 noundef 4)
%39 = icmp eq i32 %38, -1
br i1 %39, label %40, label %41
40: ; preds = %33
store i32 -1, ptr @layer4_write._error, align 4
store i32 -1, ptr %3, align 4
br label %49
41: ; preds = %33
%42 = load ptr, ptr %4, align 8
%43 = load i32, ptr %5, align 4
%44 = call i32 @layer3_write(ptr noundef %42, i32 noundef %43)
%45 = icmp eq i32 %44, -1
br i1 %45, label %46, label %47
46: ; preds = %41
store i32 -1, ptr @layer4_write._error, align 4
store i32 -1, ptr %3, align 4
br label %49
47: ; preds = %41
%48 = load i32, ptr %5, align 4
store i32 %48, ptr %3, align 4
br label %49
49: ; preds = %47, %46, %40, %11
%50 = load i32, ptr %3, align 4
ret i32 %50
}
declare i32 @value_to_char_array(i8 noundef signext, ptr noundef) #1
declare i32 @layer3_write(ptr noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpjss4tjsa.c'
source_filename = "/tmp/tmpjss4tjsa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"/sys/block/%s/dev\00", align 1
@F_OK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @__rtinfo_internal_disk_isblock(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [512 x i8], align 16
store ptr %0, ptr %2, align 8
%4 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
%5 = load ptr, ptr %2, align 8
%6 = call i32 @snprintf(ptr noundef %4, i32 noundef 512, ptr noundef @.str, ptr noundef %5)
%7 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
%8 = load i32, ptr @F_OK, align 4
%9 = call i32 @access(ptr noundef %7, i32 noundef %8)
%10 = icmp ne i32 %9, 0
%11 = xor i1 %10, true
%12 = zext i1 %11 to i32
ret i32 %12
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @access(ptr noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjss4tjsa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"/sys/block/%s/dev\00", align 1
@F_OK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @__rtinfo_internal_disk_isblock(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [512 x i8], align 16
store ptr %0, ptr %2, align 8
%4 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
%5 = load ptr, ptr %2, align 8
%6 = call i32 @snprintf(ptr noundef %4, i32 noundef 512, ptr noundef @.str, ptr noundef %5)
%7 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
%8 = load i32, ptr @F_OK, align 4
%9 = call i32 @access(ptr noundef %7, i32 noundef %8)
%10 = icmp ne i32 %9, 0
%11 = xor i1 %10, true
%12 = zext i1 %11 to i32
ret i32 %12
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @access(ptr noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgqu4oc36.c'
source_filename = "/tmp/tmpgqu4oc36.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
store i32 2, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp sge i32 %4, %5
%7 = zext i1 %6 to i32
%8 = call i32 @__VERIFIER_assert(i32 noundef %7)
ret i32 0
}
declare i32 @__VERIFIER_assert(i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgqu4oc36.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
store i32 2, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp sge i32 %4, %5
%7 = zext i1 %6 to i32
%8 = call i32 @__VERIFIER_assert(i32 noundef %7)
ret i32 0
}
declare i32 @__VERIFIER_assert(i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsv8uz0pw.c'
source_filename = "/tmp/tmpsv8uz0pw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"a=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @compound_test() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 10, ptr %1, align 4
%4 = load i32, ptr %1, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
store i32 20, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %6)
store i32 30, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
%10 = load i32, ptr %2, align 4
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %10)
%12 = load i32, ptr %1, align 4
%13 = call i32 @printf(ptr noundef @.str, i32 noundef %12)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsv8uz0pw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"a=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @compound_test() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 10, ptr %1, align 4
%4 = load i32, ptr %1, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
store i32 20, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %6)
store i32 30, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
%10 = load i32, ptr %2, align 4
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %10)
%12 = load i32, ptr %1, align 4
%13 = call i32 @printf(ptr noundef @.str, i32 noundef %12)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcj13pzwz.c'
source_filename = "/tmp/tmpcj13pzwz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @uri_decode(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca [3 x i8], align 1
%8 = alloca i8, align 1
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i64 0, ptr %4, align 8
store i64 0, ptr %5, align 8
store ptr null, ptr %6, align 8
store i8 0, ptr %8, align 1
%9 = load ptr, ptr %2, align 8
%10 = call i64 @strlen(ptr noundef %9)
store i64 %10, ptr %5, align 8
%11 = load i64, ptr %5, align 8
%12 = add i64 %11, 1
%13 = call i64 @malloc(i64 noundef %12)
%14 = inttoptr i64 %13 to ptr
store ptr %14, ptr %6, align 8
br label %15
15: ; preds = %57, %1
%16 = load i64, ptr %5, align 8
%17 = add i64 %16, -1
store i64 %17, ptr %5, align 8
%18 = icmp ne i64 %16, 0
br i1 %18, label %19, label %58
19: ; preds = %15
%20 = load ptr, ptr %2, align 8
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %3, align 4
%23 = sext i32 %21 to i64
%24 = getelementptr inbounds i8, ptr %20, i64 %23
%25 = load i8, ptr %24, align 1
store i8 %25, ptr %8, align 1
%26 = load i8, ptr %8, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 37, %27
br i1 %28, label %29, label %51
29: ; preds = %19
%30 = load ptr, ptr %2, align 8
%31 = load i32, ptr %3, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %3, align 4
%33 = sext i32 %31 to i64
%34 = getelementptr inbounds i8, ptr %30, i64 %33
%35 = load i8, ptr %34, align 1
%36 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 0
store i8 %35, ptr %36, align 1
%37 = load ptr, ptr %2, align 8
%38 = load i32, ptr %3, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %3, align 4
%40 = sext i32 %38 to i64
%41 = getelementptr inbounds i8, ptr %37, i64 %40
%42 = load i8, ptr %41, align 1
%43 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 1
store i8 %42, ptr %43, align 1
%44 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 2
store i8 0, ptr %44, align 1
%45 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 0
%46 = call signext i8 @strtol(ptr noundef %45, ptr noundef null, i32 noundef 16)
%47 = load ptr, ptr %6, align 8
%48 = load i64, ptr %4, align 8
%49 = add i64 %48, 1
store i64 %49, ptr %4, align 8
%50 = getelementptr inbounds i8, ptr %47, i64 %48
store i8 %46, ptr %50, align 1
br label %57
51: ; preds = %19
%52 = load i8, ptr %8, align 1
%53 = load ptr, ptr %6, align 8
%54 = load i64, ptr %4, align 8
%55 = add i64 %54, 1
store i64 %55, ptr %4, align 8
%56 = getelementptr inbounds i8, ptr %53, i64 %54
store i8 %52, ptr %56, align 1
br label %57
57: ; preds = %51, %29
br label %15, !llvm.loop !6
58: ; preds = %15
%59 = load ptr, ptr %6, align 8
%60 = load i64, ptr %4, align 8
%61 = getelementptr inbounds i8, ptr %59, i64 %60
store i8 0, ptr %61, align 1
%62 = load ptr, ptr %6, align 8
ret ptr %62
}
declare i64 @strlen(ptr noundef) #1
declare i64 @malloc(i64 noundef) #1
declare signext i8 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcj13pzwz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @uri_decode(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca [3 x i8], align 1
%8 = alloca i8, align 1
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i64 0, ptr %4, align 8
store i64 0, ptr %5, align 8
store ptr null, ptr %6, align 8
store i8 0, ptr %8, align 1
%9 = load ptr, ptr %2, align 8
%10 = call i64 @strlen(ptr noundef %9)
store i64 %10, ptr %5, align 8
%11 = load i64, ptr %5, align 8
%12 = add i64 %11, 1
%13 = call i64 @malloc(i64 noundef %12)
%14 = inttoptr i64 %13 to ptr
store ptr %14, ptr %6, align 8
%15 = load i64, ptr %5, align 8
%16 = add i64 %15, -1
store i64 %16, ptr %5, align 8
%17 = icmp ne i64 %15, 0
br i1 %17, label %.lr.ph, label %60
.lr.ph: ; preds = %1
br label %18
18: ; preds = %.lr.ph, %56
%19 = load ptr, ptr %2, align 8
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %3, align 4
%22 = sext i32 %20 to i64
%23 = getelementptr inbounds i8, ptr %19, i64 %22
%24 = load i8, ptr %23, align 1
store i8 %24, ptr %8, align 1
%25 = load i8, ptr %8, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 37, %26
br i1 %27, label %28, label %50
28: ; preds = %18
%29 = load ptr, ptr %2, align 8
%30 = load i32, ptr %3, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %3, align 4
%32 = sext i32 %30 to i64
%33 = getelementptr inbounds i8, ptr %29, i64 %32
%34 = load i8, ptr %33, align 1
%35 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 0
store i8 %34, ptr %35, align 1
%36 = load ptr, ptr %2, align 8
%37 = load i32, ptr %3, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %3, align 4
%39 = sext i32 %37 to i64
%40 = getelementptr inbounds i8, ptr %36, i64 %39
%41 = load i8, ptr %40, align 1
%42 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 1
store i8 %41, ptr %42, align 1
%43 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 2
store i8 0, ptr %43, align 1
%44 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 0
%45 = call signext i8 @strtol(ptr noundef %44, ptr noundef null, i32 noundef 16)
%46 = load ptr, ptr %6, align 8
%47 = load i64, ptr %4, align 8
%48 = add i64 %47, 1
store i64 %48, ptr %4, align 8
%49 = getelementptr inbounds i8, ptr %46, i64 %47
store i8 %45, ptr %49, align 1
br label %56
50: ; preds = %18
%51 = load i8, ptr %8, align 1
%52 = load ptr, ptr %6, align 8
%53 = load i64, ptr %4, align 8
%54 = add i64 %53, 1
store i64 %54, ptr %4, align 8
%55 = getelementptr inbounds i8, ptr %52, i64 %53
store i8 %51, ptr %55, align 1
br label %56
56: ; preds = %50, %28
%57 = load i64, ptr %5, align 8
%58 = add i64 %57, -1
store i64 %58, ptr %5, align 8
%59 = icmp ne i64 %57, 0
br i1 %59, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %56
br label %60
60: ; preds = %._crit_edge, %1
%61 = load ptr, ptr %6, align 8
%62 = load i64, ptr %4, align 8
%63 = getelementptr inbounds i8, ptr %61, i64 %62
store i8 0, ptr %63, align 1
%64 = load ptr, ptr %6, align 8
ret ptr %64
}
declare i64 @strlen(ptr noundef) #1
declare i64 @malloc(i64 noundef) #1
declare signext i8 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp5qvimzu4.c'
source_filename = "/tmp/tmp5qvimzu4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5qvimzu4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt1pd_wkw.c'
source_filename = "/tmp/tmpt1pd_wkw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @CDelta_delta(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store double %0, ptr %3, align 8
%7 = load double, ptr %3, align 8
%8 = call double @llvm.fabs.f64(double %7)
store double %8, ptr %4, align 8
%9 = load double, ptr %3, align 8
%10 = fmul double -4.000000e+00, %9
%11 = load double, ptr %3, align 8
%12 = fmul double %10, %11
store double %12, ptr %5, align 8
%13 = load double, ptr %4, align 8
%14 = fmul double -2.000000e+00, %13
store double %14, ptr %6, align 8
%15 = load double, ptr %4, align 8
%16 = fcmp oge double %15, 2.000000e+00
br i1 %16, label %17, label %18
17: ; preds = %1
store double 0.000000e+00, ptr %2, align 8
br label %48
18: ; preds = %1
%19 = load double, ptr %4, align 8
%20 = fcmp oge double %19, 1.000000e+00
br i1 %20, label %21, label %33
21: ; preds = %18
%22 = load double, ptr %4, align 8
%23 = call double @llvm.fmuladd.f64(double 1.200000e+01, double %22, double -7.000000e+00)
%24 = load double, ptr %5, align 8
%25 = fadd double %24, %23
store double %25, ptr %5, align 8
%26 = load double, ptr %6, align 8
%27 = fadd double %26, 5.000000e+00
store double %27, ptr %6, align 8
%28 = load double, ptr %5, align 8
%29 = call i64 @sqrt(double noundef %28)
%30 = sitofp i64 %29 to double
%31 = load double, ptr %6, align 8
%32 = fsub double %31, %30
store double %32, ptr %6, align 8
br label %45
33: ; preds = %18
%34 = load double, ptr %4, align 8
%35 = call double @llvm.fmuladd.f64(double 4.000000e+00, double %34, double 1.000000e+00)
%36 = load double, ptr %5, align 8
%37 = fadd double %36, %35
store double %37, ptr %5, align 8
%38 = load double, ptr %6, align 8
%39 = fadd double %38, 3.000000e+00
store double %39, ptr %6, align 8
%40 = load double, ptr %5, align 8
%41 = call i64 @sqrt(double noundef %40)
%42 = sitofp i64 %41 to double
%43 = load double, ptr %6, align 8
%44 = fadd double %43, %42
store double %44, ptr %6, align 8
br label %45
45: ; preds = %33, %21
%46 = load double, ptr %6, align 8
%47 = fmul double 1.250000e-01, %46
store double %47, ptr %2, align 8
br label %48
48: ; preds = %45, %17
%49 = load double, ptr %2, align 8
ret double %49
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare i64 @sqrt(double noundef) #2
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt1pd_wkw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @CDelta_delta(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store double %0, ptr %3, align 8
%7 = load double, ptr %3, align 8
%8 = call double @llvm.fabs.f64(double %7)
store double %8, ptr %4, align 8
%9 = load double, ptr %3, align 8
%10 = fmul double -4.000000e+00, %9
%11 = load double, ptr %3, align 8
%12 = fmul double %10, %11
store double %12, ptr %5, align 8
%13 = load double, ptr %4, align 8
%14 = fmul double -2.000000e+00, %13
store double %14, ptr %6, align 8
%15 = load double, ptr %4, align 8
%16 = fcmp oge double %15, 2.000000e+00
br i1 %16, label %17, label %18
17: ; preds = %1
store double 0.000000e+00, ptr %2, align 8
br label %48
18: ; preds = %1
%19 = load double, ptr %4, align 8
%20 = fcmp oge double %19, 1.000000e+00
br i1 %20, label %21, label %33
21: ; preds = %18
%22 = load double, ptr %4, align 8
%23 = call double @llvm.fmuladd.f64(double 1.200000e+01, double %22, double -7.000000e+00)
%24 = load double, ptr %5, align 8
%25 = fadd double %24, %23
store double %25, ptr %5, align 8
%26 = load double, ptr %6, align 8
%27 = fadd double %26, 5.000000e+00
store double %27, ptr %6, align 8
%28 = load double, ptr %5, align 8
%29 = call i64 @sqrt(double noundef %28)
%30 = sitofp i64 %29 to double
%31 = load double, ptr %6, align 8
%32 = fsub double %31, %30
store double %32, ptr %6, align 8
br label %45
33: ; preds = %18
%34 = load double, ptr %4, align 8
%35 = call double @llvm.fmuladd.f64(double 4.000000e+00, double %34, double 1.000000e+00)
%36 = load double, ptr %5, align 8
%37 = fadd double %36, %35
store double %37, ptr %5, align 8
%38 = load double, ptr %6, align 8
%39 = fadd double %38, 3.000000e+00
store double %39, ptr %6, align 8
%40 = load double, ptr %5, align 8
%41 = call i64 @sqrt(double noundef %40)
%42 = sitofp i64 %41 to double
%43 = load double, ptr %6, align 8
%44 = fadd double %43, %42
store double %44, ptr %6, align 8
br label %45
45: ; preds = %33, %21
%46 = load double, ptr %6, align 8
%47 = fmul double 1.250000e-01, %46
store double %47, ptr %2, align 8
br label %48
48: ; preds = %45, %17
%49 = load double, ptr %2, align 8
ret double %49
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare i64 @sqrt(double noundef) #2
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnq06s7s0.c'
source_filename = "/tmp/tmpnq06s7s0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @rle_uncompress_argb(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6, i32 noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
%17 = alloca [256 x i32], align 16
store ptr %0, ptr %9, align 8
store i32 %1, ptr %10, align 4
store i32 %2, ptr %11, align 4
store i32 %3, ptr %12, align 4
store ptr %4, ptr %13, align 8
store i32 %5, ptr %14, align 4
store ptr %6, ptr %15, align 8
store i32 %7, ptr %16, align 4
call void @llvm.memset.p0.i64(ptr align 16 %17, i8 0, i64 1024, i1 false)
%18 = load i32, ptr %16, align 4
%19 = icmp sgt i32 %18, 256
br i1 %19, label %20, label %21
20: ; preds = %8
br label %34
21: ; preds = %8
%22 = getelementptr inbounds [256 x i32], ptr %17, i64 0, i64 0
%23 = load ptr, ptr %15, align 8
%24 = load i32, ptr %16, align 4
%25 = call i32 @rle_palette_to_argb(ptr noundef %22, ptr noundef %23, i32 noundef %24)
%26 = load ptr, ptr %9, align 8
%27 = load i32, ptr %10, align 4
%28 = load i32, ptr %11, align 4
%29 = load i32, ptr %12, align 4
%30 = load ptr, ptr %13, align 8
%31 = load i32, ptr %14, align 4
%32 = getelementptr inbounds [256 x i32], ptr %17, i64 0, i64 0
%33 = call i32 @rle_uncompress_u32(ptr noundef %26, i32 noundef %27, i32 noundef %28, i32 noundef %29, ptr noundef %30, i32 noundef %31, ptr noundef %32)
br label %34
34: ; preds = %21, %20
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @rle_palette_to_argb(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @rle_uncompress_u32(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #2
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnq06s7s0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @rle_uncompress_argb(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6, i32 noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
%17 = alloca [256 x i32], align 16
store ptr %0, ptr %9, align 8
store i32 %1, ptr %10, align 4
store i32 %2, ptr %11, align 4
store i32 %3, ptr %12, align 4
store ptr %4, ptr %13, align 8
store i32 %5, ptr %14, align 4
store ptr %6, ptr %15, align 8
store i32 %7, ptr %16, align 4
call void @llvm.memset.p0.i64(ptr align 16 %17, i8 0, i64 1024, i1 false)
%18 = load i32, ptr %16, align 4
%19 = icmp sgt i32 %18, 256
br i1 %19, label %20, label %21
20: ; preds = %8
br label %34
21: ; preds = %8
%22 = getelementptr inbounds [256 x i32], ptr %17, i64 0, i64 0
%23 = load ptr, ptr %15, align 8
%24 = load i32, ptr %16, align 4
%25 = call i32 @rle_palette_to_argb(ptr noundef %22, ptr noundef %23, i32 noundef %24)
%26 = load ptr, ptr %9, align 8
%27 = load i32, ptr %10, align 4
%28 = load i32, ptr %11, align 4
%29 = load i32, ptr %12, align 4
%30 = load ptr, ptr %13, align 8
%31 = load i32, ptr %14, align 4
%32 = getelementptr inbounds [256 x i32], ptr %17, i64 0, i64 0
%33 = call i32 @rle_uncompress_u32(ptr noundef %26, i32 noundef %27, i32 noundef %28, i32 noundef %29, ptr noundef %30, i32 noundef %31, ptr noundef %32)
br label %34
34: ; preds = %21, %20
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @rle_palette_to_argb(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @rle_uncompress_u32(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #2
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphgbp1nvw.c'
source_filename = "/tmp/tmphgbp1nvw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @dict_eq_string(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %7, align 8
%9 = call i64 @strcmp(ptr noundef %6, ptr noundef %8)
%10 = icmp eq i64 %9, 0
%11 = zext i1 %10 to i32
ret i32 %11
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphgbp1nvw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @dict_eq_string(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %7, align 8
%9 = call i64 @strcmp(ptr noundef %6, ptr noundef %8)
%10 = icmp eq i64 %9, 0
%11 = zext i1 %10 to i32
ret i32 %11
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpflc1yqf_.c'
source_filename = "/tmp/tmpflc1yqf_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c";======= help =========\0A\00", align 1
@.str.1 = private unnamed_addr constant [55 x i8] c"format: cmd <table name> <binary file> <output file>\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"rb+\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"error - file open failed!\0A\00", align 1
@.str.5 = private unnamed_addr constant [23 x i8] c"const unsigned %s[]={\0A\00", align 1
@.str.6 = private unnamed_addr constant [39 x i8] c"\090x%.8x , 0x%.8x , 0x%.8x , 0x%.8x\0A};\0A\00", align 1
@.str.7 = private unnamed_addr constant [37 x i8] c"\090x%.8x , 0x%.8x , 0x%.8x , 0x%.8x,\0A\00", align 1
@.str.8 = private unnamed_addr constant [13 x i8] c"convert ok!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [512 x i8], align 16
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca [4 x i32], align 16
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%16 = load i32, ptr %4, align 4
%17 = icmp ne i32 %16, 4
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = call i32 @printf(ptr noundef @.str)
%20 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %3, align 4
br label %130
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
store ptr %24, ptr %6, align 8
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 2
%27 = load ptr, ptr %26, align 8
store ptr %27, ptr %7, align 8
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 3
%30 = load ptr, ptr %29, align 8
store ptr %30, ptr %8, align 8
%31 = load ptr, ptr %7, align 8
%32 = call ptr @fopen(ptr noundef %31, ptr noundef @.str.2)
store ptr %32, ptr %10, align 8
%33 = load ptr, ptr %8, align 8
%34 = call ptr @fopen(ptr noundef %33, ptr noundef @.str.3)
store ptr %34, ptr %11, align 8
%35 = load ptr, ptr %10, align 8
%36 = icmp eq ptr %35, null
br i1 %36, label %40, label %37
37: ; preds = %21
%38 = load ptr, ptr %11, align 8
%39 = icmp eq ptr %38, null
br i1 %39, label %40, label %42
40: ; preds = %37, %21
%41 = call i32 @printf(ptr noundef @.str.4)
br label %117
42: ; preds = %37
store i32 16, ptr %12, align 4
store i32 0, ptr %15, align 4
%43 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%44 = load ptr, ptr %6, align 8
%45 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %43, ptr noundef @.str.5, ptr noundef %44)
%46 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%47 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%48 = call i32 @strlen(ptr noundef %47)
%49 = load ptr, ptr %11, align 8
%50 = call i32 @fwrite(ptr noundef %46, i32 noundef %48, i32 noundef 1, ptr noundef %49)
br label %51
51: ; preds = %92, %42
%52 = load i32, ptr %12, align 4
%53 = load ptr, ptr %10, align 8
%54 = call i32 @fread(ptr noundef %13, i32 noundef 1, i32 noundef %52, ptr noundef %53)
store i32 %54, ptr %14, align 4
%55 = icmp sgt i32 %54, 0
br i1 %55, label %56, label %96
56: ; preds = %51
%57 = load i32, ptr %14, align 4
%58 = load i32, ptr %12, align 4
%59 = icmp ne i32 %57, %58
br i1 %59, label %60, label %76
60: ; preds = %56
%61 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%62 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 0
%63 = load i32, ptr %62, align 16
%64 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 1
%65 = load i32, ptr %64, align 4
%66 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 2
%67 = load i32, ptr %66, align 8
%68 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 3
%69 = load i32, ptr %68, align 4
%70 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %61, ptr noundef @.str.6, i32 noundef %63, i32 noundef %65, i32 noundef %67, i32 noundef %69)
%71 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%72 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%73 = call i32 @strlen(ptr noundef %72)
%74 = load ptr, ptr %11, align 8
%75 = call i32 @fwrite(ptr noundef %71, i32 noundef %73, i32 noundef 1, ptr noundef %74)
store i32 1, ptr %15, align 4
br label %92
76: ; preds = %56
%77 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%78 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 0
%79 = load i32, ptr %78, align 16
%80 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 1
%81 = load i32, ptr %80, align 4
%82 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 2
%83 = load i32, ptr %82, align 8
%84 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 3
%85 = load i32, ptr %84, align 4
%86 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %77, ptr noundef @.str.7, i32 noundef %79, i32 noundef %81, i32 noundef %83, i32 noundef %85)
%87 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%88 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%89 = call i32 @strlen(ptr noundef %88)
%90 = load ptr, ptr %11, align 8
%91 = call i32 @fwrite(ptr noundef %87, i32 noundef %89, i32 noundef 1, ptr noundef %90)
br label %92
92: ; preds = %76, %60
%93 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 0
%94 = load i32, ptr %12, align 4
%95 = call i32 @memset(ptr noundef %93, i32 noundef 0, i32 noundef %94)
br label %51, !llvm.loop !6
96: ; preds = %51
%97 = load i32, ptr %15, align 4
%98 = icmp ne i32 %97, 0
br i1 %98, label %115, label %99
99: ; preds = %96
%100 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%101 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 0
%102 = load i32, ptr %101, align 16
%103 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 1
%104 = load i32, ptr %103, align 4
%105 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 2
%106 = load i32, ptr %105, align 8
%107 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 3
%108 = load i32, ptr %107, align 4
%109 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %100, ptr noundef @.str.6, i32 noundef %102, i32 noundef %104, i32 noundef %106, i32 noundef %108)
%110 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%111 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%112 = call i32 @strlen(ptr noundef %111)
%113 = load ptr, ptr %11, align 8
%114 = call i32 @fwrite(ptr noundef %110, i32 noundef %112, i32 noundef 1, ptr noundef %113)
br label %115
115: ; preds = %99, %96
%116 = call i32 @printf(ptr noundef @.str.8)
br label %117
117: ; preds = %115, %40
%118 = load ptr, ptr %10, align 8
%119 = icmp ne ptr %118, null
br i1 %119, label %120, label %123
120: ; preds = %117
%121 = load ptr, ptr %10, align 8
%122 = call i32 @fclose(ptr noundef %121)
br label %123
123: ; preds = %120, %117
%124 = load ptr, ptr %11, align 8
%125 = icmp ne ptr %124, null
br i1 %125, label %126, label %129
126: ; preds = %123
%127 = load ptr, ptr %11, align 8
%128 = call i32 @fclose(ptr noundef %127)
br label %129
129: ; preds = %126, %123
store ptr null, ptr %10, align 8
store ptr null, ptr %11, align 8
store i32 0, ptr %3, align 4
br label %130
130: ; preds = %129, %18
%131 = load i32, ptr %3, align 4
ret i32 %131
}
declare i32 @printf(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpflc1yqf_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c";======= help =========\0A\00", align 1
@.str.1 = private unnamed_addr constant [55 x i8] c"format: cmd <table name> <binary file> <output file>\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"rb+\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"error - file open failed!\0A\00", align 1
@.str.5 = private unnamed_addr constant [23 x i8] c"const unsigned %s[]={\0A\00", align 1
@.str.6 = private unnamed_addr constant [39 x i8] c"\090x%.8x , 0x%.8x , 0x%.8x , 0x%.8x\0A};\0A\00", align 1
@.str.7 = private unnamed_addr constant [37 x i8] c"\090x%.8x , 0x%.8x , 0x%.8x , 0x%.8x,\0A\00", align 1
@.str.8 = private unnamed_addr constant [13 x i8] c"convert ok!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [512 x i8], align 16
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca [4 x i32], align 16
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%16 = load i32, ptr %4, align 4
%17 = icmp ne i32 %16, 4
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = call i32 @printf(ptr noundef @.str)
%20 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %3, align 4
br label %133
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
store ptr %24, ptr %6, align 8
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 2
%27 = load ptr, ptr %26, align 8
store ptr %27, ptr %7, align 8
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 3
%30 = load ptr, ptr %29, align 8
store ptr %30, ptr %8, align 8
%31 = load ptr, ptr %7, align 8
%32 = call ptr @fopen(ptr noundef %31, ptr noundef @.str.2)
store ptr %32, ptr %10, align 8
%33 = load ptr, ptr %8, align 8
%34 = call ptr @fopen(ptr noundef %33, ptr noundef @.str.3)
store ptr %34, ptr %11, align 8
%35 = load ptr, ptr %10, align 8
%36 = icmp eq ptr %35, null
br i1 %36, label %40, label %37
37: ; preds = %21
%38 = load ptr, ptr %11, align 8
%39 = icmp eq ptr %38, null
br i1 %39, label %40, label %42
40: ; preds = %37, %21
%41 = call i32 @printf(ptr noundef @.str.4)
br label %120
42: ; preds = %37
store i32 16, ptr %12, align 4
store i32 0, ptr %15, align 4
%43 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%44 = load ptr, ptr %6, align 8
%45 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %43, ptr noundef @.str.5, ptr noundef %44)
%46 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%47 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%48 = call i32 @strlen(ptr noundef %47)
%49 = load ptr, ptr %11, align 8
%50 = call i32 @fwrite(ptr noundef %46, i32 noundef %48, i32 noundef 1, ptr noundef %49)
%51 = load i32, ptr %12, align 4
%52 = load ptr, ptr %10, align 8
%53 = call i32 @fread(ptr noundef %13, i32 noundef 1, i32 noundef %51, ptr noundef %52)
store i32 %53, ptr %14, align 4
%54 = icmp sgt i32 %53, 0
br i1 %54, label %.lr.ph, label %99
.lr.ph: ; preds = %42
br label %55
55: ; preds = %.lr.ph, %91
%56 = load i32, ptr %14, align 4
%57 = load i32, ptr %12, align 4
%58 = icmp ne i32 %56, %57
br i1 %58, label %59, label %75
59: ; preds = %55
%60 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%61 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 0
%62 = load i32, ptr %61, align 16
%63 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 1
%64 = load i32, ptr %63, align 4
%65 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 2
%66 = load i32, ptr %65, align 8
%67 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 3
%68 = load i32, ptr %67, align 4
%69 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %60, ptr noundef @.str.6, i32 noundef %62, i32 noundef %64, i32 noundef %66, i32 noundef %68)
%70 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%71 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%72 = call i32 @strlen(ptr noundef %71)
%73 = load ptr, ptr %11, align 8
%74 = call i32 @fwrite(ptr noundef %70, i32 noundef %72, i32 noundef 1, ptr noundef %73)
store i32 1, ptr %15, align 4
br label %91
75: ; preds = %55
%76 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%77 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 0
%78 = load i32, ptr %77, align 16
%79 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 1
%80 = load i32, ptr %79, align 4
%81 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 2
%82 = load i32, ptr %81, align 8
%83 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 3
%84 = load i32, ptr %83, align 4
%85 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %76, ptr noundef @.str.7, i32 noundef %78, i32 noundef %80, i32 noundef %82, i32 noundef %84)
%86 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%87 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%88 = call i32 @strlen(ptr noundef %87)
%89 = load ptr, ptr %11, align 8
%90 = call i32 @fwrite(ptr noundef %86, i32 noundef %88, i32 noundef 1, ptr noundef %89)
br label %91
91: ; preds = %75, %59
%92 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 0
%93 = load i32, ptr %12, align 4
%94 = call i32 @memset(ptr noundef %92, i32 noundef 0, i32 noundef %93)
%95 = load i32, ptr %12, align 4
%96 = load ptr, ptr %10, align 8
%97 = call i32 @fread(ptr noundef %13, i32 noundef 1, i32 noundef %95, ptr noundef %96)
store i32 %97, ptr %14, align 4
%98 = icmp sgt i32 %97, 0
br i1 %98, label %55, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %91
br label %99
99: ; preds = %._crit_edge, %42
%100 = load i32, ptr %15, align 4
%101 = icmp ne i32 %100, 0
br i1 %101, label %118, label %102
102: ; preds = %99
%103 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%104 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 0
%105 = load i32, ptr %104, align 16
%106 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 1
%107 = load i32, ptr %106, align 4
%108 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 2
%109 = load i32, ptr %108, align 8
%110 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 3
%111 = load i32, ptr %110, align 4
%112 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %103, ptr noundef @.str.6, i32 noundef %105, i32 noundef %107, i32 noundef %109, i32 noundef %111)
%113 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%114 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
%115 = call i32 @strlen(ptr noundef %114)
%116 = load ptr, ptr %11, align 8
%117 = call i32 @fwrite(ptr noundef %113, i32 noundef %115, i32 noundef 1, ptr noundef %116)
br label %118
118: ; preds = %102, %99
%119 = call i32 @printf(ptr noundef @.str.8)
br label %120
120: ; preds = %118, %40
%121 = load ptr, ptr %10, align 8
%122 = icmp ne ptr %121, null
br i1 %122, label %123, label %126
123: ; preds = %120
%124 = load ptr, ptr %10, align 8
%125 = call i32 @fclose(ptr noundef %124)
br label %126
126: ; preds = %123, %120
%127 = load ptr, ptr %11, align 8
%128 = icmp ne ptr %127, null
br i1 %128, label %129, label %132
129: ; preds = %126
%130 = load ptr, ptr %11, align 8
%131 = call i32 @fclose(ptr noundef %130)
br label %132
132: ; preds = %129, %126
store ptr null, ptr %10, align 8
store ptr null, ptr %11, align 8
store i32 0, ptr %3, align 4
br label %133
133: ; preds = %132, %18
%134 = load i32, ptr %3, align 4
ret i32 %134
}
declare i32 @printf(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpqc42l2xm.c'
source_filename = "/tmp/tmpqc42l2xm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [10 x i8] c"%lld %lld\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
store i32 0, ptr %1, align 4
br label %4
4: ; preds = %20, %0
%5 = load i64, ptr @EOF, align 8
%6 = call i64 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%7 = icmp ne i64 %5, %6
br i1 %7, label %8, label %23
8: ; preds = %4
%9 = load i64, ptr %2, align 8
%10 = load i64, ptr %3, align 8
%11 = icmp sgt i64 %9, %10
br i1 %11, label %12, label %16
12: ; preds = %8
%13 = load i64, ptr %2, align 8
%14 = load i64, ptr %3, align 8
%15 = sub nsw i64 %13, %14
br label %20
16: ; preds = %8
%17 = load i64, ptr %3, align 8
%18 = load i64, ptr %2, align 8
%19 = sub nsw i64 %17, %18
br label %20
20: ; preds = %16, %12
%21 = phi i64 [ %15, %12 ], [ %19, %16 ]
%22 = call i32 @printf(ptr noundef @.str.1, i64 noundef %21)
br label %4, !llvm.loop !6
23: ; preds = %4
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqc42l2xm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [10 x i8] c"%lld %lld\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
store i32 0, ptr %1, align 4
%4 = load i64, ptr @EOF, align 8
%5 = call i64 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%6 = icmp ne i64 %4, %5
br i1 %6, label %.lr.ph, label %25
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %19
%8 = load i64, ptr %2, align 8
%9 = load i64, ptr %3, align 8
%10 = icmp sgt i64 %8, %9
br i1 %10, label %11, label %15
11: ; preds = %7
%12 = load i64, ptr %2, align 8
%13 = load i64, ptr %3, align 8
%14 = sub nsw i64 %12, %13
br label %19
15: ; preds = %7
%16 = load i64, ptr %3, align 8
%17 = load i64, ptr %2, align 8
%18 = sub nsw i64 %16, %17
br label %19
19: ; preds = %15, %11
%20 = phi i64 [ %14, %11 ], [ %18, %15 ]
%21 = call i32 @printf(ptr noundef @.str.1, i64 noundef %20)
%22 = load i64, ptr @EOF, align 8
%23 = call i64 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%24 = icmp ne i64 %22, %23
br i1 %24, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %0
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp3zjk62wh.c'
source_filename = "/tmp/tmp3zjk62wh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_vsub_i8_u(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %7, align 4
br label %8
8: ; preds = %27, %3
%9 = load i32, ptr %7, align 4
%10 = icmp slt i32 %9, 16
br i1 %10, label %11, label %30
11: ; preds = %8
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %7, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i64, ptr %12, i64 %14
%16 = load i64, ptr %15, align 8
%17 = load ptr, ptr %6, align 8
%18 = load i32, ptr %7, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i64, ptr %17, i64 %19
%21 = load i64, ptr %20, align 8
%22 = sub nsw i64 %16, %21
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %7, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i64, ptr %23, i64 %25
store i64 %22, ptr %26, align 8
br label %27
27: ; preds = %11
%28 = load i32, ptr %7, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %7, align 4
br label %8, !llvm.loop !6
30: ; preds = %8
ret void
}
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3zjk62wh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_vsub_i8_u(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = icmp slt i32 %8, 16
br i1 %9, label %.lr.ph, label %31
.lr.ph: ; preds = %3
br label %10
10: ; preds = %.lr.ph, %26
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %7, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i64, ptr %11, i64 %13
%15 = load i64, ptr %14, align 8
%16 = load ptr, ptr %6, align 8
%17 = load i32, ptr %7, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i64, ptr %16, i64 %18
%20 = load i64, ptr %19, align 8
%21 = sub nsw i64 %15, %20
%22 = load ptr, ptr %4, align 8
%23 = load i32, ptr %7, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i64, ptr %22, i64 %24
store i64 %21, ptr %25, align 8
br label %26
26: ; preds = %10
%27 = load i32, ptr %7, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %7, align 4
%29 = load i32, ptr %7, align 4
%30 = icmp slt i32 %29, 16
br i1 %30, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %31
31: ; preds = %._crit_edge, %3
ret void
}
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpvvwqgkzx.c'
source_filename = "/tmp/tmpvvwqgkzx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @optim_mult(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
store i32 4, ptr %17, align 4
%21 = load i32, ptr %12, align 4
%22 = load i32, ptr %17, align 4
%23 = sdiv i32 %21, %22
%24 = call i32 @imax(i32 noundef 1, i32 noundef %23)
store i32 %24, ptr %18, align 4
store i32 0, ptr %13, align 4
br label %25
25: ; preds = %47, %6
%26 = load i32, ptr %13, align 4
%27 = load i32, ptr %11, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %50
29: ; preds = %25
store i32 0, ptr %14, align 4
br label %30
30: ; preds = %43, %29
%31 = load i32, ptr %14, align 4
%32 = load i32, ptr %10, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %46
34: ; preds = %30
%35 = load ptr, ptr %9, align 8
%36 = load i32, ptr %13, align 4
%37 = load i32, ptr %10, align 4
%38 = mul nsw i32 %36, %37
%39 = load i32, ptr %14, align 4
%40 = add nsw i32 %38, %39
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, ptr %35, i64 %41
store double 0.000000e+00, ptr %42, align 8
br label %43
43: ; preds = %34
%44 = load i32, ptr %14, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %14, align 4
br label %30, !llvm.loop !6
46: ; preds = %30
br label %47
47: ; preds = %46
%48 = load i32, ptr %13, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %13, align 4
br label %25, !llvm.loop !8
50: ; preds = %25
store i32 0, ptr %16, align 4
br label %51
51: ; preds = %123, %50
%52 = load i32, ptr %16, align 4
%53 = load i32, ptr %18, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %126
55: ; preds = %51
%56 = load i32, ptr %16, align 4
%57 = load i32, ptr %12, align 4
%58 = mul nsw i32 %56, %57
%59 = load i32, ptr %18, align 4
%60 = sdiv i32 %58, %59
store i32 %60, ptr %19, align 4
%61 = load i32, ptr %16, align 4
%62 = add nsw i32 %61, 1
%63 = load i32, ptr %12, align 4
%64 = mul nsw i32 %62, %63
%65 = load i32, ptr %18, align 4
%66 = sdiv i32 %64, %65
store i32 %66, ptr %20, align 4
store i32 0, ptr %13, align 4
br label %67
67: ; preds = %119, %55
%68 = load i32, ptr %13, align 4
%69 = load i32, ptr %11, align 4
%70 = icmp slt i32 %68, %69
br i1 %70, label %71, label %122
71: ; preds = %67
store i32 0, ptr %14, align 4
br label %72
72: ; preds = %115, %71
%73 = load i32, ptr %14, align 4
%74 = load i32, ptr %10, align 4
%75 = icmp slt i32 %73, %74
br i1 %75, label %76, label %118
76: ; preds = %72
%77 = load i32, ptr %19, align 4
store i32 %77, ptr %15, align 4
br label %78
78: ; preds = %111, %76
%79 = load i32, ptr %15, align 4
%80 = load i32, ptr %20, align 4
%81 = icmp slt i32 %79, %80
br i1 %81, label %82, label %114
82: ; preds = %78
%83 = load ptr, ptr %7, align 8
%84 = load i32, ptr %13, align 4
%85 = load i32, ptr %12, align 4
%86 = mul nsw i32 %84, %85
%87 = load i32, ptr %15, align 4
%88 = add nsw i32 %86, %87
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, ptr %83, i64 %89
%91 = load double, ptr %90, align 8
%92 = load ptr, ptr %8, align 8
%93 = load i32, ptr %15, align 4
%94 = load i32, ptr %10, align 4
%95 = mul nsw i32 %93, %94
%96 = load i32, ptr %14, align 4
%97 = add nsw i32 %95, %96
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds double, ptr %92, i64 %98
%100 = load double, ptr %99, align 8
%101 = load ptr, ptr %9, align 8
%102 = load i32, ptr %13, align 4
%103 = load i32, ptr %10, align 4
%104 = mul nsw i32 %102, %103
%105 = load i32, ptr %14, align 4
%106 = add nsw i32 %104, %105
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds double, ptr %101, i64 %107
%109 = load double, ptr %108, align 8
%110 = call double @llvm.fmuladd.f64(double %91, double %100, double %109)
store double %110, ptr %108, align 8
br label %111
111: ; preds = %82
%112 = load i32, ptr %15, align 4
%113 = add nsw i32 %112, 1
store i32 %113, ptr %15, align 4
br label %78, !llvm.loop !9
114: ; preds = %78
br label %115
115: ; preds = %114
%116 = load i32, ptr %14, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %14, align 4
br label %72, !llvm.loop !10
118: ; preds = %72
br label %119
119: ; preds = %118
%120 = load i32, ptr %13, align 4
%121 = add nsw i32 %120, 1
store i32 %121, ptr %13, align 4
br label %67, !llvm.loop !11
122: ; preds = %67
br label %123
123: ; preds = %122
%124 = load i32, ptr %16, align 4
%125 = add nsw i32 %124, 1
store i32 %125, ptr %16, align 4
br label %51, !llvm.loop !12
126: ; preds = %51
ret void
}
declare i32 @imax(i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvvwqgkzx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @optim_mult(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
store i32 4, ptr %17, align 4
%21 = load i32, ptr %12, align 4
%22 = load i32, ptr %17, align 4
%23 = sdiv i32 %21, %22
%24 = call i32 @imax(i32 noundef 1, i32 noundef %23)
store i32 %24, ptr %18, align 4
store i32 0, ptr %13, align 4
%25 = load i32, ptr %13, align 4
%26 = load i32, ptr %11, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %.lr.ph2, label %54
.lr.ph2: ; preds = %6
br label %28
28: ; preds = %.lr.ph2, %48
store i32 0, ptr %14, align 4
%29 = load i32, ptr %14, align 4
%30 = load i32, ptr %10, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %.lr.ph, label %47
.lr.ph: ; preds = %28
br label %32
32: ; preds = %.lr.ph, %41
%33 = load ptr, ptr %9, align 8
%34 = load i32, ptr %13, align 4
%35 = load i32, ptr %10, align 4
%36 = mul nsw i32 %34, %35
%37 = load i32, ptr %14, align 4
%38 = add nsw i32 %36, %37
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds double, ptr %33, i64 %39
store double 0.000000e+00, ptr %40, align 8
br label %41
41: ; preds = %32
%42 = load i32, ptr %14, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %14, align 4
%44 = load i32, ptr %14, align 4
%45 = load i32, ptr %10, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %32, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %41
br label %47
47: ; preds = %._crit_edge, %28
br label %48
48: ; preds = %47
%49 = load i32, ptr %13, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %13, align 4
%51 = load i32, ptr %13, align 4
%52 = load i32, ptr %11, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %28, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %48
br label %54
54: ; preds = %._crit_edge3, %6
store i32 0, ptr %16, align 4
%55 = load i32, ptr %16, align 4
%56 = load i32, ptr %18, align 4
%57 = icmp slt i32 %55, %56
br i1 %57, label %.lr.ph14, label %138
.lr.ph14: ; preds = %54
br label %58
58: ; preds = %.lr.ph14, %132
%59 = load i32, ptr %16, align 4
%60 = load i32, ptr %12, align 4
%61 = mul nsw i32 %59, %60
%62 = load i32, ptr %18, align 4
%63 = sdiv i32 %61, %62
store i32 %63, ptr %19, align 4
%64 = load i32, ptr %16, align 4
%65 = add nsw i32 %64, 1
%66 = load i32, ptr %12, align 4
%67 = mul nsw i32 %65, %66
%68 = load i32, ptr %18, align 4
%69 = sdiv i32 %67, %68
store i32 %69, ptr %20, align 4
store i32 0, ptr %13, align 4
%70 = load i32, ptr %13, align 4
%71 = load i32, ptr %11, align 4
%72 = icmp slt i32 %70, %71
br i1 %72, label %.lr.ph11, label %131
.lr.ph11: ; preds = %58
br label %73
73: ; preds = %.lr.ph11, %125
store i32 0, ptr %14, align 4
%74 = load i32, ptr %14, align 4
%75 = load i32, ptr %10, align 4
%76 = icmp slt i32 %74, %75
br i1 %76, label %.lr.ph8, label %124
.lr.ph8: ; preds = %73
br label %77
77: ; preds = %.lr.ph8, %118
%78 = load i32, ptr %19, align 4
store i32 %78, ptr %15, align 4
%79 = load i32, ptr %15, align 4
%80 = load i32, ptr %20, align 4
%81 = icmp slt i32 %79, %80
br i1 %81, label %.lr.ph5, label %117
.lr.ph5: ; preds = %77
br label %82
82: ; preds = %.lr.ph5, %111
%83 = load ptr, ptr %7, align 8
%84 = load i32, ptr %13, align 4
%85 = load i32, ptr %12, align 4
%86 = mul nsw i32 %84, %85
%87 = load i32, ptr %15, align 4
%88 = add nsw i32 %86, %87
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, ptr %83, i64 %89
%91 = load double, ptr %90, align 8
%92 = load ptr, ptr %8, align 8
%93 = load i32, ptr %15, align 4
%94 = load i32, ptr %10, align 4
%95 = mul nsw i32 %93, %94
%96 = load i32, ptr %14, align 4
%97 = add nsw i32 %95, %96
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds double, ptr %92, i64 %98
%100 = load double, ptr %99, align 8
%101 = load ptr, ptr %9, align 8
%102 = load i32, ptr %13, align 4
%103 = load i32, ptr %10, align 4
%104 = mul nsw i32 %102, %103
%105 = load i32, ptr %14, align 4
%106 = add nsw i32 %104, %105
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds double, ptr %101, i64 %107
%109 = load double, ptr %108, align 8
%110 = call double @llvm.fmuladd.f64(double %91, double %100, double %109)
store double %110, ptr %108, align 8
br label %111
111: ; preds = %82
%112 = load i32, ptr %15, align 4
%113 = add nsw i32 %112, 1
store i32 %113, ptr %15, align 4
%114 = load i32, ptr %15, align 4
%115 = load i32, ptr %20, align 4
%116 = icmp slt i32 %114, %115
br i1 %116, label %82, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %111
br label %117
117: ; preds = %._crit_edge6, %77
br label %118
118: ; preds = %117
%119 = load i32, ptr %14, align 4
%120 = add nsw i32 %119, 1
store i32 %120, ptr %14, align 4
%121 = load i32, ptr %14, align 4
%122 = load i32, ptr %10, align 4
%123 = icmp slt i32 %121, %122
br i1 %123, label %77, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %118
br label %124
124: ; preds = %._crit_edge9, %73
br label %125
125: ; preds = %124
%126 = load i32, ptr %13, align 4
%127 = add nsw i32 %126, 1
store i32 %127, ptr %13, align 4
%128 = load i32, ptr %13, align 4
%129 = load i32, ptr %11, align 4
%130 = icmp slt i32 %128, %129
br i1 %130, label %73, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %125
br label %131
131: ; preds = %._crit_edge12, %58
br label %132
132: ; preds = %131
%133 = load i32, ptr %16, align 4
%134 = add nsw i32 %133, 1
store i32 %134, ptr %16, align 4
%135 = load i32, ptr %16, align 4
%136 = load i32, ptr %18, align 4
%137 = icmp slt i32 %135, %136
br i1 %137, label %58, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %132
br label %138
138: ; preds = %._crit_edge15, %54
ret void
}
declare i32 @imax(i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmpt77y__ae.c'
source_filename = "/tmp/tmpt77y__ae.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.addrinfo = type { i32, i32, i32, i32, i32 }
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"localhost\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"8080\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"\0AEnter filename: \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [14 x i8] c"\0AFileSize: %d\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"\0A Received buf %s\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"recv.txt\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"w+\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.addrinfo, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca [20 x i8], align 16
%9 = alloca [1024 x i8], align 16
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
%11 = call i32 @memset(ptr noundef %2, i32 noundef 0, i32 noundef 20)
%12 = load i32, ptr @AF_UNSPEC, align 4
%13 = getelementptr inbounds %struct.addrinfo, ptr %2, i32 0, i32 4
store i32 %12, ptr %13, align 4
%14 = load i32, ptr @SOCK_STREAM, align 4
%15 = getelementptr inbounds %struct.addrinfo, ptr %2, i32 0, i32 3
store i32 %14, ptr %15, align 4
%16 = call i32 @getaddrinfo(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %2, ptr noundef %3)
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds %struct.addrinfo, ptr %17, i32 0, i32 4
%19 = load i32, ptr %18, align 4
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds %struct.addrinfo, ptr %20, i32 0, i32 3
%22 = load i32, ptr %21, align 4
%23 = load ptr, ptr %3, align 8
%24 = getelementptr inbounds %struct.addrinfo, ptr %23, i32 0, i32 2
%25 = load i32, ptr %24, align 4
%26 = call i32 @socket(i32 noundef %19, i32 noundef %22, i32 noundef %25)
store i32 %26, ptr %4, align 4
%27 = load i32, ptr %4, align 4
%28 = load ptr, ptr %3, align 8
%29 = getelementptr inbounds %struct.addrinfo, ptr %28, i32 0, i32 1
%30 = load i32, ptr %29, align 4
%31 = load ptr, ptr %3, align 8
%32 = getelementptr inbounds %struct.addrinfo, ptr %31, i32 0, i32 0
%33 = load i32, ptr %32, align 4
%34 = call i32 @connect(i32 noundef %27, i32 noundef %30, i32 noundef %33)
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%36 = getelementptr inbounds [20 x i8], ptr %8, i64 0, i64 0
%37 = load i32, ptr @stdin, align 4
%38 = call i32 @fgets(ptr noundef %36, i32 noundef 20, i32 noundef %37)
%39 = load i32, ptr %4, align 4
%40 = getelementptr inbounds [20 x i8], ptr %8, i64 0, i64 0
%41 = call i32 @write(i32 noundef %39, ptr noundef %40, i32 noundef 20)
%42 = load i32, ptr %4, align 4
%43 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%44 = call i32 @read(i32 noundef %42, ptr noundef %43, i32 noundef 1024)
store i32 %44, ptr %10, align 4
%45 = load i32, ptr %10, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 %46
store i8 0, ptr %47, align 1
%48 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%49 = call i32 @atoi(ptr noundef %48)
store i32 %49, ptr %5, align 4
%50 = load i32, ptr %5, align 4
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %50)
%52 = load i32, ptr %4, align 4
%53 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%54 = load i32, ptr %5, align 4
%55 = call i32 @read(i32 noundef %52, ptr noundef %53, i32 noundef %54)
store i32 %55, ptr %10, align 4
%56 = load i32, ptr %10, align 4
%57 = add nsw i32 %56, 1
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 %58
store i8 10, ptr %59, align 1
%60 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %60)
%62 = call ptr @fopen(ptr noundef @.str.5, ptr noundef @.str.6)
store ptr %62, ptr %7, align 8
%63 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%64 = load ptr, ptr %7, align 8
%65 = call i32 @fputs(ptr noundef %63, ptr noundef %64)
%66 = load ptr, ptr %7, align 8
%67 = call i32 @fclose(ptr noundef %66)
ret i32 0
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @connect(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fputs(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt77y__ae.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.addrinfo = type { i32, i32, i32, i32, i32 }
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"localhost\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"8080\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"\0AEnter filename: \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [14 x i8] c"\0AFileSize: %d\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"\0A Received buf %s\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"recv.txt\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"w+\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.addrinfo, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca [20 x i8], align 16
%9 = alloca [1024 x i8], align 16
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
%11 = call i32 @memset(ptr noundef %2, i32 noundef 0, i32 noundef 20)
%12 = load i32, ptr @AF_UNSPEC, align 4
%13 = getelementptr inbounds %struct.addrinfo, ptr %2, i32 0, i32 4
store i32 %12, ptr %13, align 4
%14 = load i32, ptr @SOCK_STREAM, align 4
%15 = getelementptr inbounds %struct.addrinfo, ptr %2, i32 0, i32 3
store i32 %14, ptr %15, align 4
%16 = call i32 @getaddrinfo(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %2, ptr noundef %3)
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds %struct.addrinfo, ptr %17, i32 0, i32 4
%19 = load i32, ptr %18, align 4
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds %struct.addrinfo, ptr %20, i32 0, i32 3
%22 = load i32, ptr %21, align 4
%23 = load ptr, ptr %3, align 8
%24 = getelementptr inbounds %struct.addrinfo, ptr %23, i32 0, i32 2
%25 = load i32, ptr %24, align 4
%26 = call i32 @socket(i32 noundef %19, i32 noundef %22, i32 noundef %25)
store i32 %26, ptr %4, align 4
%27 = load i32, ptr %4, align 4
%28 = load ptr, ptr %3, align 8
%29 = getelementptr inbounds %struct.addrinfo, ptr %28, i32 0, i32 1
%30 = load i32, ptr %29, align 4
%31 = load ptr, ptr %3, align 8
%32 = getelementptr inbounds %struct.addrinfo, ptr %31, i32 0, i32 0
%33 = load i32, ptr %32, align 4
%34 = call i32 @connect(i32 noundef %27, i32 noundef %30, i32 noundef %33)
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%36 = getelementptr inbounds [20 x i8], ptr %8, i64 0, i64 0
%37 = load i32, ptr @stdin, align 4
%38 = call i32 @fgets(ptr noundef %36, i32 noundef 20, i32 noundef %37)
%39 = load i32, ptr %4, align 4
%40 = getelementptr inbounds [20 x i8], ptr %8, i64 0, i64 0
%41 = call i32 @write(i32 noundef %39, ptr noundef %40, i32 noundef 20)
%42 = load i32, ptr %4, align 4
%43 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%44 = call i32 @read(i32 noundef %42, ptr noundef %43, i32 noundef 1024)
store i32 %44, ptr %10, align 4
%45 = load i32, ptr %10, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 %46
store i8 0, ptr %47, align 1
%48 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%49 = call i32 @atoi(ptr noundef %48)
store i32 %49, ptr %5, align 4
%50 = load i32, ptr %5, align 4
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %50)
%52 = load i32, ptr %4, align 4
%53 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%54 = load i32, ptr %5, align 4
%55 = call i32 @read(i32 noundef %52, ptr noundef %53, i32 noundef %54)
store i32 %55, ptr %10, align 4
%56 = load i32, ptr %10, align 4
%57 = add nsw i32 %56, 1
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 %58
store i8 10, ptr %59, align 1
%60 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %60)
%62 = call ptr @fopen(ptr noundef @.str.5, ptr noundef @.str.6)
store ptr %62, ptr %7, align 8
%63 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%64 = load ptr, ptr %7, align 8
%65 = call i32 @fputs(ptr noundef %63, ptr noundef %64)
%66 = load ptr, ptr %7, align 8
%67 = call i32 @fclose(ptr noundef %66)
ret i32 0
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @connect(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fputs(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpssfo5uc8.c'
source_filename = "/tmp/tmpssfo5uc8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32 }
@.str = private unnamed_addr constant [5 x i8] c"bind\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"Bind success!\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"lsrp-router.log\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Bind(i32 noundef %0, i32 %1) #0 {
%3 = alloca i32, align 4
%4 = alloca %struct.sockaddr_in, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [128 x i8], align 16
%8 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 0
store i32 %1, ptr %8, align 4
store i32 %0, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = call i32 @bind(i32 noundef %9, ptr noundef %4, i32 noundef 4)
store i32 %10, ptr %6, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %20
14: ; preds = %2
%15 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%16 = call i32 @snprintf(ptr noundef %15, i32 noundef 128, ptr noundef @.str.1)
%17 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%18 = call i32 @logging(ptr noundef @.str.2, ptr noundef %17)
%19 = load i32, ptr %6, align 4
store i32 %19, ptr %3, align 4
br label %20
20: ; preds = %14, %12
%21 = load i32, ptr %3, align 4
ret i32 %21
}
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @logging(ptr noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpssfo5uc8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32 }
@.str = private unnamed_addr constant [5 x i8] c"bind\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"Bind success!\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"lsrp-router.log\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Bind(i32 noundef %0, i32 %1) #0 {
%3 = alloca i32, align 4
%4 = alloca %struct.sockaddr_in, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [128 x i8], align 16
%8 = getelementptr inbounds %struct.sockaddr_in, ptr %4, i32 0, i32 0
store i32 %1, ptr %8, align 4
store i32 %0, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = call i32 @bind(i32 noundef %9, ptr noundef %4, i32 noundef 4)
store i32 %10, ptr %6, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %20
14: ; preds = %2
%15 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%16 = call i32 @snprintf(ptr noundef %15, i32 noundef 128, ptr noundef @.str.1)
%17 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%18 = call i32 @logging(ptr noundef @.str.2, ptr noundef %17)
%19 = load i32, ptr %6, align 4
store i32 %19, ptr %3, align 4
br label %20
20: ; preds = %14, %12
%21 = load i32, ptr %3, align 4
ret i32 %21
}
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @logging(ptr noundef, ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7e3s_r2g.c'
source_filename = "/tmp/tmp7e3s_r2g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"hill climbing residue = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @hill_climbing(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [100 x i32], align 16
%8 = alloca [100 x i32], align 16
%9 = alloca i32, align 4
%10 = alloca [100 x i32], align 16
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%17 = call i64 @malloc(i32 noundef 400)
%18 = inttoptr i64 %17 to ptr
store ptr %18, ptr %16, align 8
store i32 0, ptr %3, align 4
br label %19
19: ; preds = %27, %1
%20 = load i32, ptr %3, align 4
%21 = icmp slt i32 %20, 100
br i1 %21, label %22, label %30
22: ; preds = %19
%23 = call i32 (...) @rand()
%24 = load i32, ptr %3, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %25
store i32 %23, ptr %26, align 4
br label %27
27: ; preds = %22
%28 = load i32, ptr %3, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %3, align 4
br label %19, !llvm.loop !6
30: ; preds = %19
store i32 0, ptr %3, align 4
br label %31
31: ; preds = %48, %30
%32 = load i32, ptr %3, align 4
%33 = icmp slt i32 %32, 100
br i1 %33, label %34, label %51
34: ; preds = %31
%35 = call i32 (...) @rand()
%36 = srem i32 %35, 2
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %47
38: ; preds = %34
%39 = load i32, ptr %3, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %40
%42 = load i32, ptr %41, align 4
%43 = mul nsw i32 %42, -1
%44 = load i32, ptr %3, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %45
store i32 %43, ptr %46, align 4
br label %47
47: ; preds = %38, %34
br label %48
48: ; preds = %47
%49 = load i32, ptr %3, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %3, align 4
br label %31, !llvm.loop !8
51: ; preds = %31
store i32 0, ptr %5, align 4
br label %52
52: ; preds = %64, %51
%53 = load i32, ptr %5, align 4
%54 = icmp slt i32 %53, 100
br i1 %54, label %55, label %67
55: ; preds = %52
%56 = load i32, ptr %5, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %57
%59 = load i32, ptr %58, align 4
%60 = load ptr, ptr %16, align 8
%61 = load i32, ptr %5, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i32, ptr %60, i64 %62
store i32 %59, ptr %63, align 4
br label %64
64: ; preds = %55
%65 = load i32, ptr %5, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %5, align 4
br label %52, !llvm.loop !9
67: ; preds = %52
store i32 0, ptr %11, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %3, align 4
br label %68
68: ; preds = %98, %67
%69 = load i32, ptr %3, align 4
%70 = icmp slt i32 %69, 100
br i1 %70, label %71, label %101
71: ; preds = %68
%72 = load i32, ptr %3, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %73
%75 = load i32, ptr %74, align 4
%76 = icmp slt i32 %75, 0
br i1 %76, label %77, label %87
77: ; preds = %71
%78 = load i32, ptr %3, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %79
%81 = load i32, ptr %80, align 4
%82 = load i32, ptr %11, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [100 x i32], ptr %10, i64 0, i64 %83
store i32 %81, ptr %84, align 4
%85 = load i32, ptr %11, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %11, align 4
br label %97
87: ; preds = %71
%88 = load i32, ptr %3, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %89
%91 = load i32, ptr %90, align 4
%92 = load i32, ptr %9, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [100 x i32], ptr %8, i64 0, i64 %93
store i32 %91, ptr %94, align 4
%95 = load i32, ptr %9, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %9, align 4
br label %97
97: ; preds = %87, %77
br label %98
98: ; preds = %97
%99 = load i32, ptr %3, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %3, align 4
br label %68, !llvm.loop !10
101: ; preds = %68
%102 = getelementptr inbounds [100 x i32], ptr %10, i64 0, i64 0
%103 = load i32, ptr %11, align 4
%104 = call i32 @sum_subset(ptr noundef %102, i32 noundef %103)
store i32 %104, ptr %13, align 4
%105 = getelementptr inbounds [100 x i32], ptr %8, i64 0, i64 0
%106 = load i32, ptr %9, align 4
%107 = call i32 @sum_subset(ptr noundef %105, i32 noundef %106)
store i32 %107, ptr %12, align 4
%108 = load i32, ptr %13, align 4
%109 = load i32, ptr %12, align 4
%110 = add nsw i32 %108, %109
%111 = call i32 @abs(i32 noundef %110) #3
store i32 %111, ptr %14, align 4
store i32 0, ptr %6, align 4
br label %112
112: ; preds = %208, %101
%113 = load i32, ptr %6, align 4
%114 = load i32, ptr %2, align 4
%115 = icmp slt i32 %113, %114
br i1 %115, label %116, label %211
116: ; preds = %112
%117 = call i32 (...) @rand()
%118 = srem i32 %117, 100
store i32 %118, ptr %3, align 4
%119 = call i32 (...) @rand()
%120 = srem i32 %119, 100
store i32 %120, ptr %4, align 4
%121 = load i32, ptr %3, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %122
%124 = load i32, ptr %123, align 4
%125 = mul nsw i32 %124, -1
%126 = load i32, ptr %3, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %127
store i32 %125, ptr %128, align 4
%129 = call i32 (...) @rand()
%130 = srem i32 %129, 2
%131 = icmp eq i32 %130, 0
br i1 %131, label %132, label %141
132: ; preds = %116
%133 = load i32, ptr %4, align 4
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %134
%136 = load i32, ptr %135, align 4
%137 = mul nsw i32 %136, -1
%138 = load i32, ptr %4, align 4
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %139
store i32 %137, ptr %140, align 4
br label %141
141: ; preds = %132, %116
store i32 0, ptr %11, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %3, align 4
br label %142
142: ; preds = %172, %141
%143 = load i32, ptr %3, align 4
%144 = icmp slt i32 %143, 100
br i1 %144, label %145, label %175
145: ; preds = %142
%146 = load i32, ptr %3, align 4
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %147
%149 = load i32, ptr %148, align 4
%150 = icmp slt i32 %149, 0
br i1 %150, label %151, label %161
151: ; preds = %145
%152 = load i32, ptr %3, align 4
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %153
%155 = load i32, ptr %154, align 4
%156 = load i32, ptr %11, align 4
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds [100 x i32], ptr %10, i64 0, i64 %157
store i32 %155, ptr %158, align 4
%159 = load i32, ptr %11, align 4
%160 = add nsw i32 %159, 1
store i32 %160, ptr %11, align 4
br label %171
161: ; preds = %145
%162 = load i32, ptr %3, align 4
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %163
%165 = load i32, ptr %164, align 4
%166 = load i32, ptr %9, align 4
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds [100 x i32], ptr %8, i64 0, i64 %167
store i32 %165, ptr %168, align 4
%169 = load i32, ptr %9, align 4
%170 = add nsw i32 %169, 1
store i32 %170, ptr %9, align 4
br label %171
171: ; preds = %161, %151
br label %172
172: ; preds = %171
%173 = load i32, ptr %3, align 4
%174 = add nsw i32 %173, 1
store i32 %174, ptr %3, align 4
br label %142, !llvm.loop !11
175: ; preds = %142
%176 = getelementptr inbounds [100 x i32], ptr %10, i64 0, i64 0
%177 = load i32, ptr %11, align 4
%178 = call i32 @sum_subset(ptr noundef %176, i32 noundef %177)
store i32 %178, ptr %13, align 4
%179 = getelementptr inbounds [100 x i32], ptr %8, i64 0, i64 0
%180 = load i32, ptr %9, align 4
%181 = call i32 @sum_subset(ptr noundef %179, i32 noundef %180)
store i32 %181, ptr %12, align 4
%182 = load i32, ptr %13, align 4
%183 = load i32, ptr %12, align 4
%184 = add nsw i32 %182, %183
%185 = call i32 @abs(i32 noundef %184) #3
store i32 %185, ptr %15, align 4
%186 = load i32, ptr %15, align 4
%187 = load i32, ptr %14, align 4
%188 = icmp slt i32 %186, %187
br i1 %188, label %189, label %207
189: ; preds = %175
%190 = load i32, ptr %15, align 4
store i32 %190, ptr %14, align 4
store i32 0, ptr %5, align 4
br label %191
191: ; preds = %203, %189
%192 = load i32, ptr %5, align 4
%193 = icmp slt i32 %192, 100
br i1 %193, label %194, label %206
194: ; preds = %191
%195 = load i32, ptr %5, align 4
%196 = sext i32 %195 to i64
%197 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %196
%198 = load i32, ptr %197, align 4
%199 = load ptr, ptr %16, align 8
%200 = load i32, ptr %5, align 4
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds i32, ptr %199, i64 %201
store i32 %198, ptr %202, align 4
br label %203
203: ; preds = %194
%204 = load i32, ptr %5, align 4
%205 = add nsw i32 %204, 1
store i32 %205, ptr %5, align 4
br label %191, !llvm.loop !12
206: ; preds = %191
br label %207
207: ; preds = %206, %175
br label %208
208: ; preds = %207
%209 = load i32, ptr %6, align 4
%210 = add nsw i32 %209, 1
store i32 %210, ptr %6, align 4
br label %112, !llvm.loop !13
211: ; preds = %112
%212 = load i32, ptr %14, align 4
%213 = call i32 @printf(ptr noundef @.str, i32 noundef %212)
%214 = load ptr, ptr %16, align 8
ret ptr %214
}
declare i64 @malloc(i32 noundef) #1
declare i32 @rand(...) #1
declare i32 @sum_subset(ptr noundef, i32 noundef) #1
; Function Attrs: nounwind willreturn memory(none)
declare i32 @abs(i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(none) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7e3s_r2g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"hill climbing residue = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @hill_climbing(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [100 x i32], align 16
%8 = alloca [100 x i32], align 16
%9 = alloca i32, align 4
%10 = alloca [100 x i32], align 16
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%17 = call i64 @malloc(i32 noundef 400)
%18 = inttoptr i64 %17 to ptr
store ptr %18, ptr %16, align 8
store i32 0, ptr %3, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp slt i32 %19, 100
br i1 %20, label %.lr.ph, label %31
.lr.ph: ; preds = %1
br label %21
21: ; preds = %.lr.ph, %26
%22 = call i32 (...) @rand()
%23 = load i32, ptr %3, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %24
store i32 %22, ptr %25, align 4
br label %26
26: ; preds = %21
%27 = load i32, ptr %3, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %3, align 4
%29 = load i32, ptr %3, align 4
%30 = icmp slt i32 %29, 100
br i1 %30, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %31
31: ; preds = %._crit_edge, %1
store i32 0, ptr %3, align 4
%32 = load i32, ptr %3, align 4
%33 = icmp slt i32 %32, 100
br i1 %33, label %.lr.ph2, label %53
.lr.ph2: ; preds = %31
br label %34
34: ; preds = %.lr.ph2, %48
%35 = call i32 (...) @rand()
%36 = srem i32 %35, 2
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %47
38: ; preds = %34
%39 = load i32, ptr %3, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %40
%42 = load i32, ptr %41, align 4
%43 = mul nsw i32 %42, -1
%44 = load i32, ptr %3, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %45
store i32 %43, ptr %46, align 4
br label %47
47: ; preds = %38, %34
br label %48
48: ; preds = %47
%49 = load i32, ptr %3, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %3, align 4
%51 = load i32, ptr %3, align 4
%52 = icmp slt i32 %51, 100
br i1 %52, label %34, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %48
br label %53
53: ; preds = %._crit_edge3, %31
store i32 0, ptr %5, align 4
%54 = load i32, ptr %5, align 4
%55 = icmp slt i32 %54, 100
br i1 %55, label %.lr.ph5, label %70
.lr.ph5: ; preds = %53
br label %56
56: ; preds = %.lr.ph5, %65
%57 = load i32, ptr %5, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %58
%60 = load i32, ptr %59, align 4
%61 = load ptr, ptr %16, align 8
%62 = load i32, ptr %5, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i32, ptr %61, i64 %63
store i32 %60, ptr %64, align 4
br label %65
65: ; preds = %56
%66 = load i32, ptr %5, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %5, align 4
%68 = load i32, ptr %5, align 4
%69 = icmp slt i32 %68, 100
br i1 %69, label %56, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %65
br label %70
70: ; preds = %._crit_edge6, %53
store i32 0, ptr %11, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %3, align 4
%71 = load i32, ptr %3, align 4
%72 = icmp slt i32 %71, 100
br i1 %72, label %.lr.ph8, label %105
.lr.ph8: ; preds = %70
br label %73
73: ; preds = %.lr.ph8, %100
%74 = load i32, ptr %3, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %75
%77 = load i32, ptr %76, align 4
%78 = icmp slt i32 %77, 0
br i1 %78, label %79, label %89
79: ; preds = %73
%80 = load i32, ptr %3, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %81
%83 = load i32, ptr %82, align 4
%84 = load i32, ptr %11, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [100 x i32], ptr %10, i64 0, i64 %85
store i32 %83, ptr %86, align 4
%87 = load i32, ptr %11, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %11, align 4
br label %99
89: ; preds = %73
%90 = load i32, ptr %3, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %91
%93 = load i32, ptr %92, align 4
%94 = load i32, ptr %9, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [100 x i32], ptr %8, i64 0, i64 %95
store i32 %93, ptr %96, align 4
%97 = load i32, ptr %9, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %9, align 4
br label %99
99: ; preds = %89, %79
br label %100
100: ; preds = %99
%101 = load i32, ptr %3, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %3, align 4
%103 = load i32, ptr %3, align 4
%104 = icmp slt i32 %103, 100
br i1 %104, label %73, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %100
br label %105
105: ; preds = %._crit_edge9, %70
%106 = getelementptr inbounds [100 x i32], ptr %10, i64 0, i64 0
%107 = load i32, ptr %11, align 4
%108 = call i32 @sum_subset(ptr noundef %106, i32 noundef %107)
store i32 %108, ptr %13, align 4
%109 = getelementptr inbounds [100 x i32], ptr %8, i64 0, i64 0
%110 = load i32, ptr %9, align 4
%111 = call i32 @sum_subset(ptr noundef %109, i32 noundef %110)
store i32 %111, ptr %12, align 4
%112 = load i32, ptr %13, align 4
%113 = load i32, ptr %12, align 4
%114 = add nsw i32 %112, %113
%115 = call i32 @abs(i32 noundef %114) #3
store i32 %115, ptr %14, align 4
store i32 0, ptr %6, align 4
%116 = load i32, ptr %6, align 4
%117 = load i32, ptr %2, align 4
%118 = icmp slt i32 %116, %117
br i1 %118, label %.lr.ph17, label %219
.lr.ph17: ; preds = %105
br label %119
119: ; preds = %.lr.ph17, %213
%120 = call i32 (...) @rand()
%121 = srem i32 %120, 100
store i32 %121, ptr %3, align 4
%122 = call i32 (...) @rand()
%123 = srem i32 %122, 100
store i32 %123, ptr %4, align 4
%124 = load i32, ptr %3, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %125
%127 = load i32, ptr %126, align 4
%128 = mul nsw i32 %127, -1
%129 = load i32, ptr %3, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %130
store i32 %128, ptr %131, align 4
%132 = call i32 (...) @rand()
%133 = srem i32 %132, 2
%134 = icmp eq i32 %133, 0
br i1 %134, label %135, label %144
135: ; preds = %119
%136 = load i32, ptr %4, align 4
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %137
%139 = load i32, ptr %138, align 4
%140 = mul nsw i32 %139, -1
%141 = load i32, ptr %4, align 4
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %142
store i32 %140, ptr %143, align 4
br label %144
144: ; preds = %135, %119
store i32 0, ptr %11, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %3, align 4
%145 = load i32, ptr %3, align 4
%146 = icmp slt i32 %145, 100
br i1 %146, label %.lr.ph11, label %179
.lr.ph11: ; preds = %144
br label %147
147: ; preds = %.lr.ph11, %174
%148 = load i32, ptr %3, align 4
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %149
%151 = load i32, ptr %150, align 4
%152 = icmp slt i32 %151, 0
br i1 %152, label %153, label %163
153: ; preds = %147
%154 = load i32, ptr %3, align 4
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %155
%157 = load i32, ptr %156, align 4
%158 = load i32, ptr %11, align 4
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds [100 x i32], ptr %10, i64 0, i64 %159
store i32 %157, ptr %160, align 4
%161 = load i32, ptr %11, align 4
%162 = add nsw i32 %161, 1
store i32 %162, ptr %11, align 4
br label %173
163: ; preds = %147
%164 = load i32, ptr %3, align 4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %165
%167 = load i32, ptr %166, align 4
%168 = load i32, ptr %9, align 4
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds [100 x i32], ptr %8, i64 0, i64 %169
store i32 %167, ptr %170, align 4
%171 = load i32, ptr %9, align 4
%172 = add nsw i32 %171, 1
store i32 %172, ptr %9, align 4
br label %173
173: ; preds = %163, %153
br label %174
174: ; preds = %173
%175 = load i32, ptr %3, align 4
%176 = add nsw i32 %175, 1
store i32 %176, ptr %3, align 4
%177 = load i32, ptr %3, align 4
%178 = icmp slt i32 %177, 100
br i1 %178, label %147, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %174
br label %179
179: ; preds = %._crit_edge12, %144
%180 = getelementptr inbounds [100 x i32], ptr %10, i64 0, i64 0
%181 = load i32, ptr %11, align 4
%182 = call i32 @sum_subset(ptr noundef %180, i32 noundef %181)
store i32 %182, ptr %13, align 4
%183 = getelementptr inbounds [100 x i32], ptr %8, i64 0, i64 0
%184 = load i32, ptr %9, align 4
%185 = call i32 @sum_subset(ptr noundef %183, i32 noundef %184)
store i32 %185, ptr %12, align 4
%186 = load i32, ptr %13, align 4
%187 = load i32, ptr %12, align 4
%188 = add nsw i32 %186, %187
%189 = call i32 @abs(i32 noundef %188) #3
store i32 %189, ptr %15, align 4
%190 = load i32, ptr %15, align 4
%191 = load i32, ptr %14, align 4
%192 = icmp slt i32 %190, %191
br i1 %192, label %193, label %212
193: ; preds = %179
%194 = load i32, ptr %15, align 4
store i32 %194, ptr %14, align 4
store i32 0, ptr %5, align 4
%195 = load i32, ptr %5, align 4
%196 = icmp slt i32 %195, 100
br i1 %196, label %.lr.ph14, label %211
.lr.ph14: ; preds = %193
br label %197
197: ; preds = %.lr.ph14, %206
%198 = load i32, ptr %5, align 4
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %199
%201 = load i32, ptr %200, align 4
%202 = load ptr, ptr %16, align 8
%203 = load i32, ptr %5, align 4
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds i32, ptr %202, i64 %204
store i32 %201, ptr %205, align 4
br label %206
206: ; preds = %197
%207 = load i32, ptr %5, align 4
%208 = add nsw i32 %207, 1
store i32 %208, ptr %5, align 4
%209 = load i32, ptr %5, align 4
%210 = icmp slt i32 %209, 100
br i1 %210, label %197, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %206
br label %211
211: ; preds = %._crit_edge15, %193
br label %212
212: ; preds = %211, %179
br label %213
213: ; preds = %212
%214 = load i32, ptr %6, align 4
%215 = add nsw i32 %214, 1
store i32 %215, ptr %6, align 4
%216 = load i32, ptr %6, align 4
%217 = load i32, ptr %2, align 4
%218 = icmp slt i32 %216, %217
br i1 %218, label %119, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %213
br label %219
219: ; preds = %._crit_edge18, %105
%220 = load i32, ptr %14, align 4
%221 = call i32 @printf(ptr noundef @.str, i32 noundef %220)
%222 = load ptr, ptr %16, align 8
ret ptr %222
}
declare i64 @malloc(i32 noundef) #1
declare i32 @rand(...) #1
declare i32 @sum_subset(ptr noundef, i32 noundef) #1
; Function Attrs: nounwind willreturn memory(none)
declare i32 @abs(i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(none) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
|
; ModuleID = '/tmp/tmp7pyasx6i.c'
source_filename = "/tmp/tmp7pyasx6i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @i_f(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
ret i32 0
}
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7pyasx6i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @i_f(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
ret i32 0
}
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5dboo6fp.c'
source_filename = "/tmp/tmp5dboo6fp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @puts(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %3
3: ; preds = %7, %1
%4 = load ptr, ptr %2, align 8
%5 = load i8, ptr %4, align 1
%6 = icmp ne i8 %5, 0
br i1 %6, label %7, label %13
7: ; preds = %3
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds i8, ptr %8, i32 1
store ptr %9, ptr %2, align 8
%10 = load i8, ptr %8, align 1
%11 = sext i8 %10 to i32
%12 = call i32 @DUART_PUTC(i32 noundef %11)
br label %3, !llvm.loop !6
13: ; preds = %3
ret i32 0
}
declare i32 @DUART_PUTC(i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5dboo6fp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @puts(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i8, ptr %3, align 1
%5 = icmp ne i8 %4, 0
br i1 %5, label %.lr.ph, label %15
.lr.ph: ; preds = %1
br label %6
6: ; preds = %.lr.ph, %6
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds i8, ptr %7, i32 1
store ptr %8, ptr %2, align 8
%9 = load i8, ptr %7, align 1
%10 = sext i8 %9 to i32
%11 = call i32 @DUART_PUTC(i32 noundef %10)
%12 = load ptr, ptr %2, align 8
%13 = load i8, ptr %12, align 1
%14 = icmp ne i8 %13, 0
br i1 %14, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %15
15: ; preds = %._crit_edge, %1
ret i32 0
}
declare i32 @DUART_PUTC(i32 noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9q6qd3uh.c'
source_filename = "/tmp/tmp9q6qd3uh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"echo \22%s\22 \09\09\09\09|mail [email protected]\09\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mail_tim(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [1024 x i8], align 16
store ptr %0, ptr %2, align 8
%4 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%5 = load ptr, ptr %2, align 8
%6 = call i32 @sprintf(ptr noundef %4, ptr noundef @.str, ptr noundef %5)
%7 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%8 = call i64 @system(ptr noundef %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %1
br label %11
11: ; preds = %10, %1
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @system(ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9q6qd3uh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"echo \22%s\22 \09\09\09\09|mail [email protected]\09\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mail_tim(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [1024 x i8], align 16
store ptr %0, ptr %2, align 8
%4 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%5 = load ptr, ptr %2, align 8
%6 = call i32 @sprintf(ptr noundef %4, ptr noundef @.str, ptr noundef %5)
%7 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%8 = call i64 @system(ptr noundef %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %1
br label %11
11: ; preds = %10, %1
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @system(ptr noundef) #1
attributes #0 = { noinline 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,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!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}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.