Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int main(void)
{
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_106794/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_106794/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(void) {
int x;
scanf("%d",&x);
x=x*x*x;
printf("%d\n",x);
// your code goes here
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_106837/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_106837/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
store i32 %mul1, ptr %x, align 4, !tbaa !5
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(void)
{
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_106895/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_106895/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(void)
{
int a;
scanf("%d",&a);
printf("%d\n",a*a*a); //%dに対応する部分に式を書いても良い
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_106938/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_106938/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%0 = load i32, ptr %a, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(void){
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_106981/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_106981/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(void){
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_107030/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_107030/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main (void){
int x;
scanf("%d",&x);
x = x * x * x;
printf("%d\n",x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_107081/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_107081/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
store i32 %mul1, ptr %x, align 4, !tbaa !5
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(void)
{
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_107124/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_107124/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
typedef unsigned u;
int main()
{
u n,k,a,b,c,d,st,fi;
scanf("%u%u",&n,&k);
if(n==4||(n>4&&k<n+1)){printf("-1\n");return 0;}
scanf("%u%u%u%u",&a,&b,&c,&d);
for(st=1;st==a||st==b||st==c||st==d;++st);
for(fi=n;fi==a||fi==b||fi==c||fi==d;--fi);
printf("%u %u",a,c);
for(k=st-1;++k<=fi;)if(k!=a&&k!=b&&k!=c&&k!=d)printf(" %u",k);
printf(" %u %u\n",d,b);
printf("%u %u",c,a);
for(k=st-1;++k<=fi;)if(k!=a&&k!=b&&k!=c&&k!=d)printf(" %u",k);
printf(" %u %u\n",b,d);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10719/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10719/source.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"%u%u\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"%u%u%u%u\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%u %u\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c" %u\00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c" %u %u\0A\00", align 1
@str = private unnamed_addr constant [3 x i8] c"-1\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n = alloca i32, align 4
%k = alloca i32, align 4
%a = alloca i32, align 4
%b = alloca i32, align 4
%c = alloca i32, align 4
%d = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %k) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %c) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %d) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n, ptr noundef nonnull %k)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp eq i32 %0, 4
br i1 %cmp, label %if.then, label %lor.lhs.false
lor.lhs.false: ; preds = %entry
%cmp1 = icmp ugt i32 %0, 4
br i1 %cmp1, label %land.lhs.true, label %if.end
land.lhs.true: ; preds = %lor.lhs.false
%1 = load i32, ptr %k, align 4, !tbaa !5
%add = add i32 %0, 1
%cmp2 = icmp ult i32 %1, %add
br i1 %cmp2, label %if.then, label %if.end
if.then: ; preds = %land.lhs.true, %entry
%puts = call i32 @puts(ptr nonnull dereferenceable(1) @str)
br label %cleanup
if.end: ; preds = %land.lhs.true, %lor.lhs.false
%call4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %a, ptr noundef nonnull %b, ptr noundef nonnull %c, ptr noundef nonnull %d)
%2 = load i32, ptr %a, align 4, !tbaa !5
%3 = load i32, ptr %b, align 4
%4 = load i32, ptr %c, align 4
%5 = load i32, ptr %d, align 4
br label %for.cond
for.cond: ; preds = %for.cond, %if.end
%st.0 = phi i32 [ 1, %if.end ], [ %inc, %for.cond ]
%cmp5 = icmp eq i32 %st.0, %2
%cmp7 = icmp eq i32 %st.0, %3
%or.cond = select i1 %cmp5, i1 true, i1 %cmp7
%cmp9 = icmp eq i32 %st.0, %4
%or.cond79 = select i1 %or.cond, i1 true, i1 %cmp9
%cmp10 = icmp eq i32 %st.0, %5
%or.cond80 = select i1 %or.cond79, i1 true, i1 %cmp10
%inc = add i32 %st.0, 1
br i1 %or.cond80, label %for.cond, label %for.end, !llvm.loop !9
for.end: ; preds = %for.cond
%6 = load i32, ptr %n, align 4, !tbaa !5
br label %for.cond11
for.cond11: ; preds = %for.inc21, %for.end
%fi.0 = phi i32 [ %6, %for.end ], [ %dec, %for.inc21 ]
%cmp12 = icmp eq i32 %fi.0, %2
%cmp14 = icmp eq i32 %fi.0, %3
%or.cond81 = select i1 %cmp12, i1 true, i1 %cmp14
br i1 %or.cond81, label %for.inc21, label %lor.lhs.false15
lor.lhs.false15: ; preds = %for.cond11
%cmp16 = icmp eq i32 %fi.0, %4
%cmp18 = icmp eq i32 %fi.0, %5
%or.cond82 = select i1 %cmp16, i1 true, i1 %cmp18
br i1 %or.cond82, label %for.inc21, label %for.end22
for.inc21: ; preds = %lor.lhs.false15, %for.cond11
%dec = add i32 %fi.0, -1
br label %for.cond11, !llvm.loop !11
for.end22: ; preds = %lor.lhs.false15
%call23 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %2, i32 noundef %4)
store i32 %st.0, ptr %k, align 4, !tbaa !5
%cmp26.not93 = icmp ugt i32 %st.0, %fi.0
br i1 %cmp26.not93, label %for.end56.critedge, label %for.body27
for.body27: ; preds = %for.end22, %if.end37
%inc2594 = phi i32 [ %inc25, %if.end37 ], [ %st.0, %for.end22 ]
%7 = load i32, ptr %a, align 4, !tbaa !5
%cmp28.not = icmp eq i32 %inc2594, %7
%8 = load i32, ptr %b, align 4
%cmp30.not = icmp eq i32 %inc2594, %8
%or.cond83 = select i1 %cmp28.not, i1 true, i1 %cmp30.not
%9 = load i32, ptr %c, align 4
%cmp32.not = icmp eq i32 %inc2594, %9
%or.cond84 = select i1 %or.cond83, i1 true, i1 %cmp32.not
%10 = load i32, ptr %d, align 4
%cmp34.not = icmp eq i32 %inc2594, %10
%or.cond85 = select i1 %or.cond84, i1 true, i1 %cmp34.not
br i1 %or.cond85, label %if.end37, label %if.then35
if.then35: ; preds = %for.body27
%call36 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %inc2594)
%.pre = load i32, ptr %k, align 4, !tbaa !5
br label %if.end37
if.end37: ; preds = %if.then35, %for.body27
%11 = phi i32 [ %.pre, %if.then35 ], [ %inc2594, %for.body27 ]
%inc25 = add i32 %11, 1
store i32 %inc25, ptr %k, align 4, !tbaa !5
%cmp26.not = icmp ugt i32 %inc25, %fi.0
br i1 %cmp26.not, label %for.end38, label %for.body27, !llvm.loop !12
for.end38: ; preds = %if.end37
%12 = load i32, ptr %d, align 4, !tbaa !5
%13 = load i32, ptr %b, align 4, !tbaa !5
%call39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %12, i32 noundef %13)
%14 = load i32, ptr %c, align 4, !tbaa !5
%15 = load i32, ptr %a, align 4, !tbaa !5
%call40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %14, i32 noundef %15)
store i32 %st.0, ptr %k, align 4, !tbaa !5
br i1 %cmp26.not93, label %for.end56, label %for.body45
for.body45: ; preds = %for.end38, %if.end55
%inc4397 = phi i32 [ %inc43, %if.end55 ], [ %st.0, %for.end38 ]
%16 = load i32, ptr %a, align 4, !tbaa !5
%cmp46.not = icmp eq i32 %inc4397, %16
%17 = load i32, ptr %b, align 4
%cmp48.not = icmp eq i32 %inc4397, %17
%or.cond86 = select i1 %cmp46.not, i1 true, i1 %cmp48.not
%18 = load i32, ptr %c, align 4
%cmp50.not = icmp eq i32 %inc4397, %18
%or.cond87 = select i1 %or.cond86, i1 true, i1 %cmp50.not
%19 = load i32, ptr %d, align 4
%cmp52.not = icmp eq i32 %inc4397, %19
%or.cond88 = select i1 %or.cond87, i1 true, i1 %cmp52.not
br i1 %or.cond88, label %if.end55, label %if.then53
if.then53: ; preds = %for.body45
%call54 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %inc4397)
%.pre98 = load i32, ptr %k, align 4, !tbaa !5
br label %if.end55
if.end55: ; preds = %if.then53, %for.body45
%20 = phi i32 [ %.pre98, %if.then53 ], [ %inc4397, %for.body45 ]
%inc43 = add i32 %20, 1
store i32 %inc43, ptr %k, align 4, !tbaa !5
%cmp44.not = icmp ugt i32 %inc43, %fi.0
br i1 %cmp44.not, label %for.end56, label %for.body45, !llvm.loop !13
for.end56.critedge: ; preds = %for.end22
%21 = load i32, ptr %d, align 4, !tbaa !5
%22 = load i32, ptr %b, align 4, !tbaa !5
%call39.c = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %21, i32 noundef %22)
%23 = load i32, ptr %c, align 4, !tbaa !5
%24 = load i32, ptr %a, align 4, !tbaa !5
%call40.c = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %23, i32 noundef %24)
store i32 %st.0, ptr %k, align 4, !tbaa !5
br label %for.end56
for.end56: ; preds = %if.end55, %for.end56.critedge, %for.end38
%25 = load i32, ptr %b, align 4, !tbaa !5
%26 = load i32, ptr %d, align 4, !tbaa !5
%call57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %25, i32 noundef %26)
br label %cleanup
cleanup: ; preds = %for.end56, %if.then
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %d) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %c) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %k) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #4
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 = { nofree nounwind }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
|
#include<stdio.h>
int main(void){
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_107232/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_107232/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(){
int x=1;
scanf("%d", &x);
x=x*x*x;
printf("%d\n", x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_107283/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_107283/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
store i32 1, ptr %x, align 4, !tbaa !5
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
store i32 %mul1, ptr %x, align 4, !tbaa !5
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main()
{
int x;
scanf("%d", &x);
printf("%d\n", x*x*x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_107326/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_107326/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(){
int num,result;
scanf("%d",&num);
result = num * num * num;
printf("%d\n", result);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_107384/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_107384/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%num = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %num) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %num)
%0 = load i32, ptr %num, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %num) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(){
int x,wa;
scanf("%d",&x);
wa =x*x*x;
printf("%d\n",wa);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_107427/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_107427/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(){
int a;
scanf("%d",&a);
a=a*a*a;
printf("%d\n",a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_107478/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_107478/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%0 = load i32, ptr %a, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
store i32 %mul1, ptr %a, align 4, !tbaa !5
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(void)
{
int a,b;
scanf("%d",&a);
b=a*a*a;
printf("%d\n",b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_107520/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_107520/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%0 = load i32, ptr %a, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(void)
{
int x;
scanf("%d",&x);
x=x*x*x;
printf("%d\n",x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_107564/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_107564/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
store i32 %mul1, ptr %x, align 4, !tbaa !5
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(int argc, char *argv[]) {
int x = 0;
scanf("%d", &x);
printf("%d\n", x*x*x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_107614/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_107614/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main(i32 noundef %argc, ptr nocapture noundef readnone %argv) local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
store i32 0, ptr %x, align 4, !tbaa !5
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(){
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_107658/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_107658/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(void){
int x;
scanf("%d", &x);
printf("%d\n", x * x * x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_107700/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_107700/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(){
int a;
scanf("%d",&a);
printf("%d\n",a*a*a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_107744/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_107744/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%0 = load i32, ptr %a, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(){
int x;
scanf("%d\n",&x);
printf("%d\n",x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_107788/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_107788/source.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 [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(void){
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_107830/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_107830/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(void)
{int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_107874/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_107874/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
#include <stdlib.h>
int main(void){
int x;
char str[5];
fgets(str,sizeof(str),stdin);
x=atoi(str);
printf("%d\n",x*x*x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_107917/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_107917/source.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"
@stdin = external local_unnamed_addr global ptr, align 8
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%str = alloca [5 x i8], align 1
call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %str) #4
%0 = load ptr, ptr @stdin, align 8, !tbaa !5
%call = call ptr @fgets(ptr noundef nonnull %str, i32 noundef 5, ptr noundef %0)
%call.i = call i64 @strtol(ptr nocapture noundef nonnull %str, ptr noundef null, i32 noundef 10) #4
%conv.i = trunc i64 %call.i to i32
%mul = mul nsw i32 %conv.i, %conv.i
%mul3 = mul nsw i32 %mul, %conv.i
%call4 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %mul3)
call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %str) #4
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nofree nounwind willreturn
declare i64 @strtol(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #3
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 = { mustprogress nofree nounwind willreturn "no-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 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
#include <math.h>
int main(void){
int num;
scanf("%d",&num);
printf("%0.f\n",pow(num,3.0));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_107960/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_107960/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%0.f\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%num = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %num) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %num)
%0 = load i32, ptr %num, align 4, !tbaa !5
%conv = sitofp i32 %0 to double
%call1 = call double @pow(double noundef %conv, double noundef 3.000000e+00) #4
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %call1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %num) #4
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 = { mustprogress nofree nounwind willreturn memory(write) "no-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 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(void)
{
int x;
scanf("%d" , &x);
int rsl = x * x * x;
printf("%d\n" , rsl);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108002/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108002/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(void){
// Here your code !
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108053/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108053/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(void){
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108097/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108097/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(void);
int main(void) {
int a;
scanf("%d",&a);
printf("%d\n",a*a*a);
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108147/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108147/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%0 = load i32, ptr %a, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(void) {
int x;
scanf("%d", &x);
printf("%d\n", x * x * x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108198/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108198/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(){
int x;
scanf("%d", &x);
printf("%d\n", x*x*x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108240/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108240/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(){
int x;
scanf("%d", &x);
printf("%d\n", x*x*x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108284/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108284/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(void){
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108334/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108334/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(){
int x;
scanf("%d", &x);
printf("%d\n", x*x*x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108378/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108378/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(void)
{
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108428/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108428/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(){
int a;
scanf("%d", &a);
printf("%d\n", a*a*a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108471/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108471/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%0 = load i32, ptr %a, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(){
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108521/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108521/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(void){
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108565/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108565/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(){
int x;
scanf("%d", &x);
printf("%d\n",x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108608/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108608/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(void){
int x,y;
scanf("%d",&x);
y=x*x*x;
printf("%d\n",y);
return 0;// Your code here!
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108659/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108659/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
#include <stdlib.h>
int main()
{
int x = 0;
scanf("%d", &x);
printf("%d\n", x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108701/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108701/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
store i32 0, ptr %x, align 4, !tbaa !5
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(){
int x;
scanf("%d", &x);
printf("%d\n", x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108752/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108752/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(){
int x;
scanf("%d", &x);
printf("%d\n" ,x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108802/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108802/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(){
int num,i;
int x=1;
scanf("%d",&num);
x=num*num*num;
printf("%d\n",x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108853/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108853/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%num = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %num) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %num)
%0 = load i32, ptr %num, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %num) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(void){
int x;
scanf("%d",&x);
x=x*x*x;
printf("%d\n",x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108897/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108897/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
store i32 %mul1, ptr %x, align 4, !tbaa !5
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(){
int x;
int cubic;
scanf("%d", &x);
cubic=x*x*x;
printf("%d\n", cubic);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108947/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108947/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(void)
{
int x;
int y;
scanf("%d",&x);
y=x*x*x;
printf("%d\n",y);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108990/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108990/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(){
int x;
scanf("%d",&x);
x = x*x*x;
printf("%d\n",x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109032/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109032/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
store i32 %mul1, ptr %x, align 4, !tbaa !5
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main()
{
int x;
scanf("%d", &x);
printf("%d\n", x * x * x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109076/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109076/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(void){
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109119/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109119/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main (){
int x,y,hard;
scanf("%d",&x);
hard=0;
while(x--){
scanf("%d",&y);
if (y) hard=1;
}
if (hard) printf("HARD");
else printf("EASY");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10917/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10917/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"HARD\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"EASY\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
%y = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %y) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%dec8 = add nsw i32 %0, -1
store i32 %dec8, ptr %x, align 4, !tbaa !5
%tobool.not9 = icmp eq i32 %0, 0
br i1 %tobool.not9, label %if.else, label %while.body
while.body: ; preds = %entry, %while.body
%hard.010 = phi i32 [ %spec.select, %while.body ], [ 0, %entry ]
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %y)
%1 = load i32, ptr %y, align 4, !tbaa !5
%tobool2.not = icmp eq i32 %1, 0
%spec.select = select i1 %tobool2.not, i32 %hard.010, i32 1
%2 = load i32, ptr %x, align 4, !tbaa !5
%dec = add nsw i32 %2, -1
store i32 %dec, ptr %x, align 4, !tbaa !5
%tobool.not = icmp eq i32 %2, 0
br i1 %tobool.not, label %while.end, label %while.body, !llvm.loop !9
while.end: ; preds = %while.body
%3 = icmp eq i32 %spec.select, 0
br i1 %3, label %if.else, label %if.end7
if.else: ; preds = %entry, %while.end
br label %if.end7
if.end7: ; preds = %while.end, %if.else
%.str.2.sink = phi ptr [ @.str.2, %if.else ], [ @.str.1, %while.end ]
%call6 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2.sink)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %y) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
|
#include <stdio.h>
int main(){
int a,ans;
scanf("%d",&a);
ans = ((a*a)*a);
printf("%d\n",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109212/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109212/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%0 = load i32, ptr %a, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(void) {
int x,y;
scanf("%d",&x);
y=x*x*x;
printf("%d\n",y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109256/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109256/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main()
{
int t;
scanf("%d", &t);
while (t--)
{
int n,tempt=0,tempt2=0;
scanf("%d", &n);
int arr[n],arr2[n];
for (int i = 0; i < n; i++)
{
scanf("%d", &arr[i]);
}
for (int i = 0; i < n; i++)
{
if(arr[i]%2==0){
arr2[tempt2]=arr[i];
tempt2++;
}
else{
arr2[n-1-tempt]=arr[i];
tempt++;
}
}
for (int i = 0; i < n; i++)
{
printf("%d ",arr2[i]);
}
printf("\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1093/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1093/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%t = alloca i32, align 4
%n = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %t) #5
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %t)
%0 = load i32, ptr %t, align 4, !tbaa !5
%dec56 = add nsw i32 %0, -1
store i32 %dec56, ptr %t, align 4, !tbaa !5
%tobool.not57 = icmp eq i32 %0, 0
br i1 %tobool.not57, label %while.end, label %while.body
while.body: ; preds = %entry, %for.cond.cleanup29
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #5
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%1 = load i32, ptr %n, align 4, !tbaa !5
%2 = zext i32 %1 to i64
%3 = call ptr @llvm.stacksave.p0()
%vla = alloca i32, i64 %2, align 16
%4 = load i32, ptr %n, align 4, !tbaa !5
%5 = zext i32 %4 to i64
%vla2 = alloca i32, i64 %5, align 16
%cmp48 = icmp sgt i32 %4, 0
br i1 %cmp48, label %for.body, label %for.cond.cleanup29
for.cond5.preheader: ; preds = %for.body
%cmp650 = icmp sgt i32 %6, 0
br i1 %cmp650, label %for.body8.preheader, label %for.cond.cleanup29
for.body8.preheader: ; preds = %for.cond5.preheader
%wide.trip.count = zext i32 %6 to i64
br label %for.body8
for.body: ; preds = %while.body, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %while.body ]
%arrayidx = getelementptr inbounds i32, ptr %vla, i64 %indvars.iv
%call3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx)
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%6 = load i32, ptr %n, align 4, !tbaa !5
%7 = sext i32 %6 to i64
%cmp = icmp slt i64 %indvars.iv.next, %7
br i1 %cmp, label %for.body, label %for.cond5.preheader, !llvm.loop !9
for.cond27.preheader: ; preds = %for.inc23
br i1 %cmp650, label %for.body30, label %for.cond.cleanup29
for.body8: ; preds = %for.body8.preheader, %for.inc23
%indvars.iv60 = phi i64 [ 0, %for.body8.preheader ], [ %indvars.iv.next61, %for.inc23 ]
%tempt.052 = phi i32 [ 0, %for.body8.preheader ], [ %tempt.1, %for.inc23 ]
%tempt2.051 = phi i32 [ 0, %for.body8.preheader ], [ %tempt2.1, %for.inc23 ]
%arrayidx10 = getelementptr inbounds i32, ptr %vla, i64 %indvars.iv60
%8 = load i32, ptr %arrayidx10, align 4, !tbaa !5
%9 = and i32 %8, 1
%cmp11 = icmp eq i32 %9, 0
br i1 %cmp11, label %if.then, label %if.else
if.then: ; preds = %for.body8
%idxprom14 = sext i32 %tempt2.051 to i64
%arrayidx15 = getelementptr inbounds i32, ptr %vla2, i64 %idxprom14
store i32 %8, ptr %arrayidx15, align 4, !tbaa !5
%inc16 = add nsw i32 %tempt2.051, 1
br label %for.inc23
if.else: ; preds = %for.body8
%10 = xor i32 %tempt.052, -1
%sub19 = add i32 %6, %10
%idxprom20 = sext i32 %sub19 to i64
%arrayidx21 = getelementptr inbounds i32, ptr %vla2, i64 %idxprom20
store i32 %8, ptr %arrayidx21, align 4, !tbaa !5
%inc22 = add nsw i32 %tempt.052, 1
br label %for.inc23
for.inc23: ; preds = %if.then, %if.else
%tempt2.1 = phi i32 [ %inc16, %if.then ], [ %tempt2.051, %if.else ]
%tempt.1 = phi i32 [ %tempt.052, %if.then ], [ %inc22, %if.else ]
%indvars.iv.next61 = add nuw nsw i64 %indvars.iv60, 1
%exitcond.not = icmp eq i64 %indvars.iv.next61, %wide.trip.count
br i1 %exitcond.not, label %for.cond27.preheader, label %for.body8, !llvm.loop !11
for.cond.cleanup29: ; preds = %for.body30, %while.body, %for.cond5.preheader, %for.cond27.preheader
%putchar = call i32 @putchar(i32 10)
call void @llvm.stackrestore.p0(ptr %3)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #5
%11 = load i32, ptr %t, align 4, !tbaa !5
%dec = add nsw i32 %11, -1
store i32 %dec, ptr %t, align 4, !tbaa !5
%tobool.not = icmp eq i32 %11, 0
br i1 %tobool.not, label %while.end, label %while.body, !llvm.loop !12
for.body30: ; preds = %for.cond27.preheader, %for.body30
%indvars.iv63 = phi i64 [ %indvars.iv.next64, %for.body30 ], [ 0, %for.cond27.preheader ]
%arrayidx32 = getelementptr inbounds i32, ptr %vla2, i64 %indvars.iv63
%12 = load i32, ptr %arrayidx32, align 4, !tbaa !5
%call33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %12)
%indvars.iv.next64 = add nuw nsw i64 %indvars.iv63, 1
%13 = load i32, ptr %n, align 4, !tbaa !5
%14 = sext i32 %13 to i64
%cmp28 = icmp slt i64 %indvars.iv.next64, %14
br i1 %cmp28, label %for.body30, label %for.cond.cleanup29, !llvm.loop !13
while.end: ; preds = %for.cond.cleanup29, %entry
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %t) #5
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3
; Function Attrs: nofree nounwind
declare noundef i32 @putchar(i32 noundef) local_unnamed_addr #4
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #4 = { nofree nounwind }
attributes #5 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
|
#include<stdio.h>
int main()
{
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109342/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109342/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main()
{
int x,cube;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109386/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109386/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(){
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109429/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109429/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(void){
int x=0;
scanf("%d",&x);
x=x*x*x;
printf("%d\n",x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109487/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109487/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
store i32 0, ptr %x, align 4, !tbaa !5
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
store i32 %mul1, ptr %x, align 4, !tbaa !5
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main()
{
int n, i, j, a, cnt = 0;
scanf("%d", &n);
for (i = 0; i < n; i++)
{
scanf("%d", &a);
if (a == 1)
{
cnt++;
}
}
if (cnt != 0)
{
printf("HARD");
}
else
{
printf("EASY");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10953/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10953/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"HARD\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"EASY\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n = alloca i32, align 4
%a = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp11 = icmp sgt i32 %0, 0
br i1 %cmp11, label %for.body, label %if.else
for.body: ; preds = %entry, %for.body
%cnt.013 = phi i32 [ %spec.select, %for.body ], [ 0, %entry ]
%i.012 = phi i32 [ %inc3, %for.body ], [ 0, %entry ]
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%1 = load i32, ptr %a, align 4, !tbaa !5
%cmp2 = icmp eq i32 %1, 1
%inc = zext i1 %cmp2 to i32
%spec.select = add nuw nsw i32 %cnt.013, %inc
%inc3 = add nuw nsw i32 %i.012, 1
%2 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp slt i32 %inc3, %2
br i1 %cmp, label %for.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body
%3 = icmp eq i32 %spec.select, 0
br i1 %3, label %if.else, label %if.end8
if.else: ; preds = %entry, %for.end
br label %if.end8
if.end8: ; preds = %for.end, %if.else
%.str.2.sink = phi ptr [ @.str.2, %if.else ], [ @.str.1, %for.end ]
%call7 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2.sink)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
|
#include <stdio.h>
int main(void){
int x; //入力
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109573/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109573/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(void)
{
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109630/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109630/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(void){
int n;
scanf("%d",&n);
printf("%d\n",n*n*n);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109674/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109674/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(){
int x,y;
scanf("%d",&x);
y = x*x*x;
printf("%d\n",y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109724/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109724/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main() {
int a;
scanf("%d",&a);
printf("%d\n",a*a*a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109768/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109768/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%0 = load i32, ptr %a, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(void){
// Your rintcode here
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109810/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109810/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(void){
int a;
scanf("%d",&a);
printf("%d\n",a*a*a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109854/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109854/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%0 = load i32, ptr %a, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main() {
int n;
scanf("%d",&n);
printf("%d\n",n*n*n);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109898/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109898/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(void) {
int x = 0; scanf("%d", &x);
x = x * x * x;
printf("%d\n", x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109948/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109948/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
store i32 0, ptr %x, align 4, !tbaa !5
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
store i32 %mul1, ptr %x, align 4, !tbaa !5
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(){
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109991/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109991/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(void)
{
int x,ave;
scanf("%d",&x);
ave=x*x*x;
printf("%d\n",ave);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110032/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110032/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(){
int a;
scanf("%d", &a);
printf("%d\n", a*a*a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110076/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110076/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%0 = load i32, ptr %a, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(void){
int x,w;
scanf("%d",&x);
x=x*x*x;
printf("%d\n",x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110119/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110119/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
store i32 %mul1, ptr %x, align 4, !tbaa !5
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(void)
{
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110162/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110162/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%mul = mul nsw i32 %0, %0
%mul1 = mul nsw i32 %mul, %0
%call2 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %mul1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
#include <stdlib.h>
#define inf (int)(1e9 + 7)
typedef struct {
int *array;
int last;
int first;
}queue;
queue *make_queue(int maxN){
queue *q = (queue *)malloc(sizeof(queue));
q->array = (int *)malloc(sizeof(int) * maxN);
q->last = 0;
q->first = 0;
return q;
}
int element_num_queue(queue *q){
return q->first - q->last;
}
void add_data_queue(int val, queue *q){
q->array[q->first] = val;
q->first++;
}
int take_data_queue(queue *q){
if(element_num_queue(q) <= 0){
printf("no data in the queue\n");
}
q->last++;
return q->array[q->last - 1];
}
void flush_queue(queue *q){
q->last = 0;
q->first = 0;
}
int min(int a, int b){
return a <= b ? a : b;
}
//n:頂点数, s:始点の番号, t:終点の番号, e:(u, v)->f uからvへの容量
int Edmonds_Karp(int N, int s, int t, int **e){
int v, i, flow_sum = 0;
int *flow = (int *)malloc(sizeof(int) * N);//各頂点に流せるフロー
int *p = (int *)malloc(sizeof(int) * N);//増加道の履歴 前の頂点を入れる
queue *q = make_queue(N * N);
for(;;){
//初期化
for(i = 0; i < N; i++){
flow[i] = 0;
p[i] = -1;
}
flow[s] = inf;
p[s] = -2;
add_data_queue(s, q);
while(element_num_queue(q) > 0){
v = take_data_queue(q);
if(v == t){
break;
}
for(i = 0; i < N; i++){
if(e[v][i] > 0 && p[i] == -1){
p[i] = v;
flow[i] = min(flow[v], e[v][i]);
add_data_queue(i, q);
}
}
}
//増加道がなかった場合
if(flow[t] == 0){
break;
}
//残余ネットワークの構築
for(v = t; v != s; v = p[v]){
e[p[v]][v] -= flow[t];
e[v][p[v]] += flow[t];
}
flow_sum += flow[t];
flush_queue(q);
}
return flow_sum;
}
int main(){
int N, i, j, ans;
scanf("%d", &N);
int **E = (int **)malloc(sizeof(int *) * (2 * N + 2));
for(i = 0; i < 2 * N + 2; i++){
E[i] = (int *)malloc(sizeof(int) * (2 * N + 2));
for(j = 0; j < 2 * N + 2; j++){
E[i][j] = 0;
}
}
for(i = 1; i <= N; i++){
E[0][i] = 1;
}
for(i = N + 1; i <= 2 * N; i++){
E[i][2 * N + 1] = 1;
}
int *a = (int *)malloc(sizeof(int) * N);
int *b = (int *)malloc(sizeof(int) * N);
int *c = (int *)malloc(sizeof(int) * N);
int *d = (int *)malloc(sizeof(int) * N);
for(i = 0; i < N; i++){
scanf("%d%d", &a[i], &b[i]);
}
for(i = 0; i < N; i++){
scanf("%d%d", &c[i], &d[i]);
}
for(i = 0; i < N; i++){
for(j = 0; j < N; j++){
if(a[i] < c[j] && b[i] < d[j]){
E[1 + i][N + 1 + j] = 1;
}
}
}
/* for(i = 0; i < 2 * N + 2; i++){
for(j = 0; j < 2 * N + 2; j++){
printf("E[%d][%d] = %d\n", i, j, E[i][j]);
}
}
*/ ans = Edmonds_Karp(2 * N + 2, 0, 2 * N + 1, E);
printf("%d\n", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110205/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110205/source.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.queue = type { ptr, i32, i32 }
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%d%d\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@str = private unnamed_addr constant [21 x i8] c"no data in the queue\00", align 1
; Function Attrs: mustprogress nofree nounwind willreturn memory(write, argmem: none, inaccessiblemem: readwrite) uwtable
define dso_local noalias ptr @make_queue(i32 noundef %maxN) local_unnamed_addr #0 {
entry:
%call = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #12
%conv = sext i32 %maxN to i64
%mul = shl nsw i64 %conv, 2
%call1 = tail call noalias ptr @malloc(i64 noundef %mul) #12
store ptr %call1, ptr %call, align 8, !tbaa !5
%last = getelementptr inbounds %struct.queue, ptr %call, i64 0, i32 1
store i32 0, ptr %last, align 8, !tbaa !11
%first = getelementptr inbounds %struct.queue, ptr %call, i64 0, i32 2
store i32 0, ptr %first, align 4, !tbaa !12
ret ptr %call
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable
define dso_local i32 @element_num_queue(ptr nocapture noundef readonly %q) local_unnamed_addr #3 {
entry:
%first = getelementptr inbounds %struct.queue, ptr %q, i64 0, i32 2
%0 = load i32, ptr %first, align 4, !tbaa !12
%last = getelementptr inbounds %struct.queue, ptr %q, i64 0, i32 1
%1 = load i32, ptr %last, align 8, !tbaa !11
%sub = sub nsw i32 %0, %1
ret i32 %sub
}
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(write, argmem: readwrite, inaccessiblemem: none) uwtable
define dso_local void @add_data_queue(i32 noundef %val, ptr nocapture noundef %q) local_unnamed_addr #4 {
entry:
%0 = load ptr, ptr %q, align 8, !tbaa !5
%first = getelementptr inbounds %struct.queue, ptr %q, i64 0, i32 2
%1 = load i32, ptr %first, align 4, !tbaa !12
%idxprom = sext i32 %1 to i64
%arrayidx = getelementptr inbounds i32, ptr %0, i64 %idxprom
store i32 %val, ptr %arrayidx, align 4, !tbaa !13
%2 = load i32, ptr %first, align 4, !tbaa !12
%inc = add nsw i32 %2, 1
store i32 %inc, ptr %first, align 4, !tbaa !12
ret void
}
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @take_data_queue(ptr nocapture noundef %q) local_unnamed_addr #5 {
entry:
%first.i = getelementptr inbounds %struct.queue, ptr %q, i64 0, i32 2
%0 = load i32, ptr %first.i, align 4, !tbaa !12
%last.i = getelementptr inbounds %struct.queue, ptr %q, i64 0, i32 1
%1 = load i32, ptr %last.i, align 8, !tbaa !11
%cmp.not = icmp sgt i32 %0, %1
br i1 %cmp.not, label %if.end, label %if.then
if.then: ; preds = %entry
%puts = tail call i32 @puts(ptr nonnull dereferenceable(1) @str)
%.pre = load i32, ptr %last.i, align 8, !tbaa !11
br label %if.end
if.end: ; preds = %if.then, %entry
%2 = phi i32 [ %.pre, %if.then ], [ %1, %entry ]
%inc = add nsw i32 %2, 1
store i32 %inc, ptr %last.i, align 8, !tbaa !11
%3 = load ptr, ptr %q, align 8, !tbaa !5
%idxprom = sext i32 %2 to i64
%arrayidx = getelementptr inbounds i32, ptr %3, i64 %idxprom
%4 = load i32, ptr %arrayidx, align 4, !tbaa !13
ret i32 %4
}
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #6
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable
define dso_local void @flush_queue(ptr nocapture noundef writeonly %q) local_unnamed_addr #7 {
entry:
%last = getelementptr inbounds %struct.queue, ptr %q, i64 0, i32 1
store i32 0, ptr %last, align 8, !tbaa !11
%first = getelementptr inbounds %struct.queue, ptr %q, i64 0, i32 2
store i32 0, ptr %first, align 4, !tbaa !12
ret void
}
; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
define dso_local i32 @min(i32 noundef %a, i32 noundef %b) local_unnamed_addr #8 {
entry:
%cond = tail call i32 @llvm.smin.i32(i32 %a, i32 %b)
ret i32 %cond
}
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @Edmonds_Karp(i32 noundef %N, i32 noundef %s, i32 noundef %t, ptr nocapture noundef readonly %e) local_unnamed_addr #5 {
entry:
%conv = sext i32 %N to i64
%mul = shl nsw i64 %conv, 2
%call = tail call noalias ptr @malloc(i64 noundef %mul) #12
%call3 = tail call noalias ptr @malloc(i64 noundef %mul) #12
%mul4 = mul nsw i32 %N, %N
%conv.i = zext i32 %mul4 to i64
%mul.i = shl nuw nsw i64 %conv.i, 2
%call1.i = tail call noalias ptr @malloc(i64 noundef %mul.i) #12
%cmp151 = icmp sgt i32 %N, 0
%idxprom10 = sext i32 %s to i64
%arrayidx11 = getelementptr inbounds i32, ptr %call, i64 %idxprom10
%arrayidx13 = getelementptr inbounds i32, ptr %call3, i64 %idxprom10
%idxprom50 = sext i32 %t to i64
%arrayidx51 = getelementptr inbounds i32, ptr %call, i64 %idxprom50
%cmp57.not166 = icmp eq i32 %t, %s
br i1 %cmp151, label %for.cond.us.preheader, label %entry.split
for.cond.us.preheader: ; preds = %entry
%0 = zext i32 %N to i64
%1 = shl nuw nsw i64 %0, 2
%arrayidx71.us.phi.trans.insert = getelementptr inbounds ptr, ptr %e, i64 %idxprom50
br label %take_data_queue.exit.us.us.preheader
take_data_queue.exit.us.us.preheader: ; preds = %for.end79.us, %for.cond.us.preheader
%flow_sum.0.us = phi i32 [ %add82.us, %for.end79.us ], [ 0, %for.cond.us.preheader ]
tail call void @llvm.memset.p0.i64(ptr align 4 %call, i8 0, i64 %1, i1 false), !tbaa !13
tail call void @llvm.memset.p0.i64(ptr align 4 %call3, i8 -1, i64 %1, i1 false), !tbaa !13
store i32 1000000007, ptr %arrayidx11, align 4, !tbaa !13
store i32 -2, ptr %arrayidx13, align 4, !tbaa !13
store i32 %s, ptr %call1.i, align 4, !tbaa !13
br label %take_data_queue.exit.us.us
while.end.us: ; preds = %for.cond20.while.cond.loopexit_crit_edge.us.us, %take_data_queue.exit.us.us
%2 = load i32, ptr %arrayidx51, align 4, !tbaa !13
%cmp52.us = icmp eq i32 %2, 0
br i1 %cmp52.us, label %for.end83, label %for.cond56.preheader.us
for.body59.us: ; preds = %for.body59.us.preheader, %for.body59.us
%3 = phi ptr [ %5, %for.body59.us ], [ %.pre297, %for.body59.us.preheader ]
%v.0167.us = phi i32 [ %4, %for.body59.us ], [ %t, %for.body59.us.preheader ]
%idxprom62.us = sext i32 %v.0167.us to i64
%arrayidx63.us = getelementptr inbounds i32, ptr %call3, i64 %idxprom62.us
%4 = load i32, ptr %arrayidx63.us, align 4, !tbaa !13
%idxprom64.us = sext i32 %4 to i64
%arrayidx65.us = getelementptr inbounds ptr, ptr %e, i64 %idxprom64.us
%5 = load ptr, ptr %arrayidx65.us, align 8, !tbaa !14
%arrayidx67.us = getelementptr inbounds i32, ptr %5, i64 %idxprom62.us
%6 = load i32, ptr %arrayidx67.us, align 4, !tbaa !13
%sub.us = sub nsw i32 %6, %2
store i32 %sub.us, ptr %arrayidx67.us, align 4, !tbaa !13
%arrayidx75.us = getelementptr inbounds i32, ptr %3, i64 %idxprom64.us
%7 = load i32, ptr %arrayidx75.us, align 4, !tbaa !13
%add.us = add nsw i32 %7, %2
store i32 %add.us, ptr %arrayidx75.us, align 4, !tbaa !13
%cmp57.not.us = icmp eq i32 %4, %s
br i1 %cmp57.not.us, label %for.end79.us, label %for.body59.us, !llvm.loop !15
for.end79.us: ; preds = %for.body59.us, %for.cond56.preheader.us
%add82.us = add nsw i32 %2, %flow_sum.0.us
br label %take_data_queue.exit.us.us.preheader
for.cond56.preheader.us: ; preds = %while.end.us
br i1 %cmp57.not166, label %for.end79.us, label %for.body59.us.preheader
for.body59.us.preheader: ; preds = %for.cond56.preheader.us
%.pre297 = load ptr, ptr %arrayidx71.us.phi.trans.insert, align 8, !tbaa !14
br label %for.body59.us
take_data_queue.exit.us.us: ; preds = %take_data_queue.exit.us.us.preheader, %for.cond20.while.cond.loopexit_crit_edge.us.us
%indvars.iv294 = phi i64 [ 0, %take_data_queue.exit.us.us.preheader ], [ %indvars.iv.next295, %for.cond20.while.cond.loopexit_crit_edge.us.us ]
%8 = phi i32 [ 1, %take_data_queue.exit.us.us.preheader ], [ %15, %for.cond20.while.cond.loopexit_crit_edge.us.us ]
%indvars.iv.next295 = add nuw nsw i64 %indvars.iv294, 1
%arrayidx.i144.us.us = getelementptr inbounds i32, ptr %call1.i, i64 %indvars.iv294
%9 = load i32, ptr %arrayidx.i144.us.us, align 4, !tbaa !13
%cmp18.us.us = icmp eq i32 %9, %t
br i1 %cmp18.us.us, label %while.end.us, label %for.cond20.preheader.us.us
for.body23.us.us: ; preds = %for.cond20.preheader.us.us, %for.inc47.us.us
%indvars.iv291 = phi i64 [ 0, %for.cond20.preheader.us.us ], [ %indvars.iv.next292, %for.inc47.us.us ]
%10 = phi i32 [ %8, %for.cond20.preheader.us.us ], [ %15, %for.inc47.us.us ]
%arrayidx27.us.us = getelementptr inbounds i32, ptr %16, i64 %indvars.iv291
%11 = load i32, ptr %arrayidx27.us.us, align 4, !tbaa !13
%cmp28.us.us = icmp sgt i32 %11, 0
br i1 %cmp28.us.us, label %land.lhs.true.us.us, label %for.inc47.us.us
land.lhs.true.us.us: ; preds = %for.body23.us.us
%arrayidx31.us.us = getelementptr inbounds i32, ptr %call3, i64 %indvars.iv291
%12 = load i32, ptr %arrayidx31.us.us, align 4, !tbaa !13
%cmp32.us.us = icmp eq i32 %12, -1
br i1 %cmp32.us.us, label %if.then34.us.us, label %for.inc47.us.us
if.then34.us.us: ; preds = %land.lhs.true.us.us
store i32 %9, ptr %arrayidx31.us.us, align 4, !tbaa !13
%13 = load i32, ptr %arrayidx38.us.us, align 4, !tbaa !13
%cond.i.us.us = tail call i32 @llvm.smin.i32(i32 %13, i32 %11)
%arrayidx45.us.us = getelementptr inbounds i32, ptr %call, i64 %indvars.iv291
store i32 %cond.i.us.us, ptr %arrayidx45.us.us, align 4, !tbaa !13
%idxprom.i146.us.us = sext i32 %10 to i64
%arrayidx.i147.us.us = getelementptr inbounds i32, ptr %call1.i, i64 %idxprom.i146.us.us
%14 = trunc i64 %indvars.iv291 to i32
store i32 %14, ptr %arrayidx.i147.us.us, align 4, !tbaa !13
%inc.i148.us.us = add nsw i32 %10, 1
br label %for.inc47.us.us
for.inc47.us.us: ; preds = %if.then34.us.us, %land.lhs.true.us.us, %for.body23.us.us
%15 = phi i32 [ %10, %for.body23.us.us ], [ %10, %land.lhs.true.us.us ], [ %inc.i148.us.us, %if.then34.us.us ]
%indvars.iv.next292 = add nuw nsw i64 %indvars.iv291, 1
%exitcond.not = icmp eq i64 %indvars.iv.next292, %0
br i1 %exitcond.not, label %for.cond20.while.cond.loopexit_crit_edge.us.us, label %for.body23.us.us, !llvm.loop !17
for.cond20.preheader.us.us: ; preds = %take_data_queue.exit.us.us
%idxprom24.us.us = sext i32 %9 to i64
%arrayidx25.us.us = getelementptr inbounds ptr, ptr %e, i64 %idxprom24.us.us
%16 = load ptr, ptr %arrayidx25.us.us, align 8, !tbaa !14
%arrayidx38.us.us = getelementptr inbounds i32, ptr %call, i64 %idxprom24.us.us
br label %for.body23.us.us
for.cond20.while.cond.loopexit_crit_edge.us.us: ; preds = %for.inc47.us.us
%17 = sext i32 %15 to i64
%cmp15.us.us = icmp slt i64 %indvars.iv.next295, %17
br i1 %cmp15.us.us, label %take_data_queue.exit.us.us, label %while.end.us, !llvm.loop !18
entry.split: ; preds = %entry
br i1 %cmp57.not166, label %while.end.us179, label %for.cond.preheader
while.end.us179: ; preds = %entry.split, %while.end.us179
%flow_sum.0.us176 = phi i32 [ %add82.us183, %while.end.us179 ], [ 0, %entry.split ]
store i32 1000000007, ptr %arrayidx11, align 4, !tbaa !13
%18 = load i32, ptr %arrayidx51, align 4, !tbaa !13
%cmp52.us181 = icmp eq i32 %18, 0
%add82.us183 = add nsw i32 %18, %flow_sum.0.us176
br i1 %cmp52.us181, label %for.end83, label %while.end.us179
for.cond.preheader: ; preds = %entry.split
%arrayidx71.phi.trans.insert = getelementptr inbounds ptr, ptr %e, i64 %idxprom50
store i32 1000000007, ptr %arrayidx11, align 4, !tbaa !13
store i32 -2, ptr %arrayidx13, align 4, !tbaa !13
%19 = load i32, ptr %arrayidx51, align 4, !tbaa !13
%cmp52301 = icmp eq i32 %19, 0
br i1 %cmp52301, label %for.end83, label %for.body59.preheader.preheader
for.body59.preheader.preheader: ; preds = %for.cond.preheader
%.pre = load ptr, ptr %arrayidx71.phi.trans.insert, align 8, !tbaa !14
br label %for.body59.preheader
for.body59.preheader: ; preds = %for.body59.preheader.preheader, %for.cond56.for.end79_crit_edge
%20 = phi i32 [ %26, %for.cond56.for.end79_crit_edge ], [ %19, %for.body59.preheader.preheader ]
%flow_sum.0302 = phi i32 [ %add82, %for.cond56.for.end79_crit_edge ], [ 0, %for.body59.preheader.preheader ]
br label %for.body59
for.body59: ; preds = %for.body59.preheader, %for.body59
%21 = phi ptr [ %23, %for.body59 ], [ %.pre, %for.body59.preheader ]
%v.0167 = phi i32 [ %22, %for.body59 ], [ %t, %for.body59.preheader ]
%idxprom62 = sext i32 %v.0167 to i64
%arrayidx63 = getelementptr inbounds i32, ptr %call3, i64 %idxprom62
%22 = load i32, ptr %arrayidx63, align 4, !tbaa !13
%idxprom64 = sext i32 %22 to i64
%arrayidx65 = getelementptr inbounds ptr, ptr %e, i64 %idxprom64
%23 = load ptr, ptr %arrayidx65, align 8, !tbaa !14
%arrayidx67 = getelementptr inbounds i32, ptr %23, i64 %idxprom62
%24 = load i32, ptr %arrayidx67, align 4, !tbaa !13
%sub = sub nsw i32 %24, %20
store i32 %sub, ptr %arrayidx67, align 4, !tbaa !13
%arrayidx75 = getelementptr inbounds i32, ptr %21, i64 %idxprom64
%25 = load i32, ptr %arrayidx75, align 4, !tbaa !13
%add = add nsw i32 %25, %20
store i32 %add, ptr %arrayidx75, align 4, !tbaa !13
%cmp57.not = icmp eq i32 %22, %s
br i1 %cmp57.not, label %for.cond56.for.end79_crit_edge, label %for.body59, !llvm.loop !15
for.cond56.for.end79_crit_edge: ; preds = %for.body59
%add82 = add nsw i32 %20, %flow_sum.0302
store i32 1000000007, ptr %arrayidx11, align 4, !tbaa !13
store i32 -2, ptr %arrayidx13, align 4, !tbaa !13
%26 = load i32, ptr %arrayidx51, align 4, !tbaa !13
%cmp52 = icmp eq i32 %26, 0
br i1 %cmp52, label %for.end83, label %for.body59.preheader
for.end83: ; preds = %for.cond56.for.end79_crit_edge, %while.end.us179, %while.end.us, %for.cond.preheader
%.us-phi173 = phi i32 [ 0, %for.cond.preheader ], [ %flow_sum.0.us, %while.end.us ], [ %flow_sum.0.us176, %while.end.us179 ], [ %add82, %for.cond56.for.end79_crit_edge ]
ret i32 %.us-phi173
}
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #5 {
entry:
%N = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %N) #13
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %N)
%0 = load i32, ptr %N, align 4, !tbaa !13
%mul = shl i32 %0, 1
%add = add i32 %mul, 2
%conv = sext i32 %add to i64
%mul1 = shl nsw i64 %conv, 3
%call2 = call noalias ptr @malloc(i64 noundef %mul1) #12
%cmp168 = icmp sgt i32 %0, -1
br i1 %cmp168, label %for.body.us.preheader, label %for.cond35.preheader
for.body.us.preheader: ; preds = %entry
%mul9 = shl nsw i64 %conv, 2
%1 = or i32 %mul, 1
%smax192 = call i32 @llvm.smax.i32(i32 %1, i32 0)
%2 = zext i32 %smax192 to i64
%3 = shl nuw nsw i64 %2, 2
%4 = add nuw nsw i64 %3, 4
%smax199 = call i32 @llvm.smax.i32(i32 %add, i32 1)
%wide.trip.count200 = zext i32 %smax199 to i64
br label %for.body.us
for.body.us: ; preds = %for.body.us.preheader, %for.body.us
%indvars.iv196 = phi i64 [ 0, %for.body.us.preheader ], [ %indvars.iv.next197, %for.body.us ]
%call10.us = call noalias ptr @malloc(i64 noundef %mul9) #12
%arrayidx.us = getelementptr inbounds ptr, ptr %call2, i64 %indvars.iv196
store ptr %call10.us, ptr %arrayidx.us, align 8, !tbaa !14
call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %call10.us, i8 0, i64 %4, i1 false), !tbaa !13
%indvars.iv.next197 = add nuw nsw i64 %indvars.iv196, 1
%exitcond201.not = icmp eq i64 %indvars.iv.next197, %wide.trip.count200
br i1 %exitcond201.not, label %for.cond24.preheader, label %for.body.us, !llvm.loop !19
for.cond24.preheader: ; preds = %for.body.us
%cmp25.not170 = icmp slt i32 %0, 1
br i1 %cmp25.not170, label %for.cond35.preheader, label %for.body27.lr.ph
for.body27.lr.ph: ; preds = %for.cond24.preheader
%5 = load ptr, ptr %call2, align 8, !tbaa !14
br label %for.body27
for.cond35.preheader.loopexit: ; preds = %for.body27
%.pre222 = shl nsw i32 %8, 1
br label %for.cond35.preheader
for.cond35.preheader: ; preds = %entry, %for.cond35.preheader.loopexit, %for.cond24.preheader
%mul36172.pre-phi = phi i32 [ %.pre222, %for.cond35.preheader.loopexit ], [ %mul, %for.cond24.preheader ], [ %mul, %entry ]
%6 = phi i32 [ %8, %for.cond35.preheader.loopexit ], [ %0, %for.cond24.preheader ], [ %0, %entry ]
%cmp37.not.not173 = icmp slt i32 %6, %mul36172.pre-phi
br i1 %cmp37.not.not173, label %for.body39.preheader, label %for.end48
for.body39.preheader: ; preds = %for.cond35.preheader
%7 = sext i32 %6 to i64
br label %for.body39
for.body27: ; preds = %for.body27.lr.ph, %for.body27
%indvars.iv202 = phi i64 [ 1, %for.body27.lr.ph ], [ %indvars.iv.next203, %for.body27 ]
%arrayidx30 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv202
store i32 1, ptr %arrayidx30, align 4, !tbaa !13
%indvars.iv.next203 = add nuw nsw i64 %indvars.iv202, 1
%8 = load i32, ptr %N, align 4, !tbaa !13
%9 = sext i32 %8 to i64
%cmp25.not.not = icmp slt i64 %indvars.iv202, %9
br i1 %cmp25.not.not, label %for.body27, label %for.cond35.preheader.loopexit, !llvm.loop !20
for.body39: ; preds = %for.body39.preheader, %for.body39
%indvars.iv205 = phi i64 [ %7, %for.body39.preheader ], [ %indvars.iv.next206, %for.body39 ]
%mul36175 = phi i32 [ %mul36172.pre-phi, %for.body39.preheader ], [ %mul36, %for.body39 ]
%indvars.iv.next206 = add nsw i64 %indvars.iv205, 1
%arrayidx41 = getelementptr inbounds ptr, ptr %call2, i64 %indvars.iv.next206
%10 = load ptr, ptr %arrayidx41, align 8, !tbaa !14
%add43 = or i32 %mul36175, 1
%idxprom44 = sext i32 %add43 to i64
%arrayidx45 = getelementptr inbounds i32, ptr %10, i64 %idxprom44
store i32 1, ptr %arrayidx45, align 4, !tbaa !13
%11 = load i32, ptr %N, align 4, !tbaa !13
%mul36 = shl nsw i32 %11, 1
%12 = sext i32 %mul36 to i64
%cmp37.not.not = icmp slt i64 %indvars.iv.next206, %12
br i1 %cmp37.not.not, label %for.body39, label %for.end48, !llvm.loop !21
for.end48: ; preds = %for.body39, %for.cond35.preheader
%13 = phi i32 [ %6, %for.cond35.preheader ], [ %11, %for.body39 ]
%conv49 = sext i32 %13 to i64
%mul50 = shl nsw i64 %conv49, 2
%call51 = call noalias ptr @malloc(i64 noundef %mul50) #12
%call54 = call noalias ptr @malloc(i64 noundef %mul50) #12
%call57 = call noalias ptr @malloc(i64 noundef %mul50) #12
%call60 = call noalias ptr @malloc(i64 noundef %mul50) #12
%cmp62177 = icmp sgt i32 %13, 0
br i1 %cmp62177, label %for.body64, label %for.end117
for.cond73.preheader: ; preds = %for.body64
%cmp74179 = icmp sgt i32 %14, 0
br i1 %cmp74179, label %for.body76, label %for.end117
for.body64: ; preds = %for.end48, %for.body64
%indvars.iv208 = phi i64 [ %indvars.iv.next209, %for.body64 ], [ 0, %for.end48 ]
%arrayidx66 = getelementptr inbounds i32, ptr %call51, i64 %indvars.iv208
%arrayidx68 = getelementptr inbounds i32, ptr %call54, i64 %indvars.iv208
%call69 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef %arrayidx66, ptr noundef %arrayidx68)
%indvars.iv.next209 = add nuw nsw i64 %indvars.iv208, 1
%14 = load i32, ptr %N, align 4, !tbaa !13
%15 = sext i32 %14 to i64
%cmp62 = icmp slt i64 %indvars.iv.next209, %15
br i1 %cmp62, label %for.body64, label %for.cond73.preheader, !llvm.loop !22
for.cond85.preheader: ; preds = %for.body76
%cmp86183 = icmp sgt i32 %16, 0
br i1 %cmp86183, label %for.cond89.preheader, label %for.end117
for.body76: ; preds = %for.cond73.preheader, %for.body76
%indvars.iv211 = phi i64 [ %indvars.iv.next212, %for.body76 ], [ 0, %for.cond73.preheader ]
%arrayidx78 = getelementptr inbounds i32, ptr %call57, i64 %indvars.iv211
%arrayidx80 = getelementptr inbounds i32, ptr %call60, i64 %indvars.iv211
%call81 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef %arrayidx78, ptr noundef %arrayidx80)
%indvars.iv.next212 = add nuw nsw i64 %indvars.iv211, 1
%16 = load i32, ptr %N, align 4, !tbaa !13
%17 = sext i32 %16 to i64
%cmp74 = icmp slt i64 %indvars.iv.next212, %17
br i1 %cmp74, label %for.body76, label %for.cond85.preheader, !llvm.loop !23
for.cond89.preheader: ; preds = %for.cond85.preheader, %for.inc115
%18 = phi i32 [ %32, %for.inc115 ], [ %16, %for.cond85.preheader ]
%indvars.iv218 = phi i64 [ %indvars.iv.next219.pre-phi, %for.inc115 ], [ 0, %for.cond85.preheader ]
%cmp90181 = icmp sgt i32 %18, 0
br i1 %cmp90181, label %for.body92.lr.ph, label %for.cond89.preheader.for.inc115_crit_edge
for.cond89.preheader.for.inc115_crit_edge: ; preds = %for.cond89.preheader
%.pre223 = add nuw nsw i64 %indvars.iv218, 1
br label %for.inc115
for.body92.lr.ph: ; preds = %for.cond89.preheader
%arrayidx94 = getelementptr inbounds i32, ptr %call51, i64 %indvars.iv218
%arrayidx100 = getelementptr inbounds i32, ptr %call54, i64 %indvars.iv218
%19 = add nuw nsw i64 %indvars.iv218, 1
%arrayidx107 = getelementptr inbounds ptr, ptr %call2, i64 %19
br label %for.body92
for.body92: ; preds = %for.body92.lr.ph, %for.inc112
%20 = phi i32 [ %18, %for.body92.lr.ph ], [ %29, %for.inc112 ]
%21 = phi i32 [ %18, %for.body92.lr.ph ], [ %30, %for.inc112 ]
%indvars.iv214 = phi i64 [ 0, %for.body92.lr.ph ], [ %indvars.iv.next215, %for.inc112 ]
%22 = load i32, ptr %arrayidx94, align 4, !tbaa !13
%arrayidx96 = getelementptr inbounds i32, ptr %call57, i64 %indvars.iv214
%23 = load i32, ptr %arrayidx96, align 4, !tbaa !13
%cmp97 = icmp slt i32 %22, %23
br i1 %cmp97, label %land.lhs.true, label %for.inc112
land.lhs.true: ; preds = %for.body92
%24 = load i32, ptr %arrayidx100, align 4, !tbaa !13
%arrayidx102 = getelementptr inbounds i32, ptr %call60, i64 %indvars.iv214
%25 = load i32, ptr %arrayidx102, align 4, !tbaa !13
%cmp103 = icmp slt i32 %24, %25
br i1 %cmp103, label %if.then, label %for.inc112
if.then: ; preds = %land.lhs.true
%26 = load ptr, ptr %arrayidx107, align 8, !tbaa !14
%27 = trunc i64 %indvars.iv214 to i32
%28 = add i32 %27, 1
%add109 = add i32 %28, %21
%idxprom110 = sext i32 %add109 to i64
%arrayidx111 = getelementptr inbounds i32, ptr %26, i64 %idxprom110
store i32 1, ptr %arrayidx111, align 4, !tbaa !13
%.pre = load i32, ptr %N, align 4, !tbaa !13
br label %for.inc112
for.inc112: ; preds = %for.body92, %land.lhs.true, %if.then
%29 = phi i32 [ %20, %for.body92 ], [ %20, %land.lhs.true ], [ %.pre, %if.then ]
%30 = phi i32 [ %21, %for.body92 ], [ %21, %land.lhs.true ], [ %.pre, %if.then ]
%indvars.iv.next215 = add nuw nsw i64 %indvars.iv214, 1
%31 = sext i32 %30 to i64
%cmp90 = icmp slt i64 %indvars.iv.next215, %31
br i1 %cmp90, label %for.body92, label %for.inc115, !llvm.loop !24
for.inc115: ; preds = %for.inc112, %for.cond89.preheader.for.inc115_crit_edge
%indvars.iv.next219.pre-phi = phi i64 [ %.pre223, %for.cond89.preheader.for.inc115_crit_edge ], [ %19, %for.inc112 ]
%32 = phi i32 [ %18, %for.cond89.preheader.for.inc115_crit_edge ], [ %29, %for.inc112 ]
%33 = sext i32 %32 to i64
%cmp86 = icmp slt i64 %indvars.iv.next219.pre-phi, %33
br i1 %cmp86, label %for.cond89.preheader, label %for.end117, !llvm.loop !25
for.end117: ; preds = %for.inc115, %for.end48, %for.cond73.preheader, %for.cond85.preheader
%.lcssa = phi i32 [ %16, %for.cond85.preheader ], [ %14, %for.cond73.preheader ], [ %13, %for.end48 ], [ %32, %for.inc115 ]
%mul118 = shl nsw i32 %.lcssa, 1
%add119 = add nsw i32 %mul118, 2
%add121 = or i32 %mul118, 1
%call122 = call i32 @Edmonds_Karp(i32 noundef %add119, i32 noundef 0, i32 noundef %add121, ptr noundef %call2)
%call123 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %call122)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %N) #13
ret i32 0
}
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #6
; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #9
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #10
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #11
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #10
attributes #0 = { mustprogress nofree nounwind willreturn memory(write, argmem: none, inaccessiblemem: readwrite) uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-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 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable "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 #4 = { mustprogress nofree norecurse nosync nounwind willreturn memory(write, argmem: readwrite, inaccessiblemem: none) uwtable "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 #5 = { nofree nounwind uwtable "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 #6 = { nofree nounwind "no-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 #7 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable "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 #8 = { mustprogress nofree nosync nounwind willreturn memory(none) uwtable "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 #9 = { nofree nounwind }
attributes #10 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #11 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #12 = { nounwind allocsize(0) }
attributes #13 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!6, !10, i64 12}
!13 = !{!10, !10, i64 0}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !16, !26}
!26 = !{!"llvm.loop.unswitch.partial.disable"}
|
// 再提出
#include <stdio.h>
#include <math.h>
int main(void) {
int n;
int hoge = 1;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
int a;
scanf("%d", &a);
if (a % 2 == 0)
hoge *= 2;
}
printf("%d\n", (int)pow(3, n) - hoge);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110263/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110263/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n = alloca i32, align 4
%a = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp8 = icmp sgt i32 %0, 0
br i1 %cmp8, label %for.body, label %for.cond.cleanup
for.cond.cleanup: ; preds = %for.body, %entry
%hoge.0.lcssa = phi i32 [ 1, %entry ], [ %spec.select, %for.body ]
%.lcssa = phi i32 [ %0, %entry ], [ %4, %for.body ]
%conv = sitofp i32 %.lcssa to double
%call3 = call double @pow(double noundef 3.000000e+00, double noundef %conv) #4
%conv4 = fptosi double %call3 to i32
%sub = sub nsw i32 %conv4, %hoge.0.lcssa
%call5 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %sub)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #4
ret i32 0
for.body: ; preds = %entry, %for.body
%i.010 = phi i32 [ %inc, %for.body ], [ 0, %entry ]
%hoge.09 = phi i32 [ %spec.select, %for.body ], [ 1, %entry ]
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #4
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%1 = load i32, ptr %a, align 4, !tbaa !5
%2 = and i32 %1, 1
%3 = xor i32 %2, 1
%spec.select = shl i32 %hoge.09, %3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #4
%inc = add nuw nsw i32 %i.010, 1
%4 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp slt i32 %inc, %4
br i1 %cmp, label %for.body, label %for.cond.cleanup, !llvm.loop !9
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #3
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 = { mustprogress nofree nounwind willreturn memory(write) "no-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 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
|
#include<stdio.h>
int main(void)
{
int a,b,x,max,k,i,j,sum;
max=40001;
sum=0;
scanf("%d %d %d",&a,&b,&x);
for(i=0;i<=400;i++){
for(j=0;j<=200;j++){
sum=1000*i+500*j;
if(sum>=x){
k=a*i+b*j;
if(k<max){
max=k;
}
}
}
}
printf("%d\n",max);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110306/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110306/source.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 [9 x i8] c"%d %d %d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca i32, align 4
%b = alloca i32, align 4
%x = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b, ptr noundef nonnull %x)
%0 = load i32, ptr %x, align 4, !tbaa !5
%1 = load i32, ptr %a, align 4
%2 = load i32, ptr %b, align 4
%broadcast.splatinsert31 = insertelement <4 x i32> poison, i32 %0, i64 0
%broadcast.splat32 = shufflevector <4 x i32> %broadcast.splatinsert31, <4 x i32> poison, <4 x i32> zeroinitializer
%broadcast.splatinsert33 = insertelement <4 x i32> poison, i32 %2, i64 0
%broadcast.splat34 = shufflevector <4 x i32> %broadcast.splatinsert33, <4 x i32> poison, <4 x i32> zeroinitializer
%mul7 = mul nsw i32 %2, 200
br label %for.cond1.preheader
for.cond1.preheader: ; preds = %entry, %middle.block
%i.027 = phi i32 [ 0, %entry ], [ %inc13, %middle.block ]
%max.026 = phi i32 [ 40001, %entry ], [ %max.2, %middle.block ]
%mul = mul nuw nsw i32 %i.027, 1000
%mul6 = mul nsw i32 %1, %i.027
%minmax.ident.splatinsert = insertelement <4 x i32> poison, i32 %max.026, i64 0
%minmax.ident.splat = shufflevector <4 x i32> %minmax.ident.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
%broadcast.splatinsert = insertelement <4 x i32> poison, i32 %mul, i64 0
%broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
%broadcast.splatinsert35 = insertelement <4 x i32> poison, i32 %mul6, i64 0
%broadcast.splat36 = shufflevector <4 x i32> %broadcast.splatinsert35, <4 x i32> poison, <4 x i32> zeroinitializer
br label %vector.body
vector.body: ; preds = %vector.body, %for.cond1.preheader
%index = phi i32 [ 0, %for.cond1.preheader ], [ %index.next, %vector.body ]
%vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %for.cond1.preheader ], [ %vec.ind.next, %vector.body ]
%vec.phi = phi <4 x i32> [ %minmax.ident.splat, %for.cond1.preheader ], [ %predphi, %vector.body ]
%vec.phi30 = phi <4 x i32> [ %minmax.ident.splat, %for.cond1.preheader ], [ %predphi37, %vector.body ]
%step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
%3 = mul nuw nsw <4 x i32> %vec.ind, <i32 500, i32 500, i32 500, i32 500>
%4 = mul nuw nsw <4 x i32> %step.add, <i32 500, i32 500, i32 500, i32 500>
%5 = add nuw nsw <4 x i32> %3, %broadcast.splat
%6 = add nuw nsw <4 x i32> %4, %broadcast.splat
%.not = icmp slt <4 x i32> %5, %broadcast.splat32
%.not38 = icmp slt <4 x i32> %6, %broadcast.splat32
%7 = mul nsw <4 x i32> %broadcast.splat34, %vec.ind
%8 = mul nsw <4 x i32> %broadcast.splat34, %step.add
%9 = add nsw <4 x i32> %7, %broadcast.splat36
%10 = add nsw <4 x i32> %8, %broadcast.splat36
%11 = call <4 x i32> @llvm.smin.v4i32(<4 x i32> %9, <4 x i32> %vec.phi)
%12 = call <4 x i32> @llvm.smin.v4i32(<4 x i32> %10, <4 x i32> %vec.phi30)
%predphi = select <4 x i1> %.not, <4 x i32> %vec.phi, <4 x i32> %11
%predphi37 = select <4 x i1> %.not38, <4 x i32> %vec.phi30, <4 x i32> %12
%index.next = add nuw i32 %index, 8
%vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
%13 = icmp eq i32 %index.next, 200
br i1 %13, label %middle.block, label %vector.body, !llvm.loop !9
middle.block: ; preds = %vector.body
%rdx.minmax = call <4 x i32> @llvm.smin.v4i32(<4 x i32> %predphi, <4 x i32> %predphi37)
%14 = call i32 @llvm.vector.reduce.smin.v4i32(<4 x i32> %rdx.minmax)
%add = add nuw nsw i32 %mul, 100000
%cmp5.not = icmp slt i32 %add, %0
%add8 = add nsw i32 %mul7, %mul6
%spec.select = call i32 @llvm.smin.i32(i32 %add8, i32 %14)
%max.2 = select i1 %cmp5.not, i32 %14, i32 %spec.select
%inc13 = add nuw nsw i32 %i.027, 1
%exitcond28.not = icmp eq i32 %inc13, 401
br i1 %exitcond28.not, label %for.end14, label %for.cond1.preheader, !llvm.loop !13
for.end14: ; preds = %middle.block
%call15 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %max.2)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #4
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x i32> @llvm.smin.v4i32(<4 x i32>, <4 x i32>) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.smin.v4i32(<4 x i32>) #3
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10}
|
#include<stdio.h>
#include<math.h>
#define PI 3.1415926535897932
int main()
{
double x,y,r,ang;
int turn,i;
while(1)
{
scanf("%d",&turn);
if(turn==-1)break;
ang=0;
for(i=2;i<=turn;i++)
{
ang+=asin(sqrt(1/(double)i));
if(ang>=PI*2){ang-=PI*2;}
}
r=sqrt(turn);
x=r*cos(ang);
y=r*sin(ang);
printf("%lf\n%lf\n",x,y);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110364/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110364/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"%lf\0A%lf\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%turn = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %turn) #4
%call25 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %turn)
%0 = load i32, ptr %turn, align 4, !tbaa !5
%cmp26 = icmp eq i32 %0, -1
br i1 %cmp26, label %while.end, label %for.cond.preheader
for.cond.preheader: ; preds = %entry, %for.end
%1 = phi i32 [ %3, %for.end ], [ %0, %entry ]
%cmp1.not21 = icmp slt i32 %1, 2
br i1 %cmp1.not21, label %for.end, label %for.body
for.body: ; preds = %for.cond.preheader, %for.body
%i.023 = phi i32 [ %inc, %for.body ], [ 2, %for.cond.preheader ]
%ang.022 = phi double [ %ang.1, %for.body ], [ 0.000000e+00, %for.cond.preheader ]
%conv = sitofp i32 %i.023 to double
%div = fdiv double 1.000000e+00, %conv
%call2 = call double @sqrt(double noundef %div) #4
%call3 = call double @asin(double noundef %call2) #4
%add = fadd double %ang.022, %call3
%cmp4 = fcmp ult double %add, 0x401921FB54442D18
%sub = fadd double %add, 0xC01921FB54442D18
%ang.1 = select i1 %cmp4, double %add, double %sub
%inc = add nuw nsw i32 %i.023, 1
%2 = load i32, ptr %turn, align 4, !tbaa !5
%cmp1.not.not = icmp slt i32 %i.023, %2
br i1 %cmp1.not.not, label %for.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body, %for.cond.preheader
%ang.0.lcssa = phi double [ 0.000000e+00, %for.cond.preheader ], [ %ang.1, %for.body ]
%.lcssa = phi i32 [ %1, %for.cond.preheader ], [ %2, %for.body ]
%conv8 = sitofp i32 %.lcssa to double
%call9 = call double @sqrt(double noundef %conv8) #4
%call10 = call double @cos(double noundef %ang.0.lcssa) #4
%mul = fmul double %call9, %call10
%call11 = call double @sin(double noundef %ang.0.lcssa) #4
%mul12 = fmul double %call9, %call11
%call13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %mul, double noundef %mul12)
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %turn)
%3 = load i32, ptr %turn, align 4, !tbaa !5
%cmp = icmp eq i32 %3, -1
br i1 %cmp, label %while.end, label %for.cond.preheader
while.end: ; preds = %for.end, %entry
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %turn) #4
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @asin(double noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @cos(double noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sin(double noundef) local_unnamed_addr #3
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 = { mustprogress nofree nounwind willreturn memory(write) "no-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 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
|
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <ctype.h>
#include <limits.h>
#define inf (INT_MAX-1)
#define INF 9223372036854775807
#define EPS 1e-10
#define sq(n) ((n)*(n))
#define rep(i,n) for(i=0;i<n;i++)
#define rev(i,n) for(i=n-1;i>=0;i--)
#define sort(a,n) qsort(a,n,sizeof(TYPE),cmp)
#define sort_r(a,n) qsort(a,n,sizeof(TYPE),cmp_r);
#define chsort(s,n) qsort(s,n,sizeof(char),cmp)
#define chsort_r(s,n) qsort(s,n,sizeof(char),char_cmp_r);
#define TYPE long long
#define MEMSET(a) memset(a,0,sizeof(a))
const int mod=(int)1e09+7;
int in(void){
int i;scanf("%d",&i);
return i;
}
long long llin(void){
long long i;scanf("%lld",&i);
return i;
}
double din(void){
double i;scanf("%lf",&i);
return i;
}
void chin(char s[]){
scanf("%s",s);
}
void print(int a){
printf("%d\n",a);
}
void llprint(long long a){
printf("%lld\n",a);
}
void dprint(double a){
printf("%.10f\n",a);
}
void print2(int a,int b){
printf("%d %d\n",a,b);
}
long long max(long long a,long long b){
return a>b?a:b;
}
long long min(long long a,long long b){
return a<b?a:b;
}
double dmax(double a,double b){
return a>b?a:b;
}
int cmp(const void *a,const void *b){
return *(TYPE *)a-*(TYPE *)b;
}
int cmp_r(const void *a,const void *b){
return *(TYPE *)b-*(TYPE *)a;
}
int char_cmp(const void *a,const void *b){
return strcmp((char *)a,(char *)b);
}
int char_cmp_r(const void *a,const void *b){
return strcmp((char *)b,(char *)a);
}
void swap(int *a,int *b){
int t=*a;
*a=*b;
*b=t;
}
long long gcd(long long x,long long y){
return x%y?gcd(y,x%y):y;
}
long long lcm(long long x,long long y){
return x/gcd(x,y)*y;
}
// konoshita kara kaku
int main(void){
int l,i,j,f[300]={};
char s[30];
chin(s);
l=strlen(s);
if(strcmp("zyxwvutsrqponmlkjihgfedcba",s)==0)
print(-1);
else if(l<26){
rep(i,l)f[s[i]]++;
for(i='a';i<='z';i++)if(!f[i])break;
printf("%s%c\n",s,i);
}
else{
rev(i,l)if(s[i-1]<=s[i])break;
for(j=i;j<l;j++)f[s[j]]++;
for(j='a';j<'z';j++)if(f[j]&&s[i-1]<j)break;
s[i]=0;
s[i-1]=j;
puts(s);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110429/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110429/source.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"
@mod = dso_local local_unnamed_addr constant i32 1000000007, align 4
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%lld\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"%lld\0A\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"%.10f\0A\00", align 1
@.str.7 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
@.str.8 = private unnamed_addr constant [27 x i8] c"zyxwvutsrqponmlkjihgfedcba\00", align 1
@.str.9 = private unnamed_addr constant [6 x i8] c"%s%c\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @in() local_unnamed_addr #0 {
entry:
%i = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %i) #13
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %i)
%0 = load i32, ptr %i, align 4, !tbaa !5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %i) #13
ret i32 %0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind uwtable
define dso_local i64 @llin() local_unnamed_addr #0 {
entry:
%i = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %i) #13
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %i)
%0 = load i64, ptr %i, align 8, !tbaa !9
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %i) #13
ret i64 %0
}
; Function Attrs: nofree nounwind uwtable
define dso_local double @din() local_unnamed_addr #0 {
entry:
%i = alloca double, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %i) #13
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %i)
%0 = load double, ptr %i, align 8, !tbaa !11
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %i) #13
ret double %0
}
; Function Attrs: nofree nounwind uwtable
define dso_local void @chin(ptr noundef %s) local_unnamed_addr #0 {
entry:
%call = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef %s)
ret void
}
; Function Attrs: nofree nounwind uwtable
define dso_local void @print(i32 noundef %a) local_unnamed_addr #0 {
entry:
%call = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %a)
ret void
}
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind uwtable
define dso_local void @llprint(i64 noundef %a) local_unnamed_addr #0 {
entry:
%call = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i64 noundef %a)
ret void
}
; Function Attrs: nofree nounwind uwtable
define dso_local void @dprint(double noundef %a) local_unnamed_addr #0 {
entry:
%call = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %a)
ret void
}
; Function Attrs: nofree nounwind uwtable
define dso_local void @print2(i32 noundef %a, i32 noundef %b) local_unnamed_addr #0 {
entry:
%call = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %a, i32 noundef %b)
ret void
}
; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
define dso_local i64 @max(i64 noundef %a, i64 noundef %b) local_unnamed_addr #3 {
entry:
%cond = tail call i64 @llvm.smax.i64(i64 %a, i64 %b)
ret i64 %cond
}
; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
define dso_local i64 @min(i64 noundef %a, i64 noundef %b) local_unnamed_addr #3 {
entry:
%cond = tail call i64 @llvm.smin.i64(i64 %a, i64 %b)
ret i64 %cond
}
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define dso_local double @dmax(double noundef %a, double noundef %b) local_unnamed_addr #4 {
entry:
%cmp = fcmp ogt double %a, %b
%cond = select i1 %cmp, double %a, double %b
ret double %cond
}
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable
define dso_local i32 @cmp(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) local_unnamed_addr #5 {
entry:
%0 = load i64, ptr %a, align 8, !tbaa !9
%1 = load i64, ptr %b, align 8, !tbaa !9
%sub = sub nsw i64 %0, %1
%conv = trunc i64 %sub to i32
ret i32 %conv
}
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable
define dso_local i32 @cmp_r(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) local_unnamed_addr #5 {
entry:
%0 = load i64, ptr %b, align 8, !tbaa !9
%1 = load i64, ptr %a, align 8, !tbaa !9
%sub = sub nsw i64 %0, %1
%conv = trunc i64 %sub to i32
ret i32 %conv
}
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read) uwtable
define dso_local i32 @char_cmp(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) local_unnamed_addr #6 {
entry:
%call = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %a, ptr noundef nonnull dereferenceable(1) %b) #14
ret i32 %call
}
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #7
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read) uwtable
define dso_local i32 @char_cmp_r(ptr nocapture noundef readonly %a, ptr nocapture noundef readonly %b) local_unnamed_addr #6 {
entry:
%call = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %b, ptr noundef nonnull dereferenceable(1) %a) #14
ret i32 %call
}
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable
define dso_local void @swap(ptr nocapture noundef %a, ptr nocapture noundef %b) local_unnamed_addr #8 {
entry:
%0 = load i32, ptr %a, align 4, !tbaa !5
%1 = load i32, ptr %b, align 4, !tbaa !5
store i32 %1, ptr %a, align 4, !tbaa !5
store i32 %0, ptr %b, align 4, !tbaa !5
ret void
}
; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable
define dso_local i64 @gcd(i64 noundef %x, i64 noundef %y) local_unnamed_addr #9 {
entry:
br label %tailrecurse
tailrecurse: ; preds = %tailrecurse, %entry
%x.tr = phi i64 [ %x, %entry ], [ %y.tr, %tailrecurse ]
%y.tr = phi i64 [ %y, %entry ], [ %rem, %tailrecurse ]
%rem = srem i64 %x.tr, %y.tr
%tobool.not = icmp eq i64 %rem, 0
br i1 %tobool.not, label %cond.end, label %tailrecurse
cond.end: ; preds = %tailrecurse
ret i64 %y.tr
}
; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable
define dso_local i64 @lcm(i64 noundef %x, i64 noundef %y) local_unnamed_addr #9 {
entry:
br label %tailrecurse.i
tailrecurse.i: ; preds = %tailrecurse.i, %entry
%x.tr.i = phi i64 [ %x, %entry ], [ %y.tr.i, %tailrecurse.i ]
%y.tr.i = phi i64 [ %y, %entry ], [ %rem.i, %tailrecurse.i ]
%rem.i = srem i64 %x.tr.i, %y.tr.i
%tobool.not.i = icmp eq i64 %rem.i, 0
br i1 %tobool.not.i, label %gcd.exit, label %tailrecurse.i
gcd.exit: ; preds = %tailrecurse.i
%div = sdiv i64 %x, %y.tr.i
%mul = mul nsw i64 %div, %y
ret i64 %mul
}
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%f = alloca [300 x i32], align 16
%s = alloca [30 x i8], align 16
call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %f) #13
call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1200) %f, i8 0, i64 1200, i1 false)
call void @llvm.lifetime.start.p0(i64 30, ptr nonnull %s) #13
%call.i = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull %s)
%call = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %s) #14
%conv = trunc i64 %call to i32
%bcmp = call i32 @bcmp(ptr noundef nonnull dereferenceable(27) @.str.8, ptr noundef nonnull dereferenceable(27) %s, i64 27)
%cmp = icmp eq i32 %bcmp, 0
br i1 %cmp, label %if.then, label %if.else
if.then: ; preds = %entry
%call.i107 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef -1)
br label %if.end82
if.else: ; preds = %entry
%cmp5 = icmp slt i32 %conv, 26
br i1 %cmp5, label %for.cond.preheader, label %for.cond26.preheader
for.cond26.preheader: ; preds = %if.else
%sext = shl i64 %call, 32
%0 = ashr exact i64 %sext, 32
br label %for.cond26
for.cond.preheader: ; preds = %if.else
%cmp8111 = icmp sgt i32 %conv, 0
br i1 %cmp8111, label %for.body.preheader, label %for.cond13.preheader
for.body.preheader: ; preds = %for.cond.preheader
%wide.trip.count = and i64 %call, 4294967295
%1 = add nsw i64 %wide.trip.count, -1
%xtraiter = and i64 %call, 3
%2 = icmp ult i64 %1, 3
br i1 %2, label %for.cond13.preheader.loopexit.unr-lcssa, label %for.body.preheader.new
for.body.preheader.new: ; preds = %for.body.preheader
%unroll_iter = sub nsw i64 %wide.trip.count, %xtraiter
br label %for.body
for.cond13.preheader.loopexit.unr-lcssa: ; preds = %for.body, %for.body.preheader
%indvars.iv122.unr = phi i64 [ 0, %for.body.preheader ], [ %indvars.iv.next123.3, %for.body ]
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br i1 %lcmp.mod.not, label %for.cond13.preheader, label %for.body.epil
for.body.epil: ; preds = %for.cond13.preheader.loopexit.unr-lcssa, %for.body.epil
%indvars.iv122.epil = phi i64 [ %indvars.iv.next123.epil, %for.body.epil ], [ %indvars.iv122.unr, %for.cond13.preheader.loopexit.unr-lcssa ]
%epil.iter = phi i64 [ %epil.iter.next, %for.body.epil ], [ 0, %for.cond13.preheader.loopexit.unr-lcssa ]
%arrayidx.epil = getelementptr inbounds [30 x i8], ptr %s, i64 0, i64 %indvars.iv122.epil
%3 = load i8, ptr %arrayidx.epil, align 1, !tbaa !13
%idxprom10.epil = sext i8 %3 to i64
%arrayidx11.epil = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 %idxprom10.epil
%4 = load i32, ptr %arrayidx11.epil, align 4, !tbaa !5
%inc.epil = add nsw i32 %4, 1
store i32 %inc.epil, ptr %arrayidx11.epil, align 4, !tbaa !5
%indvars.iv.next123.epil = add nuw nsw i64 %indvars.iv122.epil, 1
%epil.iter.next = add i64 %epil.iter, 1
%epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
br i1 %epil.iter.cmp.not, label %for.cond13.preheader, label %for.body.epil, !llvm.loop !14
for.cond13.preheader: ; preds = %for.cond13.preheader.loopexit.unr-lcssa, %for.body.epil, %for.cond.preheader
%arrayidx18 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 97
%5 = load i32, ptr %arrayidx18, align 4, !tbaa !5
%tobool.not = icmp eq i32 %5, 0
br i1 %tobool.not, label %for.end22, label %for.inc20
for.body: ; preds = %for.body, %for.body.preheader.new
%indvars.iv122 = phi i64 [ 0, %for.body.preheader.new ], [ %indvars.iv.next123.3, %for.body ]
%niter = phi i64 [ 0, %for.body.preheader.new ], [ %niter.next.3, %for.body ]
%arrayidx = getelementptr inbounds [30 x i8], ptr %s, i64 0, i64 %indvars.iv122
%6 = load i8, ptr %arrayidx, align 4, !tbaa !13
%idxprom10 = sext i8 %6 to i64
%arrayidx11 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 %idxprom10
%7 = load i32, ptr %arrayidx11, align 4, !tbaa !5
%inc = add nsw i32 %7, 1
store i32 %inc, ptr %arrayidx11, align 4, !tbaa !5
%indvars.iv.next123 = or i64 %indvars.iv122, 1
%arrayidx.1 = getelementptr inbounds [30 x i8], ptr %s, i64 0, i64 %indvars.iv.next123
%8 = load i8, ptr %arrayidx.1, align 1, !tbaa !13
%idxprom10.1 = sext i8 %8 to i64
%arrayidx11.1 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 %idxprom10.1
%9 = load i32, ptr %arrayidx11.1, align 4, !tbaa !5
%inc.1 = add nsw i32 %9, 1
store i32 %inc.1, ptr %arrayidx11.1, align 4, !tbaa !5
%indvars.iv.next123.1 = or i64 %indvars.iv122, 2
%arrayidx.2 = getelementptr inbounds [30 x i8], ptr %s, i64 0, i64 %indvars.iv.next123.1
%10 = load i8, ptr %arrayidx.2, align 2, !tbaa !13
%idxprom10.2 = sext i8 %10 to i64
%arrayidx11.2 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 %idxprom10.2
%11 = load i32, ptr %arrayidx11.2, align 4, !tbaa !5
%inc.2 = add nsw i32 %11, 1
store i32 %inc.2, ptr %arrayidx11.2, align 4, !tbaa !5
%indvars.iv.next123.2 = or i64 %indvars.iv122, 3
%arrayidx.3 = getelementptr inbounds [30 x i8], ptr %s, i64 0, i64 %indvars.iv.next123.2
%12 = load i8, ptr %arrayidx.3, align 1, !tbaa !13
%idxprom10.3 = sext i8 %12 to i64
%arrayidx11.3 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 %idxprom10.3
%13 = load i32, ptr %arrayidx11.3, align 4, !tbaa !5
%inc.3 = add nsw i32 %13, 1
store i32 %inc.3, ptr %arrayidx11.3, align 4, !tbaa !5
%indvars.iv.next123.3 = add nuw nsw i64 %indvars.iv122, 4
%niter.next.3 = add i64 %niter, 4
%niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
br i1 %niter.ncmp.3, label %for.cond13.preheader.loopexit.unr-lcssa, label %for.body, !llvm.loop !16
for.inc20: ; preds = %for.cond13.preheader
%arrayidx18.1 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 98
%14 = load i32, ptr %arrayidx18.1, align 8, !tbaa !5
%tobool.not.1 = icmp eq i32 %14, 0
br i1 %tobool.not.1, label %for.end22, label %for.inc20.1
for.inc20.1: ; preds = %for.inc20
%arrayidx18.2 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 99
%15 = load i32, ptr %arrayidx18.2, align 4, !tbaa !5
%tobool.not.2 = icmp eq i32 %15, 0
br i1 %tobool.not.2, label %for.end22, label %for.inc20.2
for.inc20.2: ; preds = %for.inc20.1
%arrayidx18.3 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 100
%16 = load i32, ptr %arrayidx18.3, align 16, !tbaa !5
%tobool.not.3 = icmp eq i32 %16, 0
br i1 %tobool.not.3, label %for.end22, label %for.inc20.3
for.inc20.3: ; preds = %for.inc20.2
%arrayidx18.4 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 101
%17 = load i32, ptr %arrayidx18.4, align 4, !tbaa !5
%tobool.not.4 = icmp eq i32 %17, 0
br i1 %tobool.not.4, label %for.end22, label %for.inc20.4
for.inc20.4: ; preds = %for.inc20.3
%arrayidx18.5 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 102
%18 = load i32, ptr %arrayidx18.5, align 8, !tbaa !5
%tobool.not.5 = icmp eq i32 %18, 0
br i1 %tobool.not.5, label %for.end22, label %for.inc20.5
for.inc20.5: ; preds = %for.inc20.4
%arrayidx18.6 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 103
%19 = load i32, ptr %arrayidx18.6, align 4, !tbaa !5
%tobool.not.6 = icmp eq i32 %19, 0
br i1 %tobool.not.6, label %for.end22, label %for.inc20.6
for.inc20.6: ; preds = %for.inc20.5
%arrayidx18.7 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 104
%20 = load i32, ptr %arrayidx18.7, align 16, !tbaa !5
%tobool.not.7 = icmp eq i32 %20, 0
br i1 %tobool.not.7, label %for.end22, label %for.inc20.7
for.inc20.7: ; preds = %for.inc20.6
%arrayidx18.8 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 105
%21 = load i32, ptr %arrayidx18.8, align 4, !tbaa !5
%tobool.not.8 = icmp eq i32 %21, 0
br i1 %tobool.not.8, label %for.end22, label %for.inc20.8
for.inc20.8: ; preds = %for.inc20.7
%arrayidx18.9 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 106
%22 = load i32, ptr %arrayidx18.9, align 8, !tbaa !5
%tobool.not.9 = icmp eq i32 %22, 0
br i1 %tobool.not.9, label %for.end22, label %for.inc20.9
for.inc20.9: ; preds = %for.inc20.8
%arrayidx18.10 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 107
%23 = load i32, ptr %arrayidx18.10, align 4, !tbaa !5
%tobool.not.10 = icmp eq i32 %23, 0
br i1 %tobool.not.10, label %for.end22, label %for.inc20.10
for.inc20.10: ; preds = %for.inc20.9
%arrayidx18.11 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 108
%24 = load i32, ptr %arrayidx18.11, align 16, !tbaa !5
%tobool.not.11 = icmp eq i32 %24, 0
br i1 %tobool.not.11, label %for.end22, label %for.inc20.11
for.inc20.11: ; preds = %for.inc20.10
%arrayidx18.12 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 109
%25 = load i32, ptr %arrayidx18.12, align 4, !tbaa !5
%tobool.not.12 = icmp eq i32 %25, 0
br i1 %tobool.not.12, label %for.end22, label %for.inc20.12
for.inc20.12: ; preds = %for.inc20.11
%arrayidx18.13 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 110
%26 = load i32, ptr %arrayidx18.13, align 8, !tbaa !5
%tobool.not.13 = icmp eq i32 %26, 0
br i1 %tobool.not.13, label %for.end22, label %for.inc20.13
for.inc20.13: ; preds = %for.inc20.12
%arrayidx18.14 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 111
%27 = load i32, ptr %arrayidx18.14, align 4, !tbaa !5
%tobool.not.14 = icmp eq i32 %27, 0
br i1 %tobool.not.14, label %for.end22, label %for.inc20.14
for.inc20.14: ; preds = %for.inc20.13
%arrayidx18.15 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 112
%28 = load i32, ptr %arrayidx18.15, align 16, !tbaa !5
%tobool.not.15 = icmp eq i32 %28, 0
br i1 %tobool.not.15, label %for.end22, label %for.inc20.15
for.inc20.15: ; preds = %for.inc20.14
%arrayidx18.16 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 113
%29 = load i32, ptr %arrayidx18.16, align 4, !tbaa !5
%tobool.not.16 = icmp eq i32 %29, 0
br i1 %tobool.not.16, label %for.end22, label %for.inc20.16
for.inc20.16: ; preds = %for.inc20.15
%arrayidx18.17 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 114
%30 = load i32, ptr %arrayidx18.17, align 8, !tbaa !5
%tobool.not.17 = icmp eq i32 %30, 0
br i1 %tobool.not.17, label %for.end22, label %for.inc20.17
for.inc20.17: ; preds = %for.inc20.16
%arrayidx18.18 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 115
%31 = load i32, ptr %arrayidx18.18, align 4, !tbaa !5
%tobool.not.18 = icmp eq i32 %31, 0
br i1 %tobool.not.18, label %for.end22, label %for.inc20.18
for.inc20.18: ; preds = %for.inc20.17
%arrayidx18.19 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 116
%32 = load i32, ptr %arrayidx18.19, align 16, !tbaa !5
%tobool.not.19 = icmp eq i32 %32, 0
br i1 %tobool.not.19, label %for.end22, label %for.inc20.19
for.inc20.19: ; preds = %for.inc20.18
%arrayidx18.20 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 117
%33 = load i32, ptr %arrayidx18.20, align 4, !tbaa !5
%tobool.not.20 = icmp eq i32 %33, 0
br i1 %tobool.not.20, label %for.end22, label %for.inc20.20
for.inc20.20: ; preds = %for.inc20.19
%arrayidx18.21 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 118
%34 = load i32, ptr %arrayidx18.21, align 8, !tbaa !5
%tobool.not.21 = icmp eq i32 %34, 0
br i1 %tobool.not.21, label %for.end22, label %for.inc20.21
for.inc20.21: ; preds = %for.inc20.20
%arrayidx18.22 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 119
%35 = load i32, ptr %arrayidx18.22, align 4, !tbaa !5
%tobool.not.22 = icmp eq i32 %35, 0
br i1 %tobool.not.22, label %for.end22, label %for.inc20.22
for.inc20.22: ; preds = %for.inc20.21
%arrayidx18.23 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 120
%36 = load i32, ptr %arrayidx18.23, align 16, !tbaa !5
%tobool.not.23 = icmp eq i32 %36, 0
br i1 %tobool.not.23, label %for.end22, label %for.inc20.23
for.inc20.23: ; preds = %for.inc20.22
%arrayidx18.24 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 121
%37 = load i32, ptr %arrayidx18.24, align 4, !tbaa !5
%tobool.not.24 = icmp eq i32 %37, 0
br i1 %tobool.not.24, label %for.end22, label %for.inc20.24
for.inc20.24: ; preds = %for.inc20.23
%arrayidx18.25 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 122
%38 = load i32, ptr %arrayidx18.25, align 8, !tbaa !5
%tobool.not.25 = icmp eq i32 %38, 0
%spec.select = select i1 %tobool.not.25, i32 122, i32 123
br label %for.end22
for.end22: ; preds = %for.inc20.24, %for.inc20.23, %for.inc20.22, %for.inc20.21, %for.inc20.20, %for.inc20.19, %for.inc20.18, %for.inc20.17, %for.inc20.16, %for.inc20.15, %for.inc20.14, %for.inc20.13, %for.inc20.12, %for.inc20.11, %for.inc20.10, %for.inc20.9, %for.inc20.8, %for.inc20.7, %for.inc20.6, %for.inc20.5, %for.inc20.4, %for.inc20.3, %for.inc20.2, %for.inc20.1, %for.inc20, %for.cond13.preheader
%i.1.lcssa = phi i32 [ 97, %for.cond13.preheader ], [ 98, %for.inc20 ], [ 99, %for.inc20.1 ], [ 100, %for.inc20.2 ], [ 101, %for.inc20.3 ], [ 102, %for.inc20.4 ], [ 103, %for.inc20.5 ], [ 104, %for.inc20.6 ], [ 105, %for.inc20.7 ], [ 106, %for.inc20.8 ], [ 107, %for.inc20.9 ], [ 108, %for.inc20.10 ], [ 109, %for.inc20.11 ], [ 110, %for.inc20.12 ], [ 111, %for.inc20.13 ], [ 112, %for.inc20.14 ], [ 113, %for.inc20.15 ], [ 114, %for.inc20.16 ], [ 115, %for.inc20.17 ], [ 116, %for.inc20.18 ], [ 117, %for.inc20.19 ], [ 118, %for.inc20.20 ], [ 119, %for.inc20.21 ], [ 120, %for.inc20.22 ], [ 121, %for.inc20.23 ], [ %spec.select, %for.inc20.24 ]
%call24 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull %s, i32 noundef %i.1.lcssa)
br label %if.end82
for.cond26: ; preds = %for.cond26.preheader, %for.body29
%indvars.iv = phi i64 [ %0, %for.cond26.preheader ], [ %indvars.iv.next, %for.body29 ]
%cmp27 = icmp sgt i64 %indvars.iv, 0
br i1 %cmp27, label %for.body29, label %for.end42
for.body29: ; preds = %for.cond26
%indvars.iv.next = add nsw i64 %indvars.iv, -1
%39 = add nsw i64 %indvars.iv, -2
%arrayidx32 = getelementptr inbounds [30 x i8], ptr %s, i64 0, i64 %39
%40 = load i8, ptr %arrayidx32, align 1, !tbaa !13
%idxprom34 = and i64 %indvars.iv.next, 4294967295
%arrayidx35 = getelementptr inbounds [30 x i8], ptr %s, i64 0, i64 %idxprom34
%41 = load i8, ptr %arrayidx35, align 1, !tbaa !13
%cmp37.not = icmp sgt i8 %40, %41
br i1 %cmp37.not, label %for.cond26, label %for.end42.split.loop.exit, !llvm.loop !18
for.end42.split.loop.exit: ; preds = %for.body29
%42 = trunc i64 %indvars.iv to i32
%43 = trunc i64 %indvars.iv.next to i32
br label %for.end42
for.end42: ; preds = %for.cond26, %for.end42.split.loop.exit
%i.2.in.lcssa = phi i32 [ %42, %for.end42.split.loop.exit ], [ 0, %for.cond26 ]
%i.2.lcssa = phi i32 [ %43, %for.end42.split.loop.exit ], [ -1, %for.cond26 ]
%cmp44108.not = icmp sgt i32 %i.2.in.lcssa, %conv
br i1 %cmp44108.not, label %for.cond55.preheader, label %for.body46.preheader
for.body46.preheader: ; preds = %for.end42
%44 = sext i32 %i.2.lcssa to i64
br label %for.body46
for.cond55.preheader: ; preds = %for.body46, %for.end42
%sub62 = add nsw i32 %i.2.in.lcssa, -2
%idxprom63 = sext i32 %sub62 to i64
%arrayidx64 = getelementptr inbounds [30 x i8], ptr %s, i64 0, i64 %idxprom63
%arrayidx60 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 97
%45 = load i32, ptr %arrayidx60, align 4, !tbaa !5
%tobool61.not = icmp eq i32 %45, 0
br i1 %tobool61.not, label %for.inc70, label %land.lhs.true
for.body46: ; preds = %for.body46.preheader, %for.body46
%indvars.iv116 = phi i64 [ %44, %for.body46.preheader ], [ %indvars.iv.next117, %for.body46 ]
%arrayidx48 = getelementptr inbounds [30 x i8], ptr %s, i64 0, i64 %indvars.iv116
%46 = load i8, ptr %arrayidx48, align 1, !tbaa !13
%idxprom49 = sext i8 %46 to i64
%arrayidx50 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 %idxprom49
%47 = load i32, ptr %arrayidx50, align 4, !tbaa !5
%inc51 = add nsw i32 %47, 1
store i32 %inc51, ptr %arrayidx50, align 4, !tbaa !5
%indvars.iv.next117 = add nsw i64 %indvars.iv116, 1
%cmp44 = icmp slt i64 %indvars.iv.next117, %0
br i1 %cmp44, label %for.body46, label %for.cond55.preheader, !llvm.loop !19
land.lhs.true: ; preds = %for.cond55.preheader
%48 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66 = icmp slt i8 %48, 97
br i1 %cmp66, label %for.end72, label %for.inc70
for.inc70: ; preds = %for.cond55.preheader, %land.lhs.true
%arrayidx60.1 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 98
%49 = load i32, ptr %arrayidx60.1, align 8, !tbaa !5
%tobool61.not.1 = icmp eq i32 %49, 0
br i1 %tobool61.not.1, label %for.inc70.1, label %land.lhs.true.1
land.lhs.true.1: ; preds = %for.inc70
%50 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66.1 = icmp slt i8 %50, 98
br i1 %cmp66.1, label %for.end72, label %for.inc70.1
for.inc70.1: ; preds = %land.lhs.true.1, %for.inc70
%arrayidx60.2 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 99
%51 = load i32, ptr %arrayidx60.2, align 4, !tbaa !5
%tobool61.not.2 = icmp eq i32 %51, 0
br i1 %tobool61.not.2, label %for.inc70.2, label %land.lhs.true.2
land.lhs.true.2: ; preds = %for.inc70.1
%52 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66.2 = icmp slt i8 %52, 99
br i1 %cmp66.2, label %for.end72, label %for.inc70.2
for.inc70.2: ; preds = %land.lhs.true.2, %for.inc70.1
%arrayidx60.3 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 100
%53 = load i32, ptr %arrayidx60.3, align 16, !tbaa !5
%tobool61.not.3 = icmp eq i32 %53, 0
br i1 %tobool61.not.3, label %for.inc70.3, label %land.lhs.true.3
land.lhs.true.3: ; preds = %for.inc70.2
%54 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66.3 = icmp slt i8 %54, 100
br i1 %cmp66.3, label %for.end72, label %for.inc70.3
for.inc70.3: ; preds = %land.lhs.true.3, %for.inc70.2
%arrayidx60.4 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 101
%55 = load i32, ptr %arrayidx60.4, align 4, !tbaa !5
%tobool61.not.4 = icmp eq i32 %55, 0
br i1 %tobool61.not.4, label %for.inc70.4, label %land.lhs.true.4
land.lhs.true.4: ; preds = %for.inc70.3
%56 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66.4 = icmp slt i8 %56, 101
br i1 %cmp66.4, label %for.end72, label %for.inc70.4
for.inc70.4: ; preds = %land.lhs.true.4, %for.inc70.3
%arrayidx60.5 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 102
%57 = load i32, ptr %arrayidx60.5, align 8, !tbaa !5
%tobool61.not.5 = icmp eq i32 %57, 0
br i1 %tobool61.not.5, label %for.inc70.5, label %land.lhs.true.5
land.lhs.true.5: ; preds = %for.inc70.4
%58 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66.5 = icmp slt i8 %58, 102
br i1 %cmp66.5, label %for.end72, label %for.inc70.5
for.inc70.5: ; preds = %land.lhs.true.5, %for.inc70.4
%arrayidx60.6 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 103
%59 = load i32, ptr %arrayidx60.6, align 4, !tbaa !5
%tobool61.not.6 = icmp eq i32 %59, 0
br i1 %tobool61.not.6, label %for.inc70.6, label %land.lhs.true.6
land.lhs.true.6: ; preds = %for.inc70.5
%60 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66.6 = icmp slt i8 %60, 103
br i1 %cmp66.6, label %for.end72, label %for.inc70.6
for.inc70.6: ; preds = %land.lhs.true.6, %for.inc70.5
%arrayidx60.7 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 104
%61 = load i32, ptr %arrayidx60.7, align 16, !tbaa !5
%tobool61.not.7 = icmp eq i32 %61, 0
br i1 %tobool61.not.7, label %for.inc70.7, label %land.lhs.true.7
land.lhs.true.7: ; preds = %for.inc70.6
%62 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66.7 = icmp slt i8 %62, 104
br i1 %cmp66.7, label %for.end72, label %for.inc70.7
for.inc70.7: ; preds = %land.lhs.true.7, %for.inc70.6
%arrayidx60.8 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 105
%63 = load i32, ptr %arrayidx60.8, align 4, !tbaa !5
%tobool61.not.8 = icmp eq i32 %63, 0
br i1 %tobool61.not.8, label %for.inc70.8, label %land.lhs.true.8
land.lhs.true.8: ; preds = %for.inc70.7
%64 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66.8 = icmp slt i8 %64, 105
br i1 %cmp66.8, label %for.end72, label %for.inc70.8
for.inc70.8: ; preds = %land.lhs.true.8, %for.inc70.7
%arrayidx60.9 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 106
%65 = load i32, ptr %arrayidx60.9, align 8, !tbaa !5
%tobool61.not.9 = icmp eq i32 %65, 0
br i1 %tobool61.not.9, label %for.inc70.9, label %land.lhs.true.9
land.lhs.true.9: ; preds = %for.inc70.8
%66 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66.9 = icmp slt i8 %66, 106
br i1 %cmp66.9, label %for.end72, label %for.inc70.9
for.inc70.9: ; preds = %land.lhs.true.9, %for.inc70.8
%arrayidx60.10 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 107
%67 = load i32, ptr %arrayidx60.10, align 4, !tbaa !5
%tobool61.not.10 = icmp eq i32 %67, 0
br i1 %tobool61.not.10, label %for.inc70.10, label %land.lhs.true.10
land.lhs.true.10: ; preds = %for.inc70.9
%68 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66.10 = icmp slt i8 %68, 107
br i1 %cmp66.10, label %for.end72, label %for.inc70.10
for.inc70.10: ; preds = %land.lhs.true.10, %for.inc70.9
%arrayidx60.11 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 108
%69 = load i32, ptr %arrayidx60.11, align 16, !tbaa !5
%tobool61.not.11 = icmp eq i32 %69, 0
br i1 %tobool61.not.11, label %for.inc70.11, label %land.lhs.true.11
land.lhs.true.11: ; preds = %for.inc70.10
%70 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66.11 = icmp slt i8 %70, 108
br i1 %cmp66.11, label %for.end72, label %for.inc70.11
for.inc70.11: ; preds = %land.lhs.true.11, %for.inc70.10
%arrayidx60.12 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 109
%71 = load i32, ptr %arrayidx60.12, align 4, !tbaa !5
%tobool61.not.12 = icmp eq i32 %71, 0
br i1 %tobool61.not.12, label %for.inc70.12, label %land.lhs.true.12
land.lhs.true.12: ; preds = %for.inc70.11
%72 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66.12 = icmp slt i8 %72, 109
br i1 %cmp66.12, label %for.end72, label %for.inc70.12
for.inc70.12: ; preds = %land.lhs.true.12, %for.inc70.11
%arrayidx60.13 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 110
%73 = load i32, ptr %arrayidx60.13, align 8, !tbaa !5
%tobool61.not.13 = icmp eq i32 %73, 0
br i1 %tobool61.not.13, label %for.inc70.13, label %land.lhs.true.13
land.lhs.true.13: ; preds = %for.inc70.12
%74 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66.13 = icmp slt i8 %74, 110
br i1 %cmp66.13, label %for.end72, label %for.inc70.13
for.inc70.13: ; preds = %land.lhs.true.13, %for.inc70.12
%arrayidx60.14 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 111
%75 = load i32, ptr %arrayidx60.14, align 4, !tbaa !5
%tobool61.not.14 = icmp eq i32 %75, 0
br i1 %tobool61.not.14, label %for.inc70.14, label %land.lhs.true.14
land.lhs.true.14: ; preds = %for.inc70.13
%76 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66.14 = icmp slt i8 %76, 111
br i1 %cmp66.14, label %for.end72, label %for.inc70.14
for.inc70.14: ; preds = %land.lhs.true.14, %for.inc70.13
%arrayidx60.15 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 112
%77 = load i32, ptr %arrayidx60.15, align 16, !tbaa !5
%tobool61.not.15 = icmp eq i32 %77, 0
br i1 %tobool61.not.15, label %for.inc70.15, label %land.lhs.true.15
land.lhs.true.15: ; preds = %for.inc70.14
%78 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66.15 = icmp slt i8 %78, 112
br i1 %cmp66.15, label %for.end72, label %for.inc70.15
for.inc70.15: ; preds = %land.lhs.true.15, %for.inc70.14
%arrayidx60.16 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 113
%79 = load i32, ptr %arrayidx60.16, align 4, !tbaa !5
%tobool61.not.16 = icmp eq i32 %79, 0
br i1 %tobool61.not.16, label %for.inc70.16, label %land.lhs.true.16
land.lhs.true.16: ; preds = %for.inc70.15
%80 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66.16 = icmp slt i8 %80, 113
br i1 %cmp66.16, label %for.end72, label %for.inc70.16
for.inc70.16: ; preds = %land.lhs.true.16, %for.inc70.15
%arrayidx60.17 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 114
%81 = load i32, ptr %arrayidx60.17, align 8, !tbaa !5
%tobool61.not.17 = icmp eq i32 %81, 0
br i1 %tobool61.not.17, label %for.inc70.17, label %land.lhs.true.17
land.lhs.true.17: ; preds = %for.inc70.16
%82 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66.17 = icmp slt i8 %82, 114
br i1 %cmp66.17, label %for.end72, label %for.inc70.17
for.inc70.17: ; preds = %land.lhs.true.17, %for.inc70.16
%arrayidx60.18 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 115
%83 = load i32, ptr %arrayidx60.18, align 4, !tbaa !5
%tobool61.not.18 = icmp eq i32 %83, 0
br i1 %tobool61.not.18, label %for.inc70.18, label %land.lhs.true.18
land.lhs.true.18: ; preds = %for.inc70.17
%84 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66.18 = icmp slt i8 %84, 115
br i1 %cmp66.18, label %for.end72, label %for.inc70.18
for.inc70.18: ; preds = %land.lhs.true.18, %for.inc70.17
%arrayidx60.19 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 116
%85 = load i32, ptr %arrayidx60.19, align 16, !tbaa !5
%tobool61.not.19 = icmp eq i32 %85, 0
br i1 %tobool61.not.19, label %for.inc70.19, label %land.lhs.true.19
land.lhs.true.19: ; preds = %for.inc70.18
%86 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66.19 = icmp slt i8 %86, 116
br i1 %cmp66.19, label %for.end72, label %for.inc70.19
for.inc70.19: ; preds = %land.lhs.true.19, %for.inc70.18
%arrayidx60.20 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 117
%87 = load i32, ptr %arrayidx60.20, align 4, !tbaa !5
%tobool61.not.20 = icmp eq i32 %87, 0
br i1 %tobool61.not.20, label %for.inc70.20, label %land.lhs.true.20
land.lhs.true.20: ; preds = %for.inc70.19
%88 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66.20 = icmp slt i8 %88, 117
br i1 %cmp66.20, label %for.end72, label %for.inc70.20
for.inc70.20: ; preds = %land.lhs.true.20, %for.inc70.19
%arrayidx60.21 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 118
%89 = load i32, ptr %arrayidx60.21, align 8, !tbaa !5
%tobool61.not.21 = icmp eq i32 %89, 0
br i1 %tobool61.not.21, label %for.inc70.21, label %land.lhs.true.21
land.lhs.true.21: ; preds = %for.inc70.20
%90 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66.21 = icmp slt i8 %90, 118
br i1 %cmp66.21, label %for.end72, label %for.inc70.21
for.inc70.21: ; preds = %land.lhs.true.21, %for.inc70.20
%arrayidx60.22 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 119
%91 = load i32, ptr %arrayidx60.22, align 4, !tbaa !5
%tobool61.not.22 = icmp eq i32 %91, 0
br i1 %tobool61.not.22, label %for.inc70.22, label %land.lhs.true.22
land.lhs.true.22: ; preds = %for.inc70.21
%92 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66.22 = icmp slt i8 %92, 119
br i1 %cmp66.22, label %for.end72, label %for.inc70.22
for.inc70.22: ; preds = %land.lhs.true.22, %for.inc70.21
%arrayidx60.23 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 120
%93 = load i32, ptr %arrayidx60.23, align 16, !tbaa !5
%tobool61.not.23 = icmp eq i32 %93, 0
br i1 %tobool61.not.23, label %for.inc70.23, label %land.lhs.true.23
land.lhs.true.23: ; preds = %for.inc70.22
%94 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66.23 = icmp slt i8 %94, 120
br i1 %cmp66.23, label %for.end72, label %for.inc70.23
for.inc70.23: ; preds = %land.lhs.true.23, %for.inc70.22
%arrayidx60.24 = getelementptr inbounds [300 x i32], ptr %f, i64 0, i64 121
%95 = load i32, ptr %arrayidx60.24, align 4, !tbaa !5
%tobool61.not.24 = icmp eq i32 %95, 0
br i1 %tobool61.not.24, label %for.inc70.24, label %land.lhs.true.24
land.lhs.true.24: ; preds = %for.inc70.23
%96 = load i8, ptr %arrayidx64, align 1, !tbaa !13
%cmp66.24 = icmp slt i8 %96, 121
br i1 %cmp66.24, label %for.end72, label %for.inc70.24
for.inc70.24: ; preds = %land.lhs.true.24, %for.inc70.23
br label %for.end72
for.end72: ; preds = %for.inc70.24, %land.lhs.true.24, %land.lhs.true.23, %land.lhs.true.22, %land.lhs.true.21, %land.lhs.true.20, %land.lhs.true.19, %land.lhs.true.18, %land.lhs.true.17, %land.lhs.true.16, %land.lhs.true.15, %land.lhs.true.14, %land.lhs.true.13, %land.lhs.true.12, %land.lhs.true.11, %land.lhs.true.10, %land.lhs.true.9, %land.lhs.true.8, %land.lhs.true.7, %land.lhs.true.6, %land.lhs.true.5, %land.lhs.true.4, %land.lhs.true.3, %land.lhs.true.2, %land.lhs.true.1, %land.lhs.true
%j.1.lcssa = phi i8 [ 97, %land.lhs.true ], [ 98, %land.lhs.true.1 ], [ 99, %land.lhs.true.2 ], [ 100, %land.lhs.true.3 ], [ 101, %land.lhs.true.4 ], [ 102, %land.lhs.true.5 ], [ 103, %land.lhs.true.6 ], [ 104, %land.lhs.true.7 ], [ 105, %land.lhs.true.8 ], [ 106, %land.lhs.true.9 ], [ 107, %land.lhs.true.10 ], [ 108, %land.lhs.true.11 ], [ 109, %land.lhs.true.12 ], [ 110, %land.lhs.true.13 ], [ 111, %land.lhs.true.14 ], [ 112, %land.lhs.true.15 ], [ 113, %land.lhs.true.16 ], [ 114, %land.lhs.true.17 ], [ 115, %land.lhs.true.18 ], [ 116, %land.lhs.true.19 ], [ 117, %land.lhs.true.20 ], [ 118, %land.lhs.true.21 ], [ 119, %land.lhs.true.22 ], [ 120, %land.lhs.true.23 ], [ 121, %land.lhs.true.24 ], [ 122, %for.inc70.24 ]
%idxprom73 = sext i32 %i.2.lcssa to i64
%arrayidx74 = getelementptr inbounds [30 x i8], ptr %s, i64 0, i64 %idxprom73
store i8 0, ptr %arrayidx74, align 1, !tbaa !13
store i8 %j.1.lcssa, ptr %arrayidx64, align 1, !tbaa !13
%call80 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %s)
br label %if.end82
if.end82: ; preds = %for.end22, %for.end72, %if.then
call void @llvm.lifetime.end.p0(i64 30, ptr nonnull %s) #13
call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %f) #13
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #10
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #7
; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #11
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, i64) #11
; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #12
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 = { mustprogress nofree nosync nounwind willreturn memory(none) uwtable "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 #4 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "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 #5 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable "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 #6 = { mustprogress nofree nounwind willreturn memory(argmem: read) uwtable "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 #7 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-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 #8 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable "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 #9 = { nofree norecurse nosync nounwind memory(none) uwtable "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 #10 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #11 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #12 = { nofree nounwind willreturn memory(argmem: read) }
attributes #13 = { nounwind }
attributes #14 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
|
#include <stdio.h>
char a[2001][2001];
int sum[2001];
int main()
{
int n,m;
scanf("%d%d",&n,&m);
char dust;
scanf("%c",&dust);
for(int i=0;i<n;i++)
{
for(int j=0;j<m;j++)
{
scanf("%c",&a[i][j]);
//printf("%c",a[i][j]);
if(a[i][j]=='1')
sum[j]++;
}
scanf("%c",&dust);
}
int ans=0;
for(int i=0;i<n;i++)
{
int flag=0;
for(int j=0;j<m;j++)
{
if(a[i][j]=='1'&&sum[j]==1)
{
flag=1;
}
}
if(flag==0)
{
ans=1;
break;
}
}
if(ans==0)
{
printf("NO");
}
else
{
printf("YES");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11048/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11048/source.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"%d%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@a = dso_local global [2001 x [2001 x i8]] zeroinitializer, align 16
@sum = dso_local local_unnamed_addr global [2001 x i32] zeroinitializer, align 16
@.str.2 = private unnamed_addr constant [3 x i8] c"NO\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"YES\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n = alloca i32, align 4
%m = alloca i32, align 4
%dust = alloca i8, align 1
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %m) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n, ptr noundef nonnull %m)
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %dust) #3
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %dust)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp82 = icmp sgt i32 %0, 0
br i1 %cmp82, label %for.cond2.preheader, label %if.end63
for.cond2.preheader: ; preds = %entry, %for.cond.cleanup4
%indvars.iv92 = phi i64 [ %indvars.iv.next93, %for.cond.cleanup4 ], [ 0, %entry ]
%1 = load i32, ptr %m, align 4, !tbaa !5
%cmp380 = icmp sgt i32 %1, 0
br i1 %cmp380, label %for.body5, label %for.cond.cleanup4
for.cond23.preheader: ; preds = %for.cond.cleanup4
%cmp24.not88 = icmp sgt i32 %10, 0
br i1 %cmp24.not88, label %for.cond29.preheader.lr.ph, label %if.end63
for.cond29.preheader.lr.ph: ; preds = %for.cond23.preheader
%2 = load i32, ptr %m, align 4, !tbaa !5
%cmp3084 = icmp sgt i32 %2, 0
br i1 %cmp3084, label %for.cond29.preheader.us.preheader, label %if.end63
for.cond29.preheader.us.preheader: ; preds = %for.cond29.preheader.lr.ph
%wide.trip.count101 = zext i32 %10 to i64
%wide.trip.count = zext i32 %2 to i64
%xtraiter = and i64 %wide.trip.count, 1
%3 = icmp eq i32 %2, 1
%unroll_iter = and i64 %wide.trip.count, 4294967294
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br label %for.cond29.preheader.us
for.cond29.preheader.us: ; preds = %for.cond29.preheader.us.preheader, %for.cond23.us
%indvars.iv98 = phi i64 [ 0, %for.cond29.preheader.us.preheader ], [ %indvars.iv.next99, %for.cond23.us ]
br i1 %3, label %for.cond29.for.cond.cleanup32_crit_edge.us.unr-lcssa, label %for.body33.us
for.body33.us: ; preds = %for.cond29.preheader.us, %for.inc47.us.1
%indvars.iv95 = phi i64 [ %indvars.iv.next96.1, %for.inc47.us.1 ], [ 0, %for.cond29.preheader.us ]
%flag.085.us = phi i32 [ %flag.1.us.1, %for.inc47.us.1 ], [ 0, %for.cond29.preheader.us ]
%niter = phi i64 [ %niter.next.1, %for.inc47.us.1 ], [ 0, %for.cond29.preheader.us ]
%arrayidx37.us = getelementptr inbounds [2001 x [2001 x i8]], ptr @a, i64 0, i64 %indvars.iv98, i64 %indvars.iv95
%4 = load i8, ptr %arrayidx37.us, align 1, !tbaa !9
%cmp39.us = icmp eq i8 %4, 49
br i1 %cmp39.us, label %land.lhs.true.us, label %for.inc47.us
land.lhs.true.us: ; preds = %for.body33.us
%arrayidx42.us = getelementptr inbounds [2001 x i32], ptr @sum, i64 0, i64 %indvars.iv95
%5 = load i32, ptr %arrayidx42.us, align 8, !tbaa !5
%cmp43.us = icmp eq i32 %5, 1
%spec.select.us = select i1 %cmp43.us, i32 1, i32 %flag.085.us
br label %for.inc47.us
for.inc47.us: ; preds = %land.lhs.true.us, %for.body33.us
%flag.1.us = phi i32 [ %flag.085.us, %for.body33.us ], [ %spec.select.us, %land.lhs.true.us ]
%indvars.iv.next96 = or i64 %indvars.iv95, 1
%arrayidx37.us.1 = getelementptr inbounds [2001 x [2001 x i8]], ptr @a, i64 0, i64 %indvars.iv98, i64 %indvars.iv.next96
%6 = load i8, ptr %arrayidx37.us.1, align 1, !tbaa !9
%cmp39.us.1 = icmp eq i8 %6, 49
br i1 %cmp39.us.1, label %land.lhs.true.us.1, label %for.inc47.us.1
land.lhs.true.us.1: ; preds = %for.inc47.us
%arrayidx42.us.1 = getelementptr inbounds [2001 x i32], ptr @sum, i64 0, i64 %indvars.iv.next96
%7 = load i32, ptr %arrayidx42.us.1, align 4, !tbaa !5
%cmp43.us.1 = icmp eq i32 %7, 1
%spec.select.us.1 = select i1 %cmp43.us.1, i32 1, i32 %flag.1.us
br label %for.inc47.us.1
for.inc47.us.1: ; preds = %land.lhs.true.us.1, %for.inc47.us
%flag.1.us.1 = phi i32 [ %flag.1.us, %for.inc47.us ], [ %spec.select.us.1, %land.lhs.true.us.1 ]
%indvars.iv.next96.1 = add nuw nsw i64 %indvars.iv95, 2
%niter.next.1 = add i64 %niter, 2
%niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
br i1 %niter.ncmp.1, label %for.cond29.for.cond.cleanup32_crit_edge.us.unr-lcssa, label %for.body33.us, !llvm.loop !10
for.cond23.us: ; preds = %for.cond29.for.cond.cleanup32_crit_edge.us
%indvars.iv.next99 = add nuw nsw i64 %indvars.iv98, 1
%exitcond102.not = icmp eq i64 %indvars.iv.next99, %wide.trip.count101
br i1 %exitcond102.not, label %if.end63, label %for.cond29.preheader.us, !llvm.loop !12
for.cond29.for.cond.cleanup32_crit_edge.us.unr-lcssa: ; preds = %for.inc47.us.1, %for.cond29.preheader.us
%flag.1.us.lcssa.ph = phi i32 [ undef, %for.cond29.preheader.us ], [ %flag.1.us.1, %for.inc47.us.1 ]
%indvars.iv95.unr = phi i64 [ 0, %for.cond29.preheader.us ], [ %indvars.iv.next96.1, %for.inc47.us.1 ]
%flag.085.us.unr = phi i32 [ 0, %for.cond29.preheader.us ], [ %flag.1.us.1, %for.inc47.us.1 ]
br i1 %lcmp.mod.not, label %for.cond29.for.cond.cleanup32_crit_edge.us, label %for.body33.us.epil
for.body33.us.epil: ; preds = %for.cond29.for.cond.cleanup32_crit_edge.us.unr-lcssa
%arrayidx37.us.epil = getelementptr inbounds [2001 x [2001 x i8]], ptr @a, i64 0, i64 %indvars.iv98, i64 %indvars.iv95.unr
%8 = load i8, ptr %arrayidx37.us.epil, align 1, !tbaa !9
%cmp39.us.epil = icmp eq i8 %8, 49
br i1 %cmp39.us.epil, label %land.lhs.true.us.epil, label %for.cond29.for.cond.cleanup32_crit_edge.us
land.lhs.true.us.epil: ; preds = %for.body33.us.epil
%arrayidx42.us.epil = getelementptr inbounds [2001 x i32], ptr @sum, i64 0, i64 %indvars.iv95.unr
%9 = load i32, ptr %arrayidx42.us.epil, align 4, !tbaa !5
%cmp43.us.epil = icmp eq i32 %9, 1
%spec.select.us.epil = select i1 %cmp43.us.epil, i32 1, i32 %flag.085.us.unr
br label %for.cond29.for.cond.cleanup32_crit_edge.us
for.cond29.for.cond.cleanup32_crit_edge.us: ; preds = %for.body33.us.epil, %land.lhs.true.us.epil, %for.cond29.for.cond.cleanup32_crit_edge.us.unr-lcssa
%flag.1.us.lcssa = phi i32 [ %flag.1.us.lcssa.ph, %for.cond29.for.cond.cleanup32_crit_edge.us.unr-lcssa ], [ %flag.085.us.unr, %for.body33.us.epil ], [ %spec.select.us.epil, %land.lhs.true.us.epil ]
%cmp50.not.us = icmp eq i32 %flag.1.us.lcssa, 0
br i1 %cmp50.not.us, label %if.end63, label %for.cond23.us
for.cond.cleanup4: ; preds = %for.inc, %for.cond2.preheader
%call18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %dust)
%indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
%10 = load i32, ptr %n, align 4, !tbaa !5
%11 = sext i32 %10 to i64
%cmp = icmp slt i64 %indvars.iv.next93, %11
br i1 %cmp, label %for.cond2.preheader, label %for.cond23.preheader, !llvm.loop !13
for.body5: ; preds = %for.cond2.preheader, %for.inc
%indvars.iv = phi i64 [ %indvars.iv.next, %for.inc ], [ 0, %for.cond2.preheader ]
%arrayidx7 = getelementptr inbounds [2001 x [2001 x i8]], ptr @a, i64 0, i64 %indvars.iv92, i64 %indvars.iv
%call8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx7)
%12 = load i8, ptr %arrayidx7, align 1, !tbaa !9
%cmp13 = icmp eq i8 %12, 49
br i1 %cmp13, label %if.then, label %for.inc
if.then: ; preds = %for.body5
%arrayidx16 = getelementptr inbounds [2001 x i32], ptr @sum, i64 0, i64 %indvars.iv
%13 = load i32, ptr %arrayidx16, align 4, !tbaa !5
%inc = add nsw i32 %13, 1
store i32 %inc, ptr %arrayidx16, align 4, !tbaa !5
br label %for.inc
for.inc: ; preds = %for.body5, %if.then
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%14 = load i32, ptr %m, align 4, !tbaa !5
%15 = sext i32 %14 to i64
%cmp3 = icmp slt i64 %indvars.iv.next, %15
br i1 %cmp3, label %for.body5, label %for.cond.cleanup4, !llvm.loop !14
if.end63: ; preds = %for.cond29.for.cond.cleanup32_crit_edge.us, %for.cond23.us, %for.cond29.preheader.lr.ph, %for.cond23.preheader, %entry
%.str.3.sink = phi ptr [ @.str.2, %entry ], [ @.str.2, %for.cond23.preheader ], [ @.str.3, %for.cond29.preheader.lr.ph ], [ @.str.2, %for.cond23.us ], [ @.str.3, %for.cond29.for.cond.cleanup32_crit_edge.us ]
%call62 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.3.sink)
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %dust) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %m) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}
|
#include <stdio.h>
#include <stdbool.h>
static int _count[2000] = {};
static int _a[2000][2000] = {};
int main() {
int N,M; scanf("%d %d\n", &N,&M);
if(N == 1) { printf("NO\n"); return 0; }
for(int i = 0 ; i < N ; ++i) for(int j = 0 ; j < M ; ++j) {
char aij; scanf("%c ", &aij);
_a[i][j] = aij - '0'; _count[j] += _a[i][j];
}
for(int i = 0 ; i < N ; ++i) { bool found = true;
for(int j = 0 ; j < M && found ; ++j) {
if(_a[i][j] == 1 && _count[j] < 2) found = false;
}
if(found) { printf("YES\n"); return 0; }
}
printf("NO\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11053/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11053/source.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"%d %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%c \00", align 1
@_a = internal unnamed_addr global [2000 x [2000 x i32]] zeroinitializer, align 16
@_count = internal unnamed_addr global [2000 x i32] zeroinitializer, align 16
@str = private unnamed_addr constant [4 x i8] c"YES\00", align 1
@str.5 = private unnamed_addr constant [3 x i8] c"NO\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%N = alloca i32, align 4
%M = alloca i32, align 4
%aij = alloca i8, align 1
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %N) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %M) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %N, ptr noundef nonnull %M)
%0 = load i32, ptr %N, align 4, !tbaa !5
%cmp = icmp eq i32 %0, 1
br i1 %cmp, label %cleanup57, label %for.cond.preheader
for.cond.preheader: ; preds = %entry
%cmp278 = icmp sgt i32 %0, 0
br i1 %cmp278, label %for.cond3.preheader.lr.ph, label %cleanup57
for.cond3.preheader.lr.ph: ; preds = %for.cond.preheader
%1 = load i32, ptr %M, align 4, !tbaa !5
%2 = icmp sgt i32 %1, 0
br i1 %2, label %for.cond3.preheader, label %cleanup57
for.cond3.preheader: ; preds = %for.cond3.preheader.lr.ph, %for.cond.cleanup5
%3 = phi i32 [ %10, %for.cond.cleanup5 ], [ %0, %for.cond3.preheader.lr.ph ]
%4 = phi i32 [ %11, %for.cond.cleanup5 ], [ %1, %for.cond3.preheader.lr.ph ]
%indvars.iv89 = phi i64 [ %indvars.iv.next90, %for.cond.cleanup5 ], [ 0, %for.cond3.preheader.lr.ph ]
%cmp476 = icmp sgt i32 %4, 0
br i1 %cmp476, label %for.body6, label %for.cond.cleanup5
for.cond20.preheader: ; preds = %for.cond.cleanup5
%cmp21.not84 = icmp sgt i32 %10, 0
br i1 %cmp21.not84, label %for.cond26.preheader.lr.ph, label %cleanup57
for.cond26.preheader.lr.ph: ; preds = %for.cond20.preheader
%.pr = load i32, ptr %M, align 4, !tbaa !5
%cmp2780 = icmp sgt i32 %.pr, 0
br i1 %cmp2780, label %for.cond26.preheader.us.preheader, label %cleanup57
for.cond26.preheader.us.preheader: ; preds = %for.cond26.preheader.lr.ph
%5 = zext i32 %.pr to i64
%wide.trip.count = zext i32 %10 to i64
br label %for.cond26.preheader.us
for.cond26.preheader.us: ; preds = %for.cond26.preheader.us.preheader, %for.cond20.us
%indvars.iv94 = phi i64 [ 0, %for.cond26.preheader.us.preheader ], [ %indvars.iv.next95, %for.cond20.us ]
br label %for.body31.us
for.body31.us: ; preds = %for.cond26.preheader.us, %for.inc44.us
%indvars.iv92 = phi i64 [ 0, %for.cond26.preheader.us ], [ %indvars.iv.next93, %for.inc44.us ]
%found.081.us = phi i8 [ 1, %for.cond26.preheader.us ], [ %found.1.us, %for.inc44.us ]
%arrayidx35.us = getelementptr inbounds [2000 x [2000 x i32]], ptr @_a, i64 0, i64 %indvars.iv94, i64 %indvars.iv92
%6 = load i32, ptr %arrayidx35.us, align 4, !tbaa !5
%cmp36.us = icmp eq i32 %6, 1
br i1 %cmp36.us, label %land.lhs.true.us, label %for.inc44.us
land.lhs.true.us: ; preds = %for.body31.us
%arrayidx39.us = getelementptr inbounds [2000 x i32], ptr @_count, i64 0, i64 %indvars.iv92
%7 = load i32, ptr %arrayidx39.us, align 4, !tbaa !5
%cmp40.us = icmp slt i32 %7, 2
%spec.select.us = select i1 %cmp40.us, i8 0, i8 %found.081.us
br label %for.inc44.us
for.inc44.us: ; preds = %land.lhs.true.us, %for.body31.us
%found.1.us = phi i8 [ %found.081.us, %for.body31.us ], [ %spec.select.us, %land.lhs.true.us ]
%indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
%cmp27.us = icmp ult i64 %indvars.iv.next93, %5
%8 = and i8 %found.1.us, 1
%tobool.us = icmp ne i8 %8, 0
%9 = select i1 %cmp27.us, i1 %tobool.us, i1 false
br i1 %9, label %for.body31.us, label %for.cond26.for.cond.cleanup30_crit_edge.us, !llvm.loop !9
for.cond20.us: ; preds = %for.cond26.for.cond.cleanup30_crit_edge.us
%indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
%exitcond.not = icmp eq i64 %indvars.iv.next95, %wide.trip.count
br i1 %exitcond.not, label %cleanup57, label %for.cond26.preheader.us, !llvm.loop !11
for.cond26.for.cond.cleanup30_crit_edge.us: ; preds = %for.inc44.us
br i1 %tobool.us, label %cleanup57, label %for.cond20.us
for.cond.cleanup5.loopexit: ; preds = %for.body6
%.pre = load i32, ptr %N, align 4, !tbaa !5
br label %for.cond.cleanup5
for.cond.cleanup5: ; preds = %for.cond.cleanup5.loopexit, %for.cond3.preheader
%10 = phi i32 [ %.pre, %for.cond.cleanup5.loopexit ], [ %3, %for.cond3.preheader ]
%11 = phi i32 [ %15, %for.cond.cleanup5.loopexit ], [ %4, %for.cond3.preheader ]
%indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 1
%12 = sext i32 %10 to i64
%cmp2 = icmp slt i64 %indvars.iv.next90, %12
br i1 %cmp2, label %for.cond3.preheader, label %for.cond20.preheader, !llvm.loop !12
for.body6: ; preds = %for.cond3.preheader, %for.body6
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body6 ], [ 0, %for.cond3.preheader ]
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %aij) #4
%call7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %aij)
%13 = load i8, ptr %aij, align 1, !tbaa !14
%conv = sext i8 %13 to i32
%sub = add nsw i32 %conv, -48
%arrayidx9 = getelementptr inbounds [2000 x [2000 x i32]], ptr @_a, i64 0, i64 %indvars.iv89, i64 %indvars.iv
store i32 %sub, ptr %arrayidx9, align 4, !tbaa !5
%arrayidx15 = getelementptr inbounds [2000 x i32], ptr @_count, i64 0, i64 %indvars.iv
%14 = load i32, ptr %arrayidx15, align 4, !tbaa !5
%add = add nsw i32 %14, %sub
store i32 %add, ptr %arrayidx15, align 4, !tbaa !5
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %aij) #4
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%15 = load i32, ptr %M, align 4, !tbaa !5
%16 = sext i32 %15 to i64
%cmp4 = icmp slt i64 %indvars.iv.next, %16
br i1 %cmp4, label %for.body6, label %for.cond.cleanup5.loopexit, !llvm.loop !15
cleanup57: ; preds = %for.cond20.us, %for.cond26.for.cond.cleanup30_crit_edge.us, %for.cond20.preheader, %for.cond.preheader, %for.cond26.preheader.lr.ph, %for.cond3.preheader.lr.ph, %entry
%str.sink = phi ptr [ @str.5, %entry ], [ @str, %for.cond3.preheader.lr.ph ], [ @str, %for.cond26.preheader.lr.ph ], [ @str.5, %for.cond.preheader ], [ @str.5, %for.cond20.preheader ], [ @str, %for.cond26.for.cond.cleanup30_crit_edge.us ], [ @str.5, %for.cond20.us ]
%puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %M) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %N) #4
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 = { nofree nounwind }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10, !13}
!13 = !{!"llvm.loop.unswitch.partial.disable"}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !10}
|
#include <stdio.h>
int main()
{
int a, b, c;
scanf("%d %d %d", &a,& b,& c);
if (c>=a&& c<=b)
{
printf("Yes\n");
}
else
{
printf("No\n");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110573/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110573/source.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 [9 x i8] c"%d %d %d\00", align 1
@str = private unnamed_addr constant [3 x i8] c"No\00", align 1
@str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca i32, align 4
%b = alloca i32, align 4
%c = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %c) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b, ptr noundef nonnull %c)
%0 = load i32, ptr %c, align 4, !tbaa !5
%1 = load i32, ptr %a, align 4, !tbaa !5
%cmp.not = icmp slt i32 %0, %1
%2 = load i32, ptr %b, align 4
%cmp1.not = icmp sgt i32 %0, %2
%or.cond = select i1 %cmp.not, i1 true, i1 %cmp1.not
%str.str.3 = select i1 %or.cond, ptr @str, ptr @str.3
%puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.str.3)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %c) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #4
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 = { nofree nounwind }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main()
{
int A,B,C;
scanf("%d%d%d",&A,&B,&C);
if(A<=B&&C<=B){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110623/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110623/source.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"%d%d%d\00", align 1
@str = private unnamed_addr constant [3 x i8] c"No\00", align 1
@str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%A = alloca i32, align 4
%B = alloca i32, align 4
%C = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %A) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %B) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %C) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %A, ptr noundef nonnull %B, ptr noundef nonnull %C)
%0 = load i32, ptr %A, align 4, !tbaa !5
%1 = load i32, ptr %B, align 4, !tbaa !5
%cmp.not = icmp sgt i32 %0, %1
%2 = load i32, ptr %C, align 4
%cmp1.not = icmp sgt i32 %2, %1
%or.cond = select i1 %cmp.not, i1 true, i1 %cmp1.not
%str.str.3 = select i1 %or.cond, ptr @str, ptr @str.3
%puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.str.3)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %C) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %B) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %A) #4
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 = { nofree nounwind }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(void)
{
int a, b, c;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
if (c >= a && c <= b)
{
printf("Yes");
}else
{
printf("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110674/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110674/source.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"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"No\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca i32, align 4
%b = alloca i32, align 4
%c = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %c) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %b)
%call2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %c)
%0 = load i32, ptr %c, align 4, !tbaa !5
%1 = load i32, ptr %a, align 4, !tbaa !5
%cmp.not = icmp slt i32 %0, %1
%2 = load i32, ptr %b, align 4
%cmp3.not = icmp sgt i32 %0, %2
%or.cond = select i1 %cmp.not, i1 true, i1 %cmp3.not
%.str.2..str.1 = select i1 %or.cond, ptr @.str.2, ptr @.str.1
%call5 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2..str.1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %c) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(){
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if(a<=c && c<=b) puts("Yes");
else
puts("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110717/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110717/source.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"%d%d%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"No\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca i32, align 4
%b = alloca i32, align 4
%c = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %c) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b, ptr noundef nonnull %c)
%0 = load i32, ptr %a, align 4, !tbaa !5
%1 = load i32, ptr %c, align 4, !tbaa !5
%cmp.not = icmp sgt i32 %0, %1
%2 = load i32, ptr %b, align 4
%cmp1.not = icmp sgt i32 %1, %2
%or.cond = select i1 %cmp.not, i1 true, i1 %cmp1.not
%.str.2..str.1 = select i1 %or.cond, ptr @.str.2, ptr @.str.1
%call3 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %.str.2..str.1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %c) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main (void)
{
int a,b,c;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
if(c>=a && c<=b){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110760/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110760/source.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"%d\00", align 1
@str = private unnamed_addr constant [3 x i8] c"No\00", align 1
@str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca i32, align 4
%b = alloca i32, align 4
%c = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %c) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %b)
%call2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %c)
%0 = load i32, ptr %c, align 4, !tbaa !5
%1 = load i32, ptr %a, align 4, !tbaa !5
%cmp.not = icmp slt i32 %0, %1
%2 = load i32, ptr %b, align 4
%cmp3.not = icmp sgt i32 %0, %2
%or.cond = select i1 %cmp.not, i1 true, i1 %cmp3.not
%str.str.3 = select i1 %or.cond, ptr @str, ptr @str.3
%puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.str.3)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %c) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #4
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 = { nofree nounwind }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c );
if(c>=a && c<=b){
printf("Yes\n");
}else{
printf("No\n");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110803/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110803/source.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 [9 x i8] c"%d %d %d\00", align 1
@str = private unnamed_addr constant [3 x i8] c"No\00", align 1
@str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca i32, align 4
%b = alloca i32, align 4
%c = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %c) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b, ptr noundef nonnull %c)
%0 = load i32, ptr %c, align 4, !tbaa !5
%1 = load i32, ptr %a, align 4, !tbaa !5
%cmp.not = icmp slt i32 %0, %1
%2 = load i32, ptr %b, align 4
%cmp1.not = icmp sgt i32 %0, %2
%or.cond = select i1 %cmp.not, i1 true, i1 %cmp1.not
%str.str.3 = select i1 %or.cond, ptr @str, ptr @str.3
%puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.str.3)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %c) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #4
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 = { nofree nounwind }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(void)
{
int A, B, C;
scanf("%d %d %d", &A, &B, &C);
if(A <= C && C <= B)
printf("Yes\n");
else
printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110847/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110847/source.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 [9 x i8] c"%d %d %d\00", align 1
@str = private unnamed_addr constant [3 x i8] c"No\00", align 1
@str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%A = alloca i32, align 4
%B = alloca i32, align 4
%C = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %A) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %B) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %C) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %A, ptr noundef nonnull %B, ptr noundef nonnull %C)
%0 = load i32, ptr %A, align 4, !tbaa !5
%1 = load i32, ptr %C, align 4, !tbaa !5
%cmp.not = icmp sgt i32 %0, %1
%2 = load i32, ptr %B, align 4
%cmp1.not = icmp sgt i32 %1, %2
%or.cond = select i1 %cmp.not, i1 true, i1 %cmp1.not
%str.str.3 = select i1 %or.cond, ptr @str, ptr @str.3
%puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.str.3)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %C) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %B) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %A) #4
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 = { nofree nounwind }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include<stdio.h>
int main(){
int A, B, C;
scanf("%d %d %d", &A, &B, &C);
if(C >= A && C <= B){
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110898/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110898/source.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 [9 x i8] c"%d %d %d\00", align 1
@str = private unnamed_addr constant [3 x i8] c"No\00", align 1
@str.3 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%A = alloca i32, align 4
%B = alloca i32, align 4
%C = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %A) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %B) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %C) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %A, ptr noundef nonnull %B, ptr noundef nonnull %C)
%0 = load i32, ptr %C, align 4, !tbaa !5
%1 = load i32, ptr %A, align 4, !tbaa !5
%cmp.not = icmp slt i32 %0, %1
%2 = load i32, ptr %B, align 4
%cmp1.not = icmp sgt i32 %0, %2
%or.cond = select i1 %cmp.not, i1 true, i1 %cmp1.not
%str.str.3 = select i1 %or.cond, ptr @str, ptr @str.3
%puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.str.3)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %C) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %B) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %A) #4
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 = { nofree nounwind }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int main(void){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(c>=a&&c<=b)printf("Yes");
else printf("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110940/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110940/source.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 [9 x i8] c"%d %d %d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"No\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca i32, align 4
%b = alloca i32, align 4
%c = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %c) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b, ptr noundef nonnull %c)
%0 = load i32, ptr %c, align 4, !tbaa !5
%1 = load i32, ptr %a, align 4, !tbaa !5
%cmp.not = icmp slt i32 %0, %1
%2 = load i32, ptr %b, align 4
%cmp1.not = icmp sgt i32 %0, %2
%or.cond = select i1 %cmp.not, i1 true, i1 %cmp1.not
%.str.2..str.1 = select i1 %or.cond, ptr @.str.2, ptr @.str.1
%call3 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2..str.1)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %c) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
#include <stdio.h>
int schedule[365];
int number_of_days;
int map[3][3][365];//[x][y][]
int debug;
int dfs(int x, int y, int day, int end, int* moisture);
void print_map(int x, int y, int day, int* dryness);
/**
void print_binary(int bin){
unsigned int bit=1<<15;
for(int i=0;i<16;i++){
if(bin&bit){
printf("1");
}else{
printf("0");
}
bit>>=1;
}
printf("\n");
}
**/
int main(void){
int buf[16];
int dryness[16];
while(scanf("%d",&number_of_days),number_of_days){
//printf("number_of_days: %d\n",number_of_days);
//?????????????????????
int i,j;
for(i=0;i<number_of_days;i++){
scanf("%d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d", buf, buf+1, buf+2, buf+3, buf+4, buf+5, buf+6, buf+7, buf+8, buf+9, buf+10, buf+11, buf+12, buf+13, buf+14, buf+15);
schedule[i]=0;
for(j=15;~j;j--){
if(buf[j]==1){
schedule[i]++;
}
if(j)schedule[i]<<=1;
}
}
//????????????????????§???????¨?
int x,y;
for(i=0;i<number_of_days;i++){
for(x=0;x<3;x++){
for(y=0;y<3;y++){
if( ((0b110011)<<(x+4*y))&schedule[i]){
map[x][y][i]=0;//??????????????????
}else{
map[x][y][i]=1;//?????????
}
}
}
}
//?????????
for(i=0;i<16;i++){
dryness[i]=0;
}
if(number_of_days>8){
for(i=number_of_days-7;i>=0;i--){
for(x=0;x<3;x++){
for(y=0;y<3;y++){
if(map[x][y][i]){
if(dfs(x,y,i,i+6,dryness)==-1){
map[x][y][i]=0;
}
}
}
}
}
}
//??±???????????¢?´¢
if(map[1][1][0]==0){
printf("0\n");
continue;
}
if(~dfs(1, 1, 0, number_of_days-1, dryness)){
printf("1\n");
}else{
printf("0\n");
}
}
return 0;
}
void print_map(int x, int y, int day, int* dryness){
char map[16];
int i;
for(i=0;i<16;i++){
map[i]='0'+dryness[i];
}
map[x+4*y]='X';
map[x+4*y+1]='X';
map[x+4*y+4]='X';
map[x+4*y+5]='X';
printf("Day %d :\n",day);
for(y=0;y<4;y++){
for(x=0;x<4;x++){
printf("%c",map[x+4*y]);
}
printf("\n");
}
printf("\n");
}
int dfs(int x, int y, int day, int end, int* dryness){
//??¨???????????????
int drystats[16];
int i;
for(i=0;i<16;i++){
drystats[i]=dryness[i]+1;
}
drystats[x+4*y]=0;
drystats[x+4*y+1]=0;
drystats[x+4*y+4]=0;
drystats[x+4*y+5]=0;
for(i=0;i<16;i++){
if(drystats[i]>6) return -1;//??±???
}
if(day==end){
return 0;//??????
}
//???????§?????????????(?????°)
for(i=-2;i<3;i++){
if(i==0){
if(map[x][y][day+1]){
if(~dfs(x,y,day+1,end,drystats)){
return 0;
}
}
}else{
if(x+i>=0&&x+i<3){
if(map[x+i][y][day+1]){
if(~dfs(x+i,y,day+1,end,drystats)){
return 0;
}
}
}
if(y+i>=0&&y+i<3){
if(map[x][y+i][day+1]){
if(~dfs(x,y+i,day+1,end,drystats)){
return 0;
}
}
}
}
}
return -1;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110984/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110984/source.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"%d\00", align 1
@number_of_days = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [48 x i8] c"%d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d\00", align 1
@schedule = dso_local local_unnamed_addr global [365 x i32] zeroinitializer, align 16
@map = dso_local local_unnamed_addr global [3 x [3 x [365 x i32]]] zeroinitializer, align 16
@.str.4 = private unnamed_addr constant [10 x i8] c"Day %d :\0A\00", align 1
@debug = dso_local local_unnamed_addr global i32 0, align 4
@str.7 = private unnamed_addr constant [2 x i8] c"1\00", align 1
@str.8 = private unnamed_addr constant [2 x i8] c"0\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%buf = alloca [16 x i32], align 16
%dryness = alloca [16 x i32], align 16
call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %buf) #6
call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %dryness) #6
%call205 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @number_of_days)
%0 = load i32, ptr @number_of_days, align 4, !tbaa !5
%tobool.not206 = icmp eq i32 %0, 0
br i1 %tobool.not206, label %while.end, label %for.cond.preheader.lr.ph
for.cond.preheader.lr.ph: ; preds = %entry
%add.ptr = getelementptr inbounds i32, ptr %buf, i64 1
%add.ptr3 = getelementptr inbounds i32, ptr %buf, i64 2
%add.ptr5 = getelementptr inbounds i32, ptr %buf, i64 3
%add.ptr7 = getelementptr inbounds i32, ptr %buf, i64 4
%add.ptr9 = getelementptr inbounds i32, ptr %buf, i64 5
%add.ptr11 = getelementptr inbounds i32, ptr %buf, i64 6
%add.ptr13 = getelementptr inbounds i32, ptr %buf, i64 7
%add.ptr15 = getelementptr inbounds i32, ptr %buf, i64 8
%add.ptr17 = getelementptr inbounds i32, ptr %buf, i64 9
%add.ptr19 = getelementptr inbounds i32, ptr %buf, i64 10
%add.ptr21 = getelementptr inbounds i32, ptr %buf, i64 11
%add.ptr23 = getelementptr inbounds i32, ptr %buf, i64 12
%add.ptr25 = getelementptr inbounds i32, ptr %buf, i64 13
%add.ptr27 = getelementptr inbounds i32, ptr %buf, i64 14
%add.ptr29 = getelementptr inbounds i32, ptr %buf, i64 15
br label %for.cond.preheader
for.cond.preheader: ; preds = %for.cond.preheader.lr.ph, %cleanup
%1 = phi i32 [ %0, %for.cond.preheader.lr.ph ], [ %114, %cleanup ]
%cmp194 = icmp sgt i32 %1, 0
br i1 %cmp194, label %for.body, label %for.cond83.preheader.thread
for.cond47.preheader: ; preds = %for.inc.8
%cmp48198 = icmp sgt i32 %.pr, 0
br i1 %cmp48198, label %for.cond50.preheader.preheader, label %for.cond83.preheader.thread
for.cond50.preheader.preheader: ; preds = %for.cond47.preheader
%wide.trip.count = zext i32 %.pr to i64
%min.iters.check = icmp ult i32 %.pr, 4
br i1 %min.iters.check, label %for.cond50.preheader.preheader283, label %vector.ph
vector.ph: ; preds = %for.cond50.preheader.preheader
%n.vec = and i64 %wide.trip.count, 4294967292
br label %vector.body
vector.body: ; preds = %vector.body, %vector.ph
%index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
%2 = getelementptr inbounds [365 x i32], ptr @schedule, i64 0, i64 %index
%wide.load = load <4 x i32>, ptr %2, align 16, !tbaa !5
%3 = and <4 x i32> %wide.load, <i32 51, i32 51, i32 51, i32 51>
%4 = icmp eq <4 x i32> %3, zeroinitializer
%5 = zext <4 x i1> %4 to <4 x i32>
%6 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 0, i64 0, i64 %index
store <4 x i32> %5, ptr %6, align 16
%7 = and <4 x i32> %wide.load, <i32 816, i32 816, i32 816, i32 816>
%8 = icmp eq <4 x i32> %7, zeroinitializer
%9 = zext <4 x i1> %8 to <4 x i32>
%10 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 0, i64 1, i64 %index
store <4 x i32> %9, ptr %10, align 4
%11 = and <4 x i32> %wide.load, <i32 13056, i32 13056, i32 13056, i32 13056>
%12 = icmp eq <4 x i32> %11, zeroinitializer
%13 = zext <4 x i1> %12 to <4 x i32>
%14 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 0, i64 2, i64 %index
store <4 x i32> %13, ptr %14, align 8
%15 = and <4 x i32> %wide.load, <i32 102, i32 102, i32 102, i32 102>
%16 = icmp eq <4 x i32> %15, zeroinitializer
%17 = zext <4 x i1> %16 to <4 x i32>
%18 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 1, i64 0, i64 %index
store <4 x i32> %17, ptr %18, align 4
%19 = and <4 x i32> %wide.load, <i32 1632, i32 1632, i32 1632, i32 1632>
%20 = icmp eq <4 x i32> %19, zeroinitializer
%21 = zext <4 x i1> %20 to <4 x i32>
%22 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 1, i64 1, i64 %index
store <4 x i32> %21, ptr %22, align 16
%23 = and <4 x i32> %wide.load, <i32 26112, i32 26112, i32 26112, i32 26112>
%24 = icmp eq <4 x i32> %23, zeroinitializer
%25 = zext <4 x i1> %24 to <4 x i32>
%26 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 1, i64 2, i64 %index
store <4 x i32> %25, ptr %26, align 4
%27 = and <4 x i32> %wide.load, <i32 204, i32 204, i32 204, i32 204>
%28 = icmp eq <4 x i32> %27, zeroinitializer
%29 = zext <4 x i1> %28 to <4 x i32>
%30 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 2, i64 0, i64 %index
store <4 x i32> %29, ptr %30, align 8
%31 = and <4 x i32> %wide.load, <i32 3264, i32 3264, i32 3264, i32 3264>
%32 = icmp eq <4 x i32> %31, zeroinitializer
%33 = zext <4 x i1> %32 to <4 x i32>
%34 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 2, i64 1, i64 %index
store <4 x i32> %33, ptr %34, align 4
%35 = and <4 x i32> %wide.load, <i32 52224, i32 52224, i32 52224, i32 52224>
%36 = icmp eq <4 x i32> %35, zeroinitializer
%37 = zext <4 x i1> %36 to <4 x i32>
%38 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 2, i64 2, i64 %index
store <4 x i32> %37, ptr %38, align 16
%index.next = add nuw i64 %index, 4
%39 = icmp eq i64 %index.next, %n.vec
br i1 %39, label %middle.block, label %vector.body, !llvm.loop !9
middle.block: ; preds = %vector.body
%cmp.n = icmp eq i64 %n.vec, %wide.trip.count
br i1 %cmp.n, label %for.cond83.preheader, label %for.cond50.preheader.preheader283
for.cond50.preheader.preheader283: ; preds = %for.cond50.preheader.preheader, %middle.block
%indvars.iv233.ph = phi i64 [ 0, %for.cond50.preheader.preheader ], [ %n.vec, %middle.block ]
br label %for.cond50.preheader
for.body: ; preds = %for.cond.preheader, %for.inc.8
%indvars.iv = phi i64 [ %indvars.iv.next, %for.inc.8 ], [ 0, %for.cond.preheader ]
%call30 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %buf, ptr noundef nonnull %add.ptr, ptr noundef nonnull %add.ptr3, ptr noundef nonnull %add.ptr5, ptr noundef nonnull %add.ptr7, ptr noundef nonnull %add.ptr9, ptr noundef nonnull %add.ptr11, ptr noundef nonnull %add.ptr13, ptr noundef nonnull %add.ptr15, ptr noundef nonnull %add.ptr17, ptr noundef nonnull %add.ptr19, ptr noundef nonnull %add.ptr21, ptr noundef nonnull %add.ptr23, ptr noundef nonnull %add.ptr25, ptr noundef nonnull %add.ptr27, ptr noundef nonnull %add.ptr29)
%arrayidx = getelementptr inbounds [365 x i32], ptr @schedule, i64 0, i64 %indvars.iv
%40 = load i32, ptr %add.ptr29, align 4, !tbaa !5
%cmp36 = icmp eq i32 %40, 1
%spec.select = select i1 %cmp36, i32 2, i32 0
%41 = load i32, ptr %add.ptr27, align 8, !tbaa !5
%cmp36.1 = icmp eq i32 %41, 1
br i1 %cmp36.1, label %if.then.1, label %for.inc.1
if.then.1: ; preds = %for.body
%inc.1 = or i32 %spec.select, 1
store i32 %inc.1, ptr %arrayidx, align 4, !tbaa !5
br label %for.inc.1
for.inc.1: ; preds = %if.then.1, %for.body
%42 = phi i32 [ %inc.1, %if.then.1 ], [ %spec.select, %for.body ]
%43 = load i32, ptr %add.ptr25, align 4, !tbaa !5
%cmp36.2 = icmp eq i32 %43, 1
%44 = shl nsw i32 %42, 2
%45 = select i1 %cmp36.2, i32 2, i32 0
%shl.2 = or i32 %44, %45
%46 = load i32, ptr %add.ptr23, align 16, !tbaa !5
%cmp36.3 = icmp eq i32 %46, 1
%inc.3 = zext i1 %cmp36.3 to i32
%47 = or i32 %shl.2, %inc.3
%shl.3 = shl nuw nsw i32 %47, 1
%48 = load i32, ptr %add.ptr21, align 4, !tbaa !5
%cmp36.4 = icmp eq i32 %48, 1
br i1 %cmp36.4, label %if.then.4, label %for.inc.4
if.then.4: ; preds = %for.inc.1
%inc.4 = or i32 %shl.3, 1
store i32 %inc.4, ptr %arrayidx, align 4, !tbaa !5
br label %for.inc.4
for.inc.4: ; preds = %if.then.4, %for.inc.1
%49 = phi i32 [ %inc.4, %if.then.4 ], [ %shl.3, %for.inc.1 ]
%50 = shl i32 %49, 2
%51 = load <4 x i32>, ptr %add.ptr13, align 4, !tbaa !5
%52 = icmp eq <4 x i32> %51, <i32 1, i32 1, i32 1, i32 1>
%53 = extractelement <4 x i1> %52, i64 3
%54 = select i1 %53, i32 2, i32 0
%shl.5 = or i32 %50, %54
%55 = extractelement <4 x i1> %52, i64 2
%inc.6 = zext i1 %55 to i32
%56 = or i32 %shl.5, %inc.6
%57 = shl i32 %56, 2
%58 = extractelement <4 x i1> %52, i64 1
%59 = select i1 %58, i32 2, i32 0
%shl.7 = or i32 %57, %59
%60 = extractelement <4 x i1> %52, i64 0
br i1 %60, label %if.then.8, label %for.inc.8
if.then.8: ; preds = %for.inc.4
%inc.8 = or i32 %shl.7, 1
store i32 %inc.8, ptr %arrayidx, align 4, !tbaa !5
br label %for.inc.8
for.inc.8: ; preds = %if.then.8, %for.inc.4
%61 = phi i32 [ %inc.8, %if.then.8 ], [ %shl.7, %for.inc.4 ]
%62 = load i32, ptr %add.ptr11, align 8, !tbaa !5
%cmp36.9 = icmp eq i32 %62, 1
%63 = shl i32 %61, 2
%64 = select i1 %cmp36.9, i32 2, i32 0
%shl.9 = or i32 %63, %64
%65 = load i32, ptr %add.ptr9, align 4, !tbaa !5
%cmp36.10 = icmp eq i32 %65, 1
%inc.10 = zext i1 %cmp36.10 to i32
%66 = or i32 %shl.9, %inc.10
%67 = load i32, ptr %add.ptr7, align 16, !tbaa !5
%cmp36.11 = icmp eq i32 %67, 1
%68 = shl i32 %66, 2
%69 = select i1 %cmp36.11, i32 2, i32 0
%shl.11 = or i32 %68, %69
%70 = load <4 x i32>, ptr %buf, align 16, !tbaa !5
%71 = icmp eq <4 x i32> %70, <i32 1, i32 1, i32 1, i32 1>
%72 = extractelement <4 x i1> %71, i64 3
%inc.12 = zext i1 %72 to i32
%73 = or i32 %shl.11, %inc.12
%74 = shl i32 %73, 2
%75 = extractelement <4 x i1> %71, i64 2
%76 = select i1 %75, i32 2, i32 0
%shl.13 = or i32 %74, %76
%77 = extractelement <4 x i1> %71, i64 1
%inc.14 = zext i1 %77 to i32
%78 = or i32 %shl.13, %inc.14
%shl.14 = shl nuw nsw i32 %78, 1
%79 = extractelement <4 x i1> %71, i64 0
%inc.15 = or i32 %shl.14, 1
%spec.select284 = select i1 %79, i32 %inc.15, i32 %shl.14
store i32 %spec.select284, ptr %arrayidx, align 4, !tbaa !5
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%.pr = load i32, ptr @number_of_days, align 4, !tbaa !5
%80 = sext i32 %.pr to i64
%cmp = icmp slt i64 %indvars.iv.next, %80
br i1 %cmp, label %for.body, label %for.cond47.preheader, !llvm.loop !13
for.cond83.preheader.thread: ; preds = %for.cond47.preheader, %for.cond.preheader
%.lcssa275.ph = phi i32 [ %.pr, %for.cond47.preheader ], [ %1, %for.cond.preheader ]
call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %dryness, i8 0, i64 64, i1 false), !tbaa !5
br label %if.end132
for.cond83.preheader: ; preds = %for.cond50.preheader, %middle.block
call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %dryness, i8 0, i64 64, i1 false), !tbaa !5
%cmp91 = icmp sgt i32 %.pr, 8
br i1 %cmp91, label %for.cond96.preheader.preheader, label %if.end132
for.cond50.preheader: ; preds = %for.cond50.preheader.preheader283, %for.cond50.preheader
%indvars.iv233 = phi i64 [ %indvars.iv.next234, %for.cond50.preheader ], [ %indvars.iv233.ph, %for.cond50.preheader.preheader283 ]
%arrayidx58 = getelementptr inbounds [365 x i32], ptr @schedule, i64 0, i64 %indvars.iv233
%81 = load i32, ptr %arrayidx58, align 4, !tbaa !5
%and = and i32 %81, 51
%tobool59.not = icmp eq i32 %and, 0
%spec.select282 = zext i1 %tobool59.not to i32
%82 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 0, i64 0, i64 %indvars.iv233
store i32 %spec.select282, ptr %82, align 4
%83 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 0, i64 1, i64 %indvars.iv233
%84 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 0, i64 2, i64 %indvars.iv233
%85 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 1, i64 0, i64 %indvars.iv233
%86 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 1, i64 1, i64 %indvars.iv233
%87 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 1, i64 2, i64 %indvars.iv233
%88 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 2, i64 0, i64 %indvars.iv233
%89 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 2, i64 1, i64 %indvars.iv233
%90 = insertelement <8 x i32> poison, i32 %81, i64 0
%91 = shufflevector <8 x i32> %90, <8 x i32> poison, <8 x i32> zeroinitializer
%92 = and <8 x i32> %91, <i32 52224, i32 3264, i32 204, i32 26112, i32 1632, i32 102, i32 13056, i32 816>
%93 = icmp eq <8 x i32> %92, zeroinitializer
%94 = extractelement <8 x i1> %93, i64 7
%.sink265 = zext i1 %94 to i32
store i32 %.sink265, ptr %83, align 4
%95 = extractelement <8 x i1> %93, i64 6
%.sink266 = zext i1 %95 to i32
store i32 %.sink266, ptr %84, align 4
%96 = extractelement <8 x i1> %93, i64 5
%.sink267 = zext i1 %96 to i32
store i32 %.sink267, ptr %85, align 4
%97 = extractelement <8 x i1> %93, i64 4
%.sink268 = zext i1 %97 to i32
store i32 %.sink268, ptr %86, align 4
%98 = extractelement <8 x i1> %93, i64 3
%.sink269 = zext i1 %98 to i32
store i32 %.sink269, ptr %87, align 4
%99 = extractelement <8 x i1> %93, i64 2
%.sink270 = zext i1 %99 to i32
store i32 %.sink270, ptr %88, align 4
%100 = extractelement <8 x i1> %93, i64 1
%.sink271 = zext i1 %100 to i32
store i32 %.sink271, ptr %89, align 4
%101 = extractelement <8 x i1> %93, i64 0
%.sink272 = zext i1 %101 to i32
%102 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 2, i64 2, i64 %indvars.iv233
store i32 %.sink272, ptr %102, align 4
%indvars.iv.next234 = add nuw nsw i64 %indvars.iv233, 1
%exitcond.not = icmp eq i64 %indvars.iv.next234, %wide.trip.count
br i1 %exitcond.not, label %for.cond83.preheader, label %for.cond50.preheader, !llvm.loop !14
for.cond96.preheader.preheader: ; preds = %for.cond83.preheader
%sub = add nsw i32 %.pr, -7
%103 = zext i32 %sub to i64
br label %for.cond96.preheader
for.cond96.preheader: ; preds = %for.cond96.preheader.preheader, %for.inc123.2.2
%indvars.iv261 = phi i64 [ %103, %for.cond96.preheader.preheader ], [ %indvars.iv.next262, %for.inc123.2.2 ]
%indvars264 = trunc i64 %indvars.iv261 to i32
%add110 = add nuw nsw i32 %indvars264, 6
%arrayidx107 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 0, i64 0, i64 %indvars.iv261
%104 = load i32, ptr %arrayidx107, align 4, !tbaa !5
%tobool108.not = icmp eq i32 %104, 0
br i1 %tobool108.not, label %for.inc123, label %if.then109
if.then109: ; preds = %for.cond96.preheader
%call112 = call i32 @dfs(i32 noundef 0, i32 noundef 0, i32 noundef %indvars264, i32 noundef %add110, ptr noundef nonnull %dryness), !range !15
%cmp113 = icmp eq i32 %call112, -1
br i1 %cmp113, label %if.then114, label %for.inc123
if.then114: ; preds = %if.then109
store i32 0, ptr %arrayidx107, align 4, !tbaa !5
br label %for.inc123
for.inc123: ; preds = %for.cond96.preheader, %if.then114, %if.then109
%arrayidx107.1 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 0, i64 1, i64 %indvars.iv261
%105 = load i32, ptr %arrayidx107.1, align 4, !tbaa !5
%tobool108.not.1 = icmp eq i32 %105, 0
br i1 %tobool108.not.1, label %for.inc123.1, label %if.then109.1
if.then109.1: ; preds = %for.inc123
%call112.1 = call i32 @dfs(i32 noundef 0, i32 noundef 1, i32 noundef %indvars264, i32 noundef %add110, ptr noundef nonnull %dryness), !range !15
%cmp113.1 = icmp eq i32 %call112.1, -1
br i1 %cmp113.1, label %if.then114.1, label %for.inc123.1
if.then114.1: ; preds = %if.then109.1
store i32 0, ptr %arrayidx107.1, align 4, !tbaa !5
br label %for.inc123.1
for.inc123.1: ; preds = %if.then114.1, %if.then109.1, %for.inc123
%arrayidx107.2 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 0, i64 2, i64 %indvars.iv261
%106 = load i32, ptr %arrayidx107.2, align 4, !tbaa !5
%tobool108.not.2 = icmp eq i32 %106, 0
br i1 %tobool108.not.2, label %for.inc123.2, label %if.then109.2
if.then109.2: ; preds = %for.inc123.1
%call112.2 = call i32 @dfs(i32 noundef 0, i32 noundef 2, i32 noundef %indvars264, i32 noundef %add110, ptr noundef nonnull %dryness), !range !15
%cmp113.2 = icmp eq i32 %call112.2, -1
br i1 %cmp113.2, label %if.then114.2, label %for.inc123.2
if.then114.2: ; preds = %if.then109.2
store i32 0, ptr %arrayidx107.2, align 4, !tbaa !5
br label %for.inc123.2
for.inc123.2: ; preds = %if.then114.2, %if.then109.2, %for.inc123.1
%arrayidx107.1247 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 1, i64 0, i64 %indvars.iv261
%107 = load i32, ptr %arrayidx107.1247, align 4, !tbaa !5
%tobool108.not.1248 = icmp eq i32 %107, 0
br i1 %tobool108.not.1248, label %for.inc123.1253, label %if.then109.1251
if.then109.1251: ; preds = %for.inc123.2
%call112.1249 = call i32 @dfs(i32 noundef 1, i32 noundef 0, i32 noundef %indvars264, i32 noundef %add110, ptr noundef nonnull %dryness), !range !15
%cmp113.1250 = icmp eq i32 %call112.1249, -1
br i1 %cmp113.1250, label %if.then114.1252, label %for.inc123.1253
if.then114.1252: ; preds = %if.then109.1251
store i32 0, ptr %arrayidx107.1247, align 4, !tbaa !5
br label %for.inc123.1253
for.inc123.1253: ; preds = %if.then114.1252, %if.then109.1251, %for.inc123.2
%arrayidx107.1.1 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 1, i64 1, i64 %indvars.iv261
%108 = load i32, ptr %arrayidx107.1.1, align 4, !tbaa !5
%tobool108.not.1.1 = icmp eq i32 %108, 0
br i1 %tobool108.not.1.1, label %for.inc123.1.1, label %if.then109.1.1
if.then109.1.1: ; preds = %for.inc123.1253
%call112.1.1 = call i32 @dfs(i32 noundef 1, i32 noundef 1, i32 noundef %indvars264, i32 noundef %add110, ptr noundef nonnull %dryness), !range !15
%cmp113.1.1 = icmp eq i32 %call112.1.1, -1
br i1 %cmp113.1.1, label %if.then114.1.1, label %for.inc123.1.1
if.then114.1.1: ; preds = %if.then109.1.1
store i32 0, ptr %arrayidx107.1.1, align 4, !tbaa !5
br label %for.inc123.1.1
for.inc123.1.1: ; preds = %if.then114.1.1, %if.then109.1.1, %for.inc123.1253
%arrayidx107.2.1 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 1, i64 2, i64 %indvars.iv261
%109 = load i32, ptr %arrayidx107.2.1, align 4, !tbaa !5
%tobool108.not.2.1 = icmp eq i32 %109, 0
br i1 %tobool108.not.2.1, label %for.inc123.2.1, label %if.then109.2.1
if.then109.2.1: ; preds = %for.inc123.1.1
%call112.2.1 = call i32 @dfs(i32 noundef 1, i32 noundef 2, i32 noundef %indvars264, i32 noundef %add110, ptr noundef nonnull %dryness), !range !15
%cmp113.2.1 = icmp eq i32 %call112.2.1, -1
br i1 %cmp113.2.1, label %if.then114.2.1, label %for.inc123.2.1
if.then114.2.1: ; preds = %if.then109.2.1
store i32 0, ptr %arrayidx107.2.1, align 4, !tbaa !5
br label %for.inc123.2.1
for.inc123.2.1: ; preds = %if.then114.2.1, %if.then109.2.1, %for.inc123.1.1
%arrayidx107.2254 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 2, i64 0, i64 %indvars.iv261
%110 = load i32, ptr %arrayidx107.2254, align 4, !tbaa !5
%tobool108.not.2255 = icmp eq i32 %110, 0
br i1 %tobool108.not.2255, label %for.inc123.2260, label %if.then109.2258
if.then109.2258: ; preds = %for.inc123.2.1
%call112.2256 = call i32 @dfs(i32 noundef 2, i32 noundef 0, i32 noundef %indvars264, i32 noundef %add110, ptr noundef nonnull %dryness), !range !15
%cmp113.2257 = icmp eq i32 %call112.2256, -1
br i1 %cmp113.2257, label %if.then114.2259, label %for.inc123.2260
if.then114.2259: ; preds = %if.then109.2258
store i32 0, ptr %arrayidx107.2254, align 4, !tbaa !5
br label %for.inc123.2260
for.inc123.2260: ; preds = %if.then114.2259, %if.then109.2258, %for.inc123.2.1
%arrayidx107.1.2 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 2, i64 1, i64 %indvars.iv261
%111 = load i32, ptr %arrayidx107.1.2, align 4, !tbaa !5
%tobool108.not.1.2 = icmp eq i32 %111, 0
br i1 %tobool108.not.1.2, label %for.inc123.1.2, label %if.then109.1.2
if.then109.1.2: ; preds = %for.inc123.2260
%call112.1.2 = call i32 @dfs(i32 noundef 2, i32 noundef 1, i32 noundef %indvars264, i32 noundef %add110, ptr noundef nonnull %dryness), !range !15
%cmp113.1.2 = icmp eq i32 %call112.1.2, -1
br i1 %cmp113.1.2, label %if.then114.1.2, label %for.inc123.1.2
if.then114.1.2: ; preds = %if.then109.1.2
store i32 0, ptr %arrayidx107.1.2, align 4, !tbaa !5
br label %for.inc123.1.2
for.inc123.1.2: ; preds = %if.then114.1.2, %if.then109.1.2, %for.inc123.2260
%arrayidx107.2.2 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 2, i64 2, i64 %indvars.iv261
%112 = load i32, ptr %arrayidx107.2.2, align 4, !tbaa !5
%tobool108.not.2.2 = icmp eq i32 %112, 0
br i1 %tobool108.not.2.2, label %for.inc123.2.2, label %if.then109.2.2
if.then109.2.2: ; preds = %for.inc123.1.2
%call112.2.2 = call i32 @dfs(i32 noundef 2, i32 noundef 2, i32 noundef %indvars264, i32 noundef %add110, ptr noundef nonnull %dryness), !range !15
%cmp113.2.2 = icmp eq i32 %call112.2.2, -1
br i1 %cmp113.2.2, label %if.then114.2.2, label %for.inc123.2.2
if.then114.2.2: ; preds = %if.then109.2.2
store i32 0, ptr %arrayidx107.2.2, align 4, !tbaa !5
br label %for.inc123.2.2
for.inc123.2.2: ; preds = %if.then114.2.2, %if.then109.2.2, %for.inc123.1.2
%indvars.iv.next262 = add nsw i64 %indvars.iv261, -1
%cmp94 = icmp sgt i64 %indvars.iv261, 0
br i1 %cmp94, label %for.cond96.preheader, label %if.end132, !llvm.loop !16
if.end132: ; preds = %for.inc123.2.2, %for.cond83.preheader.thread, %for.cond83.preheader
%.lcssa275278 = phi i32 [ %.lcssa275.ph, %for.cond83.preheader.thread ], [ %.pr, %for.cond83.preheader ], [ %.pr, %for.inc123.2.2 ]
%113 = load i32, ptr getelementptr inbounds ([3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 1, i64 1), align 16, !tbaa !5
%cmp133 = icmp eq i32 %113, 0
br i1 %cmp133, label %cleanup, label %if.end136, !llvm.loop !17
if.end136: ; preds = %if.end132
%sub137 = add nsw i32 %.lcssa275278, -1
%call139 = call i32 @dfs(i32 noundef 1, i32 noundef 1, i32 noundef 0, i32 noundef %sub137, ptr noundef nonnull %dryness), !range !15
%tobool141.not = icmp eq i32 %call139, -1
%str.str.7 = select i1 %tobool141.not, ptr @str.8, ptr @str.7
br label %cleanup
cleanup: ; preds = %if.end136, %if.end132
%str.7.sink = phi ptr [ @str.8, %if.end132 ], [ %str.str.7, %if.end136 ]
%puts191 = call i32 @puts(ptr nonnull dereferenceable(1) %str.7.sink)
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @number_of_days)
%114 = load i32, ptr @number_of_days, align 4, !tbaa !5
%tobool.not = icmp eq i32 %114, 0
br i1 %tobool.not, label %while.end, label %for.cond.preheader
while.end: ; preds = %cleanup, %entry
call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %dryness) #6
call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %buf) #6
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nosync nounwind memory(read, inaccessiblemem: none) uwtable
define dso_local i32 @dfs(i32 noundef %x, i32 noundef %y, i32 noundef %day, i32 noundef %end, ptr nocapture noundef readonly %dryness) local_unnamed_addr #3 {
entry:
%drystats = alloca [16 x i32], align 16
call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %drystats) #6
%0 = load <4 x i32>, ptr %dryness, align 4, !tbaa !5
%1 = add nsw <4 x i32> %0, <i32 1, i32 1, i32 1, i32 1>
store <4 x i32> %1, ptr %drystats, align 16, !tbaa !5
%arrayidx.4 = getelementptr inbounds i32, ptr %dryness, i64 4
%arrayidx2.4 = getelementptr inbounds [16 x i32], ptr %drystats, i64 0, i64 4
%2 = load <4 x i32>, ptr %arrayidx.4, align 4, !tbaa !5
%3 = add nsw <4 x i32> %2, <i32 1, i32 1, i32 1, i32 1>
store <4 x i32> %3, ptr %arrayidx2.4, align 16, !tbaa !5
%arrayidx.8 = getelementptr inbounds i32, ptr %dryness, i64 8
%arrayidx2.8 = getelementptr inbounds [16 x i32], ptr %drystats, i64 0, i64 8
%4 = load <4 x i32>, ptr %arrayidx.8, align 4, !tbaa !5
%5 = add nsw <4 x i32> %4, <i32 1, i32 1, i32 1, i32 1>
store <4 x i32> %5, ptr %arrayidx2.8, align 16, !tbaa !5
%arrayidx.12 = getelementptr inbounds i32, ptr %dryness, i64 12
%arrayidx2.12 = getelementptr inbounds [16 x i32], ptr %drystats, i64 0, i64 12
%6 = load <4 x i32>, ptr %arrayidx.12, align 4, !tbaa !5
%7 = add nsw <4 x i32> %6, <i32 1, i32 1, i32 1, i32 1>
store <4 x i32> %7, ptr %arrayidx2.12, align 16, !tbaa !5
%mul = shl nsw i32 %y, 2
%add3 = add nsw i32 %mul, %x
%idxprom4 = sext i32 %add3 to i64
%arrayidx5 = getelementptr inbounds [16 x i32], ptr %drystats, i64 0, i64 %idxprom4
store i32 0, ptr %arrayidx5, align 4, !tbaa !5
%add8 = add nsw i32 %add3, 1
%idxprom9 = sext i32 %add8 to i64
%arrayidx10 = getelementptr inbounds [16 x i32], ptr %drystats, i64 0, i64 %idxprom9
store i32 0, ptr %arrayidx10, align 4, !tbaa !5
%add13 = add nsw i32 %add3, 4
%idxprom14 = sext i32 %add13 to i64
%arrayidx15 = getelementptr inbounds [16 x i32], ptr %drystats, i64 0, i64 %idxprom14
store i32 0, ptr %arrayidx15, align 4, !tbaa !5
%add18 = add nsw i32 %add3, 5
%idxprom19 = sext i32 %add18 to i64
%arrayidx20 = getelementptr inbounds [16 x i32], ptr %drystats, i64 0, i64 %idxprom19
store i32 0, ptr %arrayidx20, align 4, !tbaa !5
%8 = load <16 x i32>, ptr %drystats, align 16
%.fr = freeze <16 x i32> %8
%9 = icmp sgt <16 x i32> %.fr, <i32 6, i32 6, i32 6, i32 6, i32 6, i32 6, i32 6, i32 6, i32 6, i32 6, i32 6, i32 6, i32 6, i32 6, i32 6, i32 6>
%10 = bitcast <16 x i1> %9 to i16
%.not = icmp eq i16 %10, 0
br i1 %.not, label %for.cond21.15, label %cleanup
for.cond21.15: ; preds = %entry
%cmp30 = icmp eq i32 %day, %end
br i1 %cmp30, label %cleanup, label %if.else
if.else: ; preds = %for.cond21.15
%idxprom59 = sext i32 %y to i64
%add61 = add nsw i32 %day, 1
%idxprom62 = sext i32 %add61 to i64
%idxprom82 = sext i32 %x to i64
%arrayidx44 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 %idxprom82, i64 %idxprom59, i64 %idxprom62
%add51 = add nsw i32 %x, -2
%or.cond = icmp ult i32 %add51, 3
br i1 %or.cond, label %if.then55, label %if.end75
if.then55: ; preds = %if.else
%idxprom57 = zext i32 %add51 to i64
%arrayidx63 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 %idxprom57, i64 %idxprom59, i64 %idxprom62
%11 = load i32, ptr %arrayidx63, align 4, !tbaa !5
%tobool64.not = icmp eq i32 %11, 0
br i1 %tobool64.not, label %if.end75, label %if.then65
if.then65: ; preds = %if.then55
%call69 = call i32 @dfs(i32 noundef %add51, i32 noundef %y, i32 noundef %add61, i32 noundef %end, ptr noundef nonnull %drystats), !range !15
%tobool71.not = icmp eq i32 %call69, -1
br i1 %tobool71.not, label %if.end75, label %cleanup
if.end75: ; preds = %if.then55, %if.then65, %if.else
%add76 = add nsw i32 %y, -2
%or.cond155 = icmp ult i32 %add76, 3
br i1 %or.cond155, label %if.then81, label %if.else.1
if.then81: ; preds = %if.end75
%idxprom85 = zext i32 %add76 to i64
%arrayidx89 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 %idxprom82, i64 %idxprom85, i64 %idxprom62
%12 = load i32, ptr %arrayidx89, align 4, !tbaa !5
%tobool90.not = icmp eq i32 %12, 0
br i1 %tobool90.not, label %if.else.1, label %if.then91
if.then91: ; preds = %if.then81
%call95 = call i32 @dfs(i32 noundef %x, i32 noundef %add76, i32 noundef %add61, i32 noundef %end, ptr noundef nonnull %drystats), !range !15
%tobool97.not = icmp eq i32 %call95, -1
br i1 %tobool97.not, label %if.else.1, label %cleanup
if.else.1: ; preds = %if.end75, %if.then91, %if.then81
%add51.1 = add nsw i32 %x, -1
%or.cond.1 = icmp ult i32 %add51.1, 3
br i1 %or.cond.1, label %if.then55.1, label %if.end75.1
if.then55.1: ; preds = %if.else.1
%idxprom57.1 = zext i32 %add51.1 to i64
%arrayidx63.1 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 %idxprom57.1, i64 %idxprom59, i64 %idxprom62
%13 = load i32, ptr %arrayidx63.1, align 4, !tbaa !5
%tobool64.not.1 = icmp eq i32 %13, 0
br i1 %tobool64.not.1, label %if.end75.1, label %if.then65.1
if.then65.1: ; preds = %if.then55.1
%call69.1 = call i32 @dfs(i32 noundef %add51.1, i32 noundef %y, i32 noundef %add61, i32 noundef %end, ptr noundef nonnull %drystats), !range !15
%tobool71.not.1 = icmp eq i32 %call69.1, -1
br i1 %tobool71.not.1, label %if.end75.1, label %cleanup
if.end75.1: ; preds = %if.then65.1, %if.then55.1, %if.else.1
%add76.1 = add nsw i32 %y, -1
%or.cond155.1 = icmp ult i32 %add76.1, 3
br i1 %or.cond155.1, label %if.then81.1, label %if.then37.2
if.then81.1: ; preds = %if.end75.1
%idxprom85.1 = zext i32 %add76.1 to i64
%arrayidx89.1 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 %idxprom82, i64 %idxprom85.1, i64 %idxprom62
%14 = load i32, ptr %arrayidx89.1, align 4, !tbaa !5
%tobool90.not.1 = icmp eq i32 %14, 0
br i1 %tobool90.not.1, label %if.then37.2, label %if.then91.1
if.then91.1: ; preds = %if.then81.1
%call95.1 = call i32 @dfs(i32 noundef %x, i32 noundef %add76.1, i32 noundef %add61, i32 noundef %end, ptr noundef nonnull %drystats), !range !15
%tobool97.not.1 = icmp eq i32 %call95.1, -1
br i1 %tobool97.not.1, label %if.then37.2, label %cleanup
if.then37.2: ; preds = %if.end75.1, %if.then81.1, %if.then91.1
%15 = load i32, ptr %arrayidx44, align 4, !tbaa !5
%tobool.not.2 = icmp eq i32 %15, 0
br i1 %tobool.not.2, label %if.else.3, label %if.then45.2
if.then45.2: ; preds = %if.then37.2
%call.2 = call i32 @dfs(i32 noundef %x, i32 noundef %y, i32 noundef %add61, i32 noundef %end, ptr noundef nonnull %drystats), !range !15
%tobool47.not.2 = icmp eq i32 %call.2, -1
br i1 %tobool47.not.2, label %if.else.3, label %cleanup
if.else.3: ; preds = %if.then37.2, %if.then45.2
%add51.3 = add nsw i32 %x, 1
%or.cond.3 = icmp ult i32 %add51.3, 3
br i1 %or.cond.3, label %if.then55.3, label %if.end75.3
if.then55.3: ; preds = %if.else.3
%idxprom57.3 = zext i32 %add51.3 to i64
%arrayidx63.3 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 %idxprom57.3, i64 %idxprom59, i64 %idxprom62
%16 = load i32, ptr %arrayidx63.3, align 4, !tbaa !5
%tobool64.not.3 = icmp eq i32 %16, 0
br i1 %tobool64.not.3, label %if.end75.3, label %if.then65.3
if.then65.3: ; preds = %if.then55.3
%call69.3 = call i32 @dfs(i32 noundef %add51.3, i32 noundef %y, i32 noundef %add61, i32 noundef %end, ptr noundef nonnull %drystats), !range !15
%tobool71.not.3 = icmp eq i32 %call69.3, -1
br i1 %tobool71.not.3, label %if.end75.3, label %cleanup
if.end75.3: ; preds = %if.then65.3, %if.then55.3, %if.else.3
%add76.3 = add nsw i32 %y, 1
%or.cond155.3 = icmp ult i32 %add76.3, 3
br i1 %or.cond155.3, label %if.then81.3, label %if.else.4
if.then81.3: ; preds = %if.end75.3
%idxprom85.3 = zext i32 %add76.3 to i64
%arrayidx89.3 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 %idxprom82, i64 %idxprom85.3, i64 %idxprom62
%17 = load i32, ptr %arrayidx89.3, align 4, !tbaa !5
%tobool90.not.3 = icmp eq i32 %17, 0
br i1 %tobool90.not.3, label %if.else.4, label %if.then91.3
if.then91.3: ; preds = %if.then81.3
%call95.3 = call i32 @dfs(i32 noundef %x, i32 noundef %add76.3, i32 noundef %add61, i32 noundef %end, ptr noundef nonnull %drystats), !range !15
%tobool97.not.3 = icmp eq i32 %call95.3, -1
br i1 %tobool97.not.3, label %if.else.4, label %cleanup
if.else.4: ; preds = %if.end75.3, %if.then81.3, %if.then91.3
%add51.4 = add nsw i32 %x, 2
%or.cond.4 = icmp ult i32 %add51.4, 3
br i1 %or.cond.4, label %if.then55.4, label %if.end75.4
if.then55.4: ; preds = %if.else.4
%idxprom57.4 = zext i32 %add51.4 to i64
%arrayidx63.4 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 %idxprom57.4, i64 %idxprom59, i64 %idxprom62
%18 = load i32, ptr %arrayidx63.4, align 4, !tbaa !5
%tobool64.not.4 = icmp eq i32 %18, 0
br i1 %tobool64.not.4, label %if.end75.4, label %if.then65.4
if.then65.4: ; preds = %if.then55.4
%call69.4 = call i32 @dfs(i32 noundef %add51.4, i32 noundef %y, i32 noundef %add61, i32 noundef %end, ptr noundef nonnull %drystats), !range !15
%tobool71.not.4 = icmp eq i32 %call69.4, -1
br i1 %tobool71.not.4, label %if.end75.4, label %cleanup
if.end75.4: ; preds = %if.then65.4, %if.then55.4, %if.else.4
%add76.4 = add nsw i32 %y, 2
%or.cond155.4 = icmp ult i32 %add76.4, 3
br i1 %or.cond155.4, label %if.then81.4, label %for.inc103.4
if.then81.4: ; preds = %if.end75.4
%idxprom85.4 = zext i32 %add76.4 to i64
%arrayidx89.4 = getelementptr inbounds [3 x [3 x [365 x i32]]], ptr @map, i64 0, i64 %idxprom82, i64 %idxprom85.4, i64 %idxprom62
%19 = load i32, ptr %arrayidx89.4, align 4, !tbaa !5
%tobool90.not.4 = icmp eq i32 %19, 0
br i1 %tobool90.not.4, label %for.inc103.4, label %if.then91.4
if.then91.4: ; preds = %if.then81.4
%call95.4 = call i32 @dfs(i32 noundef %x, i32 noundef %add76.4, i32 noundef %add61, i32 noundef %end, ptr noundef nonnull %drystats), !range !15
%tobool97.not.4 = icmp eq i32 %call95.4, -1
br i1 %tobool97.not.4, label %for.inc103.4, label %cleanup
for.inc103.4: ; preds = %if.then91.4, %if.then81.4, %if.end75.4
br label %cleanup
cleanup: ; preds = %entry, %if.then91, %if.then65, %if.then65.1, %if.then91.1, %if.then45.2, %if.then65.3, %if.then91.3, %if.then65.4, %if.then91.4, %for.inc103.4, %for.cond21.15
%retval.0 = phi i32 [ 0, %for.cond21.15 ], [ 0, %if.then65 ], [ 0, %if.then91 ], [ 0, %if.then65.1 ], [ 0, %if.then91.1 ], [ 0, %if.then45.2 ], [ 0, %if.then65.3 ], [ 0, %if.then91.3 ], [ 0, %if.then65.4 ], [ 0, %if.then91.4 ], [ -1, %for.inc103.4 ], [ -1, %entry ]
call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %drystats) #6
ret i32 %retval.0
}
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind uwtable
define dso_local void @print_map(i32 noundef %x, i32 noundef %y, i32 noundef %day, ptr nocapture noundef readonly %dryness) local_unnamed_addr #0 {
entry:
%map = alloca [16 x i8], align 16
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %map) #6
%arrayidx2.1 = getelementptr inbounds [16 x i8], ptr %map, i64 0, i64 1
%arrayidx2.2 = getelementptr inbounds [16 x i8], ptr %map, i64 0, i64 2
%arrayidx2.3 = getelementptr inbounds [16 x i8], ptr %map, i64 0, i64 3
%arrayidx2.4 = getelementptr inbounds [16 x i8], ptr %map, i64 0, i64 4
%arrayidx2.5 = getelementptr inbounds [16 x i8], ptr %map, i64 0, i64 5
%arrayidx2.6 = getelementptr inbounds [16 x i8], ptr %map, i64 0, i64 6
%arrayidx2.7 = getelementptr inbounds [16 x i8], ptr %map, i64 0, i64 7
%arrayidx2.8 = getelementptr inbounds [16 x i8], ptr %map, i64 0, i64 8
%arrayidx2.9 = getelementptr inbounds [16 x i8], ptr %map, i64 0, i64 9
%arrayidx2.10 = getelementptr inbounds [16 x i8], ptr %map, i64 0, i64 10
%arrayidx2.11 = getelementptr inbounds [16 x i8], ptr %map, i64 0, i64 11
%arrayidx2.12 = getelementptr inbounds [16 x i8], ptr %map, i64 0, i64 12
%arrayidx2.13 = getelementptr inbounds [16 x i8], ptr %map, i64 0, i64 13
%arrayidx2.14 = getelementptr inbounds [16 x i8], ptr %map, i64 0, i64 14
%arrayidx2.15 = getelementptr inbounds [16 x i8], ptr %map, i64 0, i64 15
%0 = load <16 x i32>, ptr %dryness, align 4, !tbaa !5
%1 = trunc <16 x i32> %0 to <16 x i8>
%2 = add <16 x i8> %1, <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>
store <16 x i8> %2, ptr %map, align 16, !tbaa !18
%mul = shl nsw i32 %y, 2
%add3 = add nsw i32 %mul, %x
%idxprom4 = sext i32 %add3 to i64
%arrayidx5 = getelementptr inbounds [16 x i8], ptr %map, i64 0, i64 %idxprom4
store i8 88, ptr %arrayidx5, align 1, !tbaa !18
%add8 = add nsw i32 %add3, 1
%idxprom9 = sext i32 %add8 to i64
%arrayidx10 = getelementptr inbounds [16 x i8], ptr %map, i64 0, i64 %idxprom9
store i8 88, ptr %arrayidx10, align 1, !tbaa !18
%add13 = add nsw i32 %add3, 4
%idxprom14 = sext i32 %add13 to i64
%arrayidx15 = getelementptr inbounds [16 x i8], ptr %map, i64 0, i64 %idxprom14
store i8 88, ptr %arrayidx15, align 1, !tbaa !18
%add18 = add nsw i32 %add3, 5
%idxprom19 = sext i32 %add18 to i64
%arrayidx20 = getelementptr inbounds [16 x i8], ptr %map, i64 0, i64 %idxprom19
store i8 88, ptr %arrayidx20, align 1, !tbaa !18
%call = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %day)
%3 = load i8, ptr %map, align 16, !tbaa !18
%conv33 = sext i8 %3 to i32
%putchar59 = tail call i32 @putchar(i32 %conv33)
%4 = load i8, ptr %arrayidx2.1, align 1, !tbaa !18
%conv33.1 = sext i8 %4 to i32
%putchar59.1 = tail call i32 @putchar(i32 %conv33.1)
%5 = load i8, ptr %arrayidx2.2, align 2, !tbaa !18
%conv33.2 = sext i8 %5 to i32
%putchar59.2 = tail call i32 @putchar(i32 %conv33.2)
%6 = load i8, ptr %arrayidx2.3, align 1, !tbaa !18
%conv33.3 = sext i8 %6 to i32
%putchar59.3 = tail call i32 @putchar(i32 %conv33.3)
%putchar58 = tail call i32 @putchar(i32 10)
%7 = load i8, ptr %arrayidx2.4, align 4, !tbaa !18
%conv33.169 = sext i8 %7 to i32
%putchar59.170 = tail call i32 @putchar(i32 %conv33.169)
%8 = load i8, ptr %arrayidx2.5, align 1, !tbaa !18
%conv33.1.1 = sext i8 %8 to i32
%putchar59.1.1 = tail call i32 @putchar(i32 %conv33.1.1)
%9 = load i8, ptr %arrayidx2.6, align 2, !tbaa !18
%conv33.2.1 = sext i8 %9 to i32
%putchar59.2.1 = tail call i32 @putchar(i32 %conv33.2.1)
%10 = load i8, ptr %arrayidx2.7, align 1, !tbaa !18
%conv33.3.1 = sext i8 %10 to i32
%putchar59.3.1 = tail call i32 @putchar(i32 %conv33.3.1)
%putchar58.1 = tail call i32 @putchar(i32 10)
%11 = load i8, ptr %arrayidx2.8, align 8, !tbaa !18
%conv33.272 = sext i8 %11 to i32
%putchar59.273 = tail call i32 @putchar(i32 %conv33.272)
%12 = load i8, ptr %arrayidx2.9, align 1, !tbaa !18
%conv33.1.2 = sext i8 %12 to i32
%putchar59.1.2 = tail call i32 @putchar(i32 %conv33.1.2)
%13 = load i8, ptr %arrayidx2.10, align 2, !tbaa !18
%conv33.2.2 = sext i8 %13 to i32
%putchar59.2.2 = tail call i32 @putchar(i32 %conv33.2.2)
%14 = load i8, ptr %arrayidx2.11, align 1, !tbaa !18
%conv33.3.2 = sext i8 %14 to i32
%putchar59.3.2 = tail call i32 @putchar(i32 %conv33.3.2)
%putchar58.2 = tail call i32 @putchar(i32 10)
%15 = load i8, ptr %arrayidx2.12, align 4, !tbaa !18
%conv33.375 = sext i8 %15 to i32
%putchar59.376 = tail call i32 @putchar(i32 %conv33.375)
%16 = load i8, ptr %arrayidx2.13, align 1, !tbaa !18
%conv33.1.3 = sext i8 %16 to i32
%putchar59.1.3 = tail call i32 @putchar(i32 %conv33.1.3)
%17 = load i8, ptr %arrayidx2.14, align 2, !tbaa !18
%conv33.2.3 = sext i8 %17 to i32
%putchar59.2.3 = tail call i32 @putchar(i32 %conv33.2.3)
%18 = load i8, ptr %arrayidx2.15, align 1, !tbaa !18
%conv33.3.3 = sext i8 %18 to i32
%putchar59.3.3 = tail call i32 @putchar(i32 %conv33.3.3)
%putchar58.3 = tail call i32 @putchar(i32 10)
%putchar = tail call i32 @putchar(i32 10)
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %map) #6
ret void
}
; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #4
; Function Attrs: nofree nounwind
declare noundef i32 @putchar(i32 noundef) local_unnamed_addr #4
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 = { nofree nosync nounwind memory(read, inaccessiblemem: none) uwtable "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 #4 = { nofree nounwind }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10, !12, !11}
!15 = !{i32 -1, i32 1}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = !{!7, !7, i64 0}
|
#include <stdio.h>
int main( void ) {
int i, n, sum, elmNum[ 9 ] = { 5, 3, 3, 3, 3, 3, 4, 3, 4 };
char ch[ 9 ][ 6 ] = { ".,!? ", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz" }, key, tmp;
scanf( "%d%*c", &n );
for ( i = 0; i < n; i++ ) {
while ( 1 ) {
scanf( "%c", &key );
if ( key == '\n' )
break;
else if ( key == '0' )
continue;
for ( sum = 0; scanf( "%c", &tmp ), tmp != '0'; sum++ ) ;
putchar( ch[ key - '1' ][ sum % elmNum[ key - '1' ] ] );
}
putchar( '\n' );
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111040/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111040/source.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.elmNum = private unnamed_addr constant [9 x i32] [i32 5, i32 3, i32 3, i32 3, i32 3, i32 3, i32 4, i32 3, i32 4], align 16
@__const.main.ch = private unnamed_addr constant [9 x [6 x i8]] [[6 x i8] c".,!? \00", [6 x i8] c"abc\00\00\00", [6 x i8] c"def\00\00\00", [6 x i8] c"ghi\00\00\00", [6 x i8] c"jkl\00\00\00", [6 x i8] c"mno\00\00\00", [6 x i8] c"pqrs\00\00", [6 x i8] c"tuv\00\00\00", [6 x i8] c"wxyz\00\00"], align 16
@.str = private unnamed_addr constant [6 x i8] c"%d%*c\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@stdout = external local_unnamed_addr global ptr, align 8
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n = alloca i32, align 4
%key = alloca i8, align 1
%tmp = alloca i8, align 1
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #3
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %key) #3
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %tmp) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n)
%0 = load i32, ptr %n, align 4, !tbaa !5
%cmp31 = icmp sgt i32 %0, 0
br i1 %cmp31, label %while.cond.preheader, label %for.end27
while.cond.preheader: ; preds = %entry, %while.end
%i.032 = phi i32 [ %inc26, %while.end ], [ 0, %entry ]
br label %while.cond
while.cond: ; preds = %while.cond.backedge, %while.cond.preheader
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %key)
%1 = load i8, ptr %key, align 1, !tbaa !9
switch i8 %1, label %for.cond9 [
i8 10, label %while.end
i8 48, label %while.cond.backedge
]
for.cond9: ; preds = %while.cond, %for.cond9
%sum.0 = phi i32 [ %inc, %for.cond9 ], [ 0, %while.cond ]
%call10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %tmp)
%2 = load i8, ptr %tmp, align 1, !tbaa !9
%cmp12.not = icmp eq i8 %2, 48
%inc = add nuw nsw i32 %sum.0, 1
br i1 %cmp12.not, label %for.end, label %for.cond9, !llvm.loop !10
for.end: ; preds = %for.cond9
%3 = load i8, ptr %key, align 1, !tbaa !9
%conv15 = sext i8 %3 to i64
%sub = add nsw i64 %conv15, -49
%arrayidx19 = getelementptr inbounds [9 x i32], ptr @__const.main.elmNum, i64 0, i64 %sub
%4 = load i32, ptr %arrayidx19, align 4, !tbaa !5
%rem = srem i32 %sum.0, %4
%idxprom20 = zext i32 %rem to i64
%arrayidx21 = getelementptr inbounds [9 x [6 x i8]], ptr @__const.main.ch, i64 0, i64 %sub, i64 %idxprom20
%5 = load i8, ptr %arrayidx21, align 1, !tbaa !9
%conv22 = sext i8 %5 to i32
%6 = load ptr, ptr @stdout, align 8, !tbaa !12
%call.i = call i32 @putc(i32 noundef %conv22, ptr noundef %6)
br label %while.cond.backedge
while.cond.backedge: ; preds = %for.end, %while.cond
br label %while.cond
while.end: ; preds = %while.cond
%7 = load ptr, ptr @stdout, align 8, !tbaa !12
%call.i30 = call i32 @putc(i32 noundef 10, ptr noundef %7)
%inc26 = add nuw nsw i32 %i.032, 1
%8 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp slt i32 %inc26, %8
br i1 %cmp, label %while.cond.preheader, label %for.end27, !llvm.loop !14
for.end27: ; preds = %while.end, %entry
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %tmp) #3
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %key) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @putc(i32 noundef, ptr nocapture noundef) local_unnamed_addr #2
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = distinct !{!14, !11}
|
#include<stdio.h>
int main(void)
{
int a,b,c,k;
scanf("%d%d%d%d",&a,&b,&c,&k);
int max;
if((a>b)&&(a>c))
max = a;
if((b>a)&&(b>c))
max = b;
if((c>a)&&(c>b))
max = c;
int i;
for(i=0;i<k;i++){
if((a>b)&&(a>c))
a *= 2;
if((b>a)&&(b>c))
b *= 2;
else
c *= 2;
}
printf("%d\n",a+b+c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111084/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111084/source.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 [9 x i8] c"%d%d%d%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca i32, align 4
%b = alloca i32, align 4
%c = alloca i32, align 4
%k = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %c) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %k) #3
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b, ptr noundef nonnull %c, ptr noundef nonnull %k)
%0 = load i32, ptr %k, align 4, !tbaa !5
%a.promoted = load i32, ptr %a, align 4, !tbaa !5
%b.promoted = load i32, ptr %b, align 4, !tbaa !5
%c.promoted = load i32, ptr %c, align 4
%cmp1238 = icmp sgt i32 %0, 0
br i1 %cmp1238, label %for.body, label %for.end
for.body: ; preds = %entry, %for.inc
%i.040 = phi i32 [ %inc, %for.inc ], [ 0, %entry ]
%1 = phi i32 [ %3, %for.inc ], [ %a.promoted, %entry ]
%mul223739 = phi i32 [ %mul2236, %for.inc ], [ %b.promoted, %entry ]
%2 = phi i32 [ %4, %for.inc ], [ %c.promoted, %entry ]
%cmp13 = icmp sgt i32 %1, %mul223739
%cmp15 = icmp sgt i32 %1, %2
%or.cond34 = select i1 %cmp13, i1 %cmp15, i1 false
br i1 %or.cond34, label %if.then16, label %if.end17
if.then16: ; preds = %for.body
%mul = shl nsw i32 %1, 1
store i32 %mul, ptr %a, align 4, !tbaa !5
br label %if.end17
if.end17: ; preds = %if.then16, %for.body
%3 = phi i32 [ %mul, %if.then16 ], [ %1, %for.body ]
%cmp18 = icmp sgt i32 %mul223739, %3
%cmp20 = icmp sgt i32 %mul223739, %2
%or.cond35 = select i1 %cmp18, i1 %cmp20, i1 false
br i1 %or.cond35, label %if.then21, label %if.else
if.then21: ; preds = %if.end17
%mul22 = shl nsw i32 %mul223739, 1
store i32 %mul22, ptr %b, align 4, !tbaa !5
br label %for.inc
if.else: ; preds = %if.end17
%mul23 = shl nsw i32 %2, 1
store i32 %mul23, ptr %c, align 4, !tbaa !5
br label %for.inc
for.inc: ; preds = %if.then21, %if.else
%4 = phi i32 [ %2, %if.then21 ], [ %mul23, %if.else ]
%mul2236 = phi i32 [ %mul22, %if.then21 ], [ %mul223739, %if.else ]
%inc = add nuw nsw i32 %i.040, 1
%exitcond.not = icmp eq i32 %inc, %0
br i1 %exitcond.not, label %for.end, label %for.body, !llvm.loop !9
for.end: ; preds = %for.inc, %entry
%5 = phi i32 [ %c.promoted, %entry ], [ %4, %for.inc ]
%6 = phi i32 [ %b.promoted, %entry ], [ %mul2236, %for.inc ]
%7 = phi i32 [ %a.promoted, %entry ], [ %3, %for.inc ]
%add = add nsw i32 %6, %7
%add25 = add nsw i32 %add, %5
%call26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %add25)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %k) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %c) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
|
#include<stdio.h>
void sort(int num[]){
int i,j,tmp;
for(i=0;i<3;i++){
for(j=i+1;j<3;j++){
if(num[i]<num[j]){
tmp=num[i];
num[i]=num[j];
num[j]=tmp;
}
}
}
}
int main(void){
int num[3],i,tmp,l,sum;
scanf("%d %d %d",&num[0],&num[1],&num[2]);
scanf("%d",&l);
for(i=0;i<l;i++){
sort(&num);
num[0]*=2;
}
sum=num[0]+num[1]+num[2];
printf("%d",sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111134/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111134/source.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 [9 x i8] c"%d %d %d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable
define dso_local void @sort(ptr nocapture noundef %num) local_unnamed_addr #0 {
for.body3.lr.ph:
%0 = load i32, ptr %num, align 4, !tbaa !5
%arrayidx5 = getelementptr inbounds i32, ptr %num, i64 1
%1 = load i32, ptr %arrayidx5, align 4, !tbaa !5
%cmp6 = icmp slt i32 %0, %1
br i1 %cmp6, label %if.then, label %for.inc
for.body3.lr.ph.1: ; preds = %if.then.146, %for.inc
%arrayidx.1 = getelementptr inbounds i32, ptr %num, i64 1
%2 = load i32, ptr %arrayidx.1, align 4, !tbaa !5
%arrayidx5.1 = getelementptr inbounds i32, ptr %num, i64 2
%3 = load i32, ptr %arrayidx5.1, align 4, !tbaa !5
%cmp6.1 = icmp slt i32 %2, %3
br i1 %cmp6.1, label %if.then.1, label %for.cond.loopexit.2
if.then.1: ; preds = %for.body3.lr.ph.1
store i32 %3, ptr %arrayidx.1, align 4, !tbaa !5
store i32 %2, ptr %arrayidx5.1, align 4, !tbaa !5
br label %for.cond.loopexit.2
for.cond.loopexit.2: ; preds = %if.then.1, %for.body3.lr.ph.1
ret void
if.then: ; preds = %for.body3.lr.ph
store i32 %1, ptr %num, align 4, !tbaa !5
store i32 %0, ptr %arrayidx5, align 4, !tbaa !5
br label %for.inc
for.inc: ; preds = %for.body3.lr.ph, %if.then
%4 = phi i32 [ %0, %for.body3.lr.ph ], [ %1, %if.then ]
%arrayidx5.143 = getelementptr inbounds i32, ptr %num, i64 2
%5 = load i32, ptr %arrayidx5.143, align 4, !tbaa !5
%cmp6.144 = icmp slt i32 %4, %5
br i1 %cmp6.144, label %if.then.146, label %for.body3.lr.ph.1
if.then.146: ; preds = %for.inc
store i32 %5, ptr %num, align 4, !tbaa !5
store i32 %4, ptr %arrayidx5.143, align 4, !tbaa !5
br label %for.body3.lr.ph.1
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #2 {
entry:
%num = alloca [3 x i32], align 4
%l = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %num) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %l) #4
%arrayidx1 = getelementptr inbounds [3 x i32], ptr %num, i64 0, i64 1
%arrayidx2 = getelementptr inbounds [3 x i32], ptr %num, i64 0, i64 2
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %num, ptr noundef nonnull %arrayidx1, ptr noundef nonnull %arrayidx2)
%call3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %l)
%0 = load i32, ptr %l, align 4, !tbaa !5
%num.promoted = load i32, ptr %num, align 4, !tbaa !5
%arrayidx1.promoted = load i32, ptr %arrayidx1, align 4, !tbaa !5
%arrayidx2.promoted = load i32, ptr %arrayidx2, align 4, !tbaa !5
%cmp11 = icmp sgt i32 %0, 0
br i1 %cmp11, label %for.body, label %for.end
for.body: ; preds = %entry, %sort.exit
%i.012 = phi i32 [ %inc, %sort.exit ], [ 0, %entry ]
%1 = phi i32 [ %mul, %sort.exit ], [ %num.promoted, %entry ]
%2 = phi i32 [ %9, %sort.exit ], [ %arrayidx1.promoted, %entry ]
%3 = phi i32 [ %8, %sort.exit ], [ %arrayidx2.promoted, %entry ]
%cmp6.i = icmp slt i32 %1, %2
br i1 %cmp6.i, label %if.then.i, label %for.inc.i
for.body3.lr.ph.1.i: ; preds = %if.then.146.i, %for.inc.i
%4 = phi i32 [ %7, %if.then.146.i ], [ %3, %for.inc.i ]
%5 = phi i32 [ %3, %if.then.146.i ], [ %7, %for.inc.i ]
%cmp6.1.i = icmp slt i32 %6, %4
br i1 %cmp6.1.i, label %if.then.1.i, label %sort.exit
if.then.1.i: ; preds = %for.body3.lr.ph.1.i
store i32 %4, ptr %arrayidx1, align 4, !tbaa !5
store i32 %6, ptr %arrayidx2, align 4, !tbaa !5
br label %sort.exit
if.then.i: ; preds = %for.body
store i32 %1, ptr %arrayidx1, align 4, !tbaa !5
br label %for.inc.i
for.inc.i: ; preds = %if.then.i, %for.body
%6 = phi i32 [ %2, %for.body ], [ %1, %if.then.i ]
%7 = phi i32 [ %1, %for.body ], [ %2, %if.then.i ]
%cmp6.144.i = icmp slt i32 %7, %3
br i1 %cmp6.144.i, label %if.then.146.i, label %for.body3.lr.ph.1.i
if.then.146.i: ; preds = %for.inc.i
store i32 %7, ptr %arrayidx2, align 4, !tbaa !5
br label %for.body3.lr.ph.1.i
sort.exit: ; preds = %for.body3.lr.ph.1.i, %if.then.1.i
%8 = phi i32 [ %4, %for.body3.lr.ph.1.i ], [ %6, %if.then.1.i ]
%9 = phi i32 [ %6, %for.body3.lr.ph.1.i ], [ %4, %if.then.1.i ]
%mul = shl nsw i32 %5, 1
%inc = add nuw nsw i32 %i.012, 1
%exitcond.not = icmp eq i32 %inc, %0
br i1 %exitcond.not, label %for.cond.for.end_crit_edge, label %for.body, !llvm.loop !9
for.cond.for.end_crit_edge: ; preds = %sort.exit
store i32 %mul, ptr %num, align 4, !tbaa !5
br label %for.end
for.end: ; preds = %for.cond.for.end_crit_edge, %entry
%10 = phi i32 [ %8, %for.cond.for.end_crit_edge ], [ %arrayidx2.promoted, %entry ]
%11 = phi i32 [ %9, %for.cond.for.end_crit_edge ], [ %arrayidx1.promoted, %entry ]
%12 = phi i32 [ %mul, %for.cond.for.end_crit_edge ], [ %num.promoted, %entry ]
%add = add nsw i32 %11, %12
%add8 = add nsw i32 %add, %10
%call9 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %add8)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %l) #4
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %num) #4
ret i32 0
}
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind uwtable "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 #3 = { nofree nounwind "no-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 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
|
#include <stdio.h>
#include <math.h>
int main(){
int a, b, c, k;
scanf("%d%d%d", &a, &b, &c);
scanf("%d", &k);
int max, sum;
sum = a + b + c;
max = a;
max = b>max ? b:max;
max = c>max ? c:max;
sum -= max;
for (int i = 0; i < k; ++i){
max *= 2;
}
printf("%d", max+sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111178/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111178/source.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"%d%d%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%a = alloca i32, align 4
%b = alloca i32, align 4
%c = alloca i32, align 4
%k = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %c) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %k) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b, ptr noundef nonnull %c)
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %k)
%0 = load i32, ptr %a, align 4, !tbaa !5
%1 = load i32, ptr %b, align 4
%2 = load i32, ptr %c, align 4
%cond = call i32 @llvm.smax.i32(i32 %1, i32 %0)
%cond7 = call i32 @llvm.smax.i32(i32 %2, i32 %cond)
%3 = load i32, ptr %k, align 4, !tbaa !5
%cmp819 = icmp sgt i32 %3, 0
br i1 %cmp819, label %for.body.preheader, label %for.cond.cleanup
for.body.preheader: ; preds = %entry
%xtraiter = and i32 %3, 7
%4 = icmp ult i32 %3, 8
br i1 %4, label %for.cond.cleanup.loopexit.unr-lcssa, label %for.body.preheader.new
for.body.preheader.new: ; preds = %for.body.preheader
%unroll_iter = and i32 %3, -8
br label %for.body
for.cond.cleanup.loopexit.unr-lcssa: ; preds = %for.body, %for.body.preheader
%mul.lcssa.ph = phi i32 [ undef, %for.body.preheader ], [ %mul, %for.body ]
%max.020.unr = phi i32 [ %cond7, %for.body.preheader ], [ %mul, %for.body ]
%lcmp.mod.not = icmp eq i32 %xtraiter, 0
br i1 %lcmp.mod.not, label %for.cond.cleanup, label %for.body.epil
for.body.epil: ; preds = %for.cond.cleanup.loopexit.unr-lcssa, %for.body.epil
%max.020.epil = phi i32 [ %mul.epil, %for.body.epil ], [ %max.020.unr, %for.cond.cleanup.loopexit.unr-lcssa ]
%epil.iter = phi i32 [ %epil.iter.next, %for.body.epil ], [ 0, %for.cond.cleanup.loopexit.unr-lcssa ]
%mul.epil = shl nsw i32 %max.020.epil, 1
%epil.iter.next = add i32 %epil.iter, 1
%epil.iter.cmp.not = icmp eq i32 %epil.iter.next, %xtraiter
br i1 %epil.iter.cmp.not, label %for.cond.cleanup, label %for.body.epil, !llvm.loop !9
for.cond.cleanup: ; preds = %for.cond.cleanup.loopexit.unr-lcssa, %for.body.epil, %entry
%max.0.lcssa = phi i32 [ %cond7, %entry ], [ %mul.lcssa.ph, %for.cond.cleanup.loopexit.unr-lcssa ], [ %mul.epil, %for.body.epil ]
%add = add nsw i32 %1, %0
%add2 = add nsw i32 %add, %2
%sub = sub i32 %add2, %cond7
%add9 = add nsw i32 %sub, %max.0.lcssa
%call10 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %add9)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %k) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %c) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #4
ret i32 0
for.body: ; preds = %for.body, %for.body.preheader.new
%max.020 = phi i32 [ %cond7, %for.body.preheader.new ], [ %mul, %for.body ]
%niter = phi i32 [ 0, %for.body.preheader.new ], [ %niter.next.7, %for.body ]
%mul = shl i32 %max.020, 8
%niter.next.7 = add i32 %niter, 8
%niter.ncmp.7 = icmp eq i32 %niter.next.7, %unroll_iter
br i1 %niter.ncmp.7, label %for.cond.cleanup.loopexit.unr-lcssa, label %for.body, !llvm.loop !11
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #3
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.unroll.disable"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
|
#include <stdio.h>
int exponential(int b,int p){
if(p == 1) return b;
return b * exponential(b,p - 1);
}
int main(){
int a,b,c,K;
scanf("%d%d%d%d",&a,&b,&c,&K);
int max,ans;
max = a;
if(b > max) max = b;
if(c > max) max = c;
if(max == a) ans = a * exponential(2,K) + b + c;
if(max == b) ans = a + b * exponential(2,K) + c;
if(max == c) ans = a + b + c * exponential(2,K);
printf("%d",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111220/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111220/source.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 [9 x i8] c"%d%d%d%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable
define dso_local i32 @exponential(i32 noundef %b, i32 noundef %p) local_unnamed_addr #0 {
entry:
%cmp4 = icmp eq i32 %p, 1
br i1 %cmp4, label %return, label %if.end.preheader
if.end.preheader: ; preds = %entry
%0 = add i32 %p, -1
%min.iters.check = icmp ult i32 %0, 8
br i1 %min.iters.check, label %if.end.preheader8, label %vector.ph
vector.ph: ; preds = %if.end.preheader
%n.vec = and i32 %0, -8
%ind.end = sub i32 %p, %n.vec
%broadcast.splatinsert = insertelement <4 x i32> poison, i32 %b, i64 0
%broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
br label %vector.body
vector.body: ; preds = %vector.body, %vector.ph
%index = phi i32 [ 0, %vector.ph ], [ %index.next, %vector.body ]
%vec.phi = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %vector.ph ], [ %1, %vector.body ]
%vec.phi7 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %vector.ph ], [ %2, %vector.body ]
%1 = mul <4 x i32> %vec.phi, %broadcast.splat
%2 = mul <4 x i32> %vec.phi7, %broadcast.splat
%index.next = add nuw i32 %index, 8
%3 = icmp eq i32 %index.next, %n.vec
br i1 %3, label %middle.block, label %vector.body, !llvm.loop !5
middle.block: ; preds = %vector.body
%bin.rdx = mul <4 x i32> %2, %1
%4 = tail call i32 @llvm.vector.reduce.mul.v4i32(<4 x i32> %bin.rdx)
%cmp.n = icmp eq i32 %0, %n.vec
br i1 %cmp.n, label %return, label %if.end.preheader8
if.end.preheader8: ; preds = %if.end.preheader, %middle.block
%p.tr6.ph = phi i32 [ %p, %if.end.preheader ], [ %ind.end, %middle.block ]
%accumulator.tr5.ph = phi i32 [ 1, %if.end.preheader ], [ %4, %middle.block ]
br label %if.end
if.end: ; preds = %if.end.preheader8, %if.end
%p.tr6 = phi i32 [ %sub, %if.end ], [ %p.tr6.ph, %if.end.preheader8 ]
%accumulator.tr5 = phi i32 [ %mul, %if.end ], [ %accumulator.tr5.ph, %if.end.preheader8 ]
%sub = add nsw i32 %p.tr6, -1
%mul = mul nsw i32 %accumulator.tr5, %b
%cmp = icmp eq i32 %sub, 1
br i1 %cmp, label %return, label %if.end, !llvm.loop !8
return: ; preds = %if.end, %middle.block, %entry
%accumulator.tr.lcssa = phi i32 [ 1, %entry ], [ %4, %middle.block ], [ %mul, %if.end ]
%accumulator.ret.tr = mul nsw i32 %accumulator.tr.lcssa, %b
ret i32 %accumulator.ret.tr
}
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #1 {
entry:
%a = alloca i32, align 4
%b = alloca i32, align 4
%c = alloca i32, align 4
%K = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %c) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %K) #5
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b, ptr noundef nonnull %c, ptr noundef nonnull %K)
%0 = load i32, ptr %a, align 4, !tbaa !9
%1 = load i32, ptr %b, align 4, !tbaa !9
%spec.select = call i32 @llvm.smax.i32(i32 %1, i32 %0)
%2 = load i32, ptr %c, align 4, !tbaa !9
%max.1 = call i32 @llvm.smax.i32(i32 %2, i32 %spec.select)
%cmp4 = icmp eq i32 %max.1, %0
br i1 %cmp4, label %if.then5, label %if.end8
if.then5: ; preds = %entry
%3 = load i32, ptr %K, align 4, !tbaa !9
%cmp4.i = icmp eq i32 %3, 1
br i1 %cmp4.i, label %exponential.exit, label %if.end.i.preheader
if.end.i.preheader: ; preds = %if.then5
%4 = add i32 %3, -1
%5 = add i32 %3, -2
%xtraiter = and i32 %4, 7
%6 = icmp ult i32 %5, 7
br i1 %6, label %exponential.exit.loopexit.unr-lcssa, label %if.end.i.preheader.new
if.end.i.preheader.new: ; preds = %if.end.i.preheader
%unroll_iter = and i32 %4, -8
br label %if.end.i
if.end.i: ; preds = %if.end.i, %if.end.i.preheader.new
%accumulator.tr5.i = phi i32 [ 1, %if.end.i.preheader.new ], [ %mul.i, %if.end.i ]
%niter = phi i32 [ 0, %if.end.i.preheader.new ], [ %niter.next.7, %if.end.i ]
%mul.i = shl i32 %accumulator.tr5.i, 8
%niter.next.7 = add i32 %niter, 8
%niter.ncmp.7 = icmp eq i32 %niter.next.7, %unroll_iter
br i1 %niter.ncmp.7, label %exponential.exit.loopexit.unr-lcssa, label %if.end.i
exponential.exit.loopexit.unr-lcssa: ; preds = %if.end.i, %if.end.i.preheader
%mul.i.lcssa.ph = phi i32 [ undef, %if.end.i.preheader ], [ %mul.i, %if.end.i ]
%accumulator.tr5.i.unr = phi i32 [ 1, %if.end.i.preheader ], [ %mul.i, %if.end.i ]
%lcmp.mod.not = icmp eq i32 %xtraiter, 0
br i1 %lcmp.mod.not, label %exponential.exit, label %if.end.i.epil
if.end.i.epil: ; preds = %exponential.exit.loopexit.unr-lcssa, %if.end.i.epil
%accumulator.tr5.i.epil = phi i32 [ %mul.i.epil, %if.end.i.epil ], [ %accumulator.tr5.i.unr, %exponential.exit.loopexit.unr-lcssa ]
%epil.iter = phi i32 [ %epil.iter.next, %if.end.i.epil ], [ 0, %exponential.exit.loopexit.unr-lcssa ]
%mul.i.epil = shl nsw i32 %accumulator.tr5.i.epil, 1
%epil.iter.next = add i32 %epil.iter, 1
%epil.iter.cmp.not = icmp eq i32 %epil.iter.next, %xtraiter
br i1 %epil.iter.cmp.not, label %exponential.exit, label %if.end.i.epil, !llvm.loop !13
exponential.exit: ; preds = %exponential.exit.loopexit.unr-lcssa, %if.end.i.epil, %if.then5
%accumulator.tr.lcssa.i = phi i32 [ 1, %if.then5 ], [ %mul.i.lcssa.ph, %exponential.exit.loopexit.unr-lcssa ], [ %mul.i.epil, %if.end.i.epil ]
%accumulator.ret.tr.i = shl i32 %0, 1
%mul = mul i32 %accumulator.ret.tr.i, %accumulator.tr.lcssa.i
%add = add i32 %2, %1
%add7 = add i32 %add, %mul
br label %if.end8
if.end8: ; preds = %exponential.exit, %entry
%ans.0 = phi i32 [ %add7, %exponential.exit ], [ undef, %entry ]
%cmp9 = icmp eq i32 %max.1, %1
br i1 %cmp9, label %if.then10, label %if.end15
if.then10: ; preds = %if.end8
%7 = load i32, ptr %K, align 4, !tbaa !9
%cmp4.i33 = icmp eq i32 %7, 1
br i1 %cmp4.i33, label %exponential.exit42, label %if.end.i34.preheader
if.end.i34.preheader: ; preds = %if.then10
%8 = add i32 %7, -1
%9 = add i32 %7, -2
%xtraiter54 = and i32 %8, 7
%10 = icmp ult i32 %9, 7
br i1 %10, label %exponential.exit42.loopexit.unr-lcssa, label %if.end.i34.preheader.new
if.end.i34.preheader.new: ; preds = %if.end.i34.preheader
%unroll_iter58 = and i32 %8, -8
br label %if.end.i34
if.end.i34: ; preds = %if.end.i34, %if.end.i34.preheader.new
%accumulator.tr5.i36 = phi i32 [ 1, %if.end.i34.preheader.new ], [ %mul.i38, %if.end.i34 ]
%niter59 = phi i32 [ 0, %if.end.i34.preheader.new ], [ %niter59.next.7, %if.end.i34 ]
%mul.i38 = shl i32 %accumulator.tr5.i36, 8
%niter59.next.7 = add i32 %niter59, 8
%niter59.ncmp.7 = icmp eq i32 %niter59.next.7, %unroll_iter58
br i1 %niter59.ncmp.7, label %exponential.exit42.loopexit.unr-lcssa, label %if.end.i34
exponential.exit42.loopexit.unr-lcssa: ; preds = %if.end.i34, %if.end.i34.preheader
%mul.i38.lcssa.ph = phi i32 [ undef, %if.end.i34.preheader ], [ %mul.i38, %if.end.i34 ]
%accumulator.tr5.i36.unr = phi i32 [ 1, %if.end.i34.preheader ], [ %mul.i38, %if.end.i34 ]
%lcmp.mod56.not = icmp eq i32 %xtraiter54, 0
br i1 %lcmp.mod56.not, label %exponential.exit42, label %if.end.i34.epil
if.end.i34.epil: ; preds = %exponential.exit42.loopexit.unr-lcssa, %if.end.i34.epil
%accumulator.tr5.i36.epil = phi i32 [ %mul.i38.epil, %if.end.i34.epil ], [ %accumulator.tr5.i36.unr, %exponential.exit42.loopexit.unr-lcssa ]
%epil.iter55 = phi i32 [ %epil.iter55.next, %if.end.i34.epil ], [ 0, %exponential.exit42.loopexit.unr-lcssa ]
%mul.i38.epil = shl nsw i32 %accumulator.tr5.i36.epil, 1
%epil.iter55.next = add i32 %epil.iter55, 1
%epil.iter55.cmp.not = icmp eq i32 %epil.iter55.next, %xtraiter54
br i1 %epil.iter55.cmp.not, label %exponential.exit42, label %if.end.i34.epil, !llvm.loop !15
exponential.exit42: ; preds = %exponential.exit42.loopexit.unr-lcssa, %if.end.i34.epil, %if.then10
%accumulator.tr.lcssa.i40 = phi i32 [ 1, %if.then10 ], [ %mul.i38.lcssa.ph, %exponential.exit42.loopexit.unr-lcssa ], [ %mul.i38.epil, %if.end.i34.epil ]
%accumulator.ret.tr.i41 = shl i32 %1, 1
%mul12 = mul i32 %accumulator.ret.tr.i41, %accumulator.tr.lcssa.i40
%add13 = add i32 %2, %0
%add14 = add i32 %add13, %mul12
br label %if.end15
if.end15: ; preds = %exponential.exit42, %if.end8
%ans.1 = phi i32 [ %add14, %exponential.exit42 ], [ %ans.0, %if.end8 ]
%cmp16.not = icmp slt i32 %2, %spec.select
br i1 %cmp16.not, label %if.end22, label %if.then17
if.then17: ; preds = %if.end15
%add18 = add nsw i32 %1, %0
%11 = load i32, ptr %K, align 4, !tbaa !9
%cmp4.i43 = icmp eq i32 %11, 1
br i1 %cmp4.i43, label %exponential.exit52, label %if.end.i44.preheader
if.end.i44.preheader: ; preds = %if.then17
%12 = add i32 %11, -1
%13 = add i32 %11, -2
%xtraiter60 = and i32 %12, 7
%14 = icmp ult i32 %13, 7
br i1 %14, label %exponential.exit52.loopexit.unr-lcssa, label %if.end.i44.preheader.new
if.end.i44.preheader.new: ; preds = %if.end.i44.preheader
%unroll_iter64 = and i32 %12, -8
br label %if.end.i44
if.end.i44: ; preds = %if.end.i44, %if.end.i44.preheader.new
%accumulator.tr5.i46 = phi i32 [ 1, %if.end.i44.preheader.new ], [ %mul.i48, %if.end.i44 ]
%niter65 = phi i32 [ 0, %if.end.i44.preheader.new ], [ %niter65.next.7, %if.end.i44 ]
%mul.i48 = shl i32 %accumulator.tr5.i46, 8
%niter65.next.7 = add i32 %niter65, 8
%niter65.ncmp.7 = icmp eq i32 %niter65.next.7, %unroll_iter64
br i1 %niter65.ncmp.7, label %exponential.exit52.loopexit.unr-lcssa, label %if.end.i44
exponential.exit52.loopexit.unr-lcssa: ; preds = %if.end.i44, %if.end.i44.preheader
%mul.i48.lcssa.ph = phi i32 [ undef, %if.end.i44.preheader ], [ %mul.i48, %if.end.i44 ]
%accumulator.tr5.i46.unr = phi i32 [ 1, %if.end.i44.preheader ], [ %mul.i48, %if.end.i44 ]
%lcmp.mod62.not = icmp eq i32 %xtraiter60, 0
br i1 %lcmp.mod62.not, label %exponential.exit52, label %if.end.i44.epil
if.end.i44.epil: ; preds = %exponential.exit52.loopexit.unr-lcssa, %if.end.i44.epil
%accumulator.tr5.i46.epil = phi i32 [ %mul.i48.epil, %if.end.i44.epil ], [ %accumulator.tr5.i46.unr, %exponential.exit52.loopexit.unr-lcssa ]
%epil.iter61 = phi i32 [ %epil.iter61.next, %if.end.i44.epil ], [ 0, %exponential.exit52.loopexit.unr-lcssa ]
%mul.i48.epil = shl nsw i32 %accumulator.tr5.i46.epil, 1
%epil.iter61.next = add i32 %epil.iter61, 1
%epil.iter61.cmp.not = icmp eq i32 %epil.iter61.next, %xtraiter60
br i1 %epil.iter61.cmp.not, label %exponential.exit52, label %if.end.i44.epil, !llvm.loop !16
exponential.exit52: ; preds = %exponential.exit52.loopexit.unr-lcssa, %if.end.i44.epil, %if.then17
%accumulator.tr.lcssa.i50 = phi i32 [ 1, %if.then17 ], [ %mul.i48.lcssa.ph, %exponential.exit52.loopexit.unr-lcssa ], [ %mul.i48.epil, %if.end.i44.epil ]
%accumulator.ret.tr.i51 = shl i32 %2, 1
%mul20 = mul i32 %accumulator.ret.tr.i51, %accumulator.tr.lcssa.i50
%add21 = add nsw i32 %add18, %mul20
br label %if.end22
if.end22: ; preds = %exponential.exit52, %if.end15
%ans.2 = phi i32 [ %add21, %exponential.exit52 ], [ %ans.1, %if.end15 ]
%call23 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %ans.2)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %K) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %c) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #5
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.mul.v4i32(<4 x i32>) #4
attributes #0 = { nofree norecurse nosync nounwind memory(none) uwtable "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 = { nofree nounwind uwtable "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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nofree nounwind "no-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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = distinct !{!5, !6, !7}
!6 = !{!"llvm.loop.isvectorized", i32 1}
!7 = !{!"llvm.loop.unroll.runtime.disable"}
!8 = distinct !{!8, !7, !6}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C/C++ TBAA"}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
|
#include<stdio.h>
int main() {
int A, B, C, K, a=0,max=0,min=0,i;
scanf("%d %d %d %d", &A, &B, &C, &K);
max = A;
if (max < B) {
min = max;
max = B;
}
else {
min = B;
}
if (max < C) {
min += max;
max = C;
}
else {
min += C;
}
for (i = 0; i < K; i++) {
max = max * 2;
}
printf("%d", max + min);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111264/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111264/source.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 [12 x i8] c"%d %d %d %d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%A = alloca i32, align 4
%B = alloca i32, align 4
%C = alloca i32, align 4
%K = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %A) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %B) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %C) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %K) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %A, ptr noundef nonnull %B, ptr noundef nonnull %C, ptr noundef nonnull %K)
%0 = load i32, ptr %A, align 4, !tbaa !5
%1 = load i32, ptr %B, align 4, !tbaa !5
%. = call i32 @llvm.smax.i32(i32 %0, i32 %1)
%2 = load i32, ptr %C, align 4, !tbaa !5
%max.1 = call i32 @llvm.smax.i32(i32 %., i32 %2)
%3 = load i32, ptr %K, align 4, !tbaa !5
%cmp622 = icmp sgt i32 %3, 0
br i1 %cmp622, label %for.body.preheader, label %for.end
for.body.preheader: ; preds = %entry
%xtraiter = and i32 %3, 7
%4 = icmp ult i32 %3, 8
br i1 %4, label %for.end.loopexit.unr-lcssa, label %for.body.preheader.new
for.body.preheader.new: ; preds = %for.body.preheader
%unroll_iter = and i32 %3, -8
br label %for.body
for.body: ; preds = %for.body, %for.body.preheader.new
%max.223 = phi i32 [ %max.1, %for.body.preheader.new ], [ %mul, %for.body ]
%niter = phi i32 [ 0, %for.body.preheader.new ], [ %niter.next.7, %for.body ]
%mul = shl i32 %max.223, 8
%niter.next.7 = add i32 %niter, 8
%niter.ncmp.7 = icmp eq i32 %niter.next.7, %unroll_iter
br i1 %niter.ncmp.7, label %for.end.loopexit.unr-lcssa, label %for.body, !llvm.loop !9
for.end.loopexit.unr-lcssa: ; preds = %for.body, %for.body.preheader
%mul.lcssa.ph = phi i32 [ undef, %for.body.preheader ], [ %mul, %for.body ]
%max.223.unr = phi i32 [ %max.1, %for.body.preheader ], [ %mul, %for.body ]
%lcmp.mod.not = icmp eq i32 %xtraiter, 0
br i1 %lcmp.mod.not, label %for.end, label %for.body.epil
for.body.epil: ; preds = %for.end.loopexit.unr-lcssa, %for.body.epil
%max.223.epil = phi i32 [ %mul.epil, %for.body.epil ], [ %max.223.unr, %for.end.loopexit.unr-lcssa ]
%epil.iter = phi i32 [ %epil.iter.next, %for.body.epil ], [ 0, %for.end.loopexit.unr-lcssa ]
%mul.epil = shl nsw i32 %max.223.epil, 1
%epil.iter.next = add i32 %epil.iter, 1
%epil.iter.cmp.not = icmp eq i32 %epil.iter.next, %xtraiter
br i1 %epil.iter.cmp.not, label %for.end, label %for.body.epil, !llvm.loop !11
for.end: ; preds = %for.end.loopexit.unr-lcssa, %for.body.epil, %entry
%max.2.lcssa = phi i32 [ %max.1, %entry ], [ %mul.lcssa.ph, %for.end.loopexit.unr-lcssa ], [ %mul.epil, %for.body.epil ]
%max.0.pn = call i32 @llvm.smin.i32(i32 %., i32 %2)
%.21 = call i32 @llvm.smin.i32(i32 %0, i32 %1)
%min.1 = add nsw i32 %max.0.pn, %.21
%add7 = add nsw i32 %min.1, %max.2.lcssa
%call8 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %add7)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %K) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %C) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %B) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %A) #4
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #3
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.unroll.disable"}
|
#include <stdio.h>
int power(int a, int x)
{
int b = a;
int i;
for(i=1; i<x; i++)
a *= b;
return a;
}
int max(int a, int b)
{
if(a > b)
return a;
else
return b;
}
int main(void)
{
int a, b, c, k;
int d;
scanf("%d %d %d", &a, &b, &c);
scanf("%d", &k);
d = max( a, max(b, c) );
printf("%d", d*power(2, k)+(a+b+c-d) );
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111314/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111314/source.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 [9 x i8] c"%d %d %d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: nofree norecurse nosync nounwind memory(none) uwtable
define dso_local i32 @power(i32 noundef %a, i32 noundef %x) local_unnamed_addr #0 {
entry:
%cmp4 = icmp sgt i32 %x, 1
br i1 %cmp4, label %for.body.preheader, label %for.end
for.body.preheader: ; preds = %entry
%0 = add i32 %x, -1
%min.iters.check = icmp ult i32 %x, 9
br i1 %min.iters.check, label %for.body.preheader8, label %vector.ph
vector.ph: ; preds = %for.body.preheader
%n.vec = and i32 %0, -8
%ind.end = or i32 %n.vec, 1
%1 = insertelement <4 x i32> <i32 poison, i32 1, i32 1, i32 1>, i32 %a, i64 0
%broadcast.splatinsert = insertelement <4 x i32> poison, i32 %a, i64 0
%broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
br label %vector.body
vector.body: ; preds = %vector.body, %vector.ph
%index = phi i32 [ 0, %vector.ph ], [ %index.next, %vector.body ]
%vec.phi = phi <4 x i32> [ %1, %vector.ph ], [ %2, %vector.body ]
%vec.phi7 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %vector.ph ], [ %3, %vector.body ]
%2 = mul <4 x i32> %vec.phi, %broadcast.splat
%3 = mul <4 x i32> %vec.phi7, %broadcast.splat
%index.next = add nuw i32 %index, 8
%4 = icmp eq i32 %index.next, %n.vec
br i1 %4, label %middle.block, label %vector.body, !llvm.loop !5
middle.block: ; preds = %vector.body
%bin.rdx = mul <4 x i32> %3, %2
%5 = tail call i32 @llvm.vector.reduce.mul.v4i32(<4 x i32> %bin.rdx)
%cmp.n = icmp eq i32 %0, %n.vec
br i1 %cmp.n, label %for.end, label %for.body.preheader8
for.body.preheader8: ; preds = %for.body.preheader, %middle.block
%i.06.ph = phi i32 [ 1, %for.body.preheader ], [ %ind.end, %middle.block ]
%a.addr.05.ph = phi i32 [ %a, %for.body.preheader ], [ %5, %middle.block ]
br label %for.body
for.body: ; preds = %for.body.preheader8, %for.body
%i.06 = phi i32 [ %inc, %for.body ], [ %i.06.ph, %for.body.preheader8 ]
%a.addr.05 = phi i32 [ %mul, %for.body ], [ %a.addr.05.ph, %for.body.preheader8 ]
%mul = mul nsw i32 %a.addr.05, %a
%inc = add nuw nsw i32 %i.06, 1
%exitcond.not = icmp eq i32 %inc, %x
br i1 %exitcond.not, label %for.end, label %for.body, !llvm.loop !9
for.end: ; preds = %for.body, %middle.block, %entry
%a.addr.0.lcssa = phi i32 [ %a, %entry ], [ %5, %middle.block ], [ %mul, %for.body ]
ret i32 %a.addr.0.lcssa
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
define dso_local i32 @max(i32 noundef %a, i32 noundef %b) local_unnamed_addr #2 {
entry:
%a.b = tail call i32 @llvm.smax.i32(i32 %a, i32 %b)
ret i32 %a.b
}
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #3 {
entry:
%a = alloca i32, align 4
%b = alloca i32, align 4
%c = alloca i32, align 4
%k = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #6
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #6
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %c) #6
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %k) #6
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b, ptr noundef nonnull %c)
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %k)
%0 = load i32, ptr %a, align 4, !tbaa !10
%1 = load i32, ptr %b, align 4, !tbaa !10
%2 = load i32, ptr %c, align 4, !tbaa !10
%3 = load i32, ptr %k, align 4, !tbaa !10
%cmp4.i = icmp sgt i32 %3, 1
br i1 %cmp4.i, label %for.body.i.preheader, label %power.exit
for.body.i.preheader: ; preds = %entry
%4 = add i32 %3, -1
%5 = add i32 %3, -2
%xtraiter = and i32 %4, 7
%6 = icmp ult i32 %5, 7
br i1 %6, label %power.exit.loopexit.unr-lcssa, label %for.body.i.preheader.new
for.body.i.preheader.new: ; preds = %for.body.i.preheader
%unroll_iter = and i32 %4, -8
br label %for.body.i
for.body.i: ; preds = %for.body.i, %for.body.i.preheader.new
%a.addr.05.i = phi i32 [ 2, %for.body.i.preheader.new ], [ %mul.i, %for.body.i ]
%niter = phi i32 [ 0, %for.body.i.preheader.new ], [ %niter.next.7, %for.body.i ]
%mul.i = shl i32 %a.addr.05.i, 8
%niter.next.7 = add i32 %niter, 8
%niter.ncmp.7 = icmp eq i32 %niter.next.7, %unroll_iter
br i1 %niter.ncmp.7, label %power.exit.loopexit.unr-lcssa, label %for.body.i, !llvm.loop !14
power.exit.loopexit.unr-lcssa: ; preds = %for.body.i, %for.body.i.preheader
%mul.i.lcssa.ph = phi i32 [ undef, %for.body.i.preheader ], [ %mul.i, %for.body.i ]
%a.addr.05.i.unr = phi i32 [ 2, %for.body.i.preheader ], [ %mul.i, %for.body.i ]
%lcmp.mod.not = icmp eq i32 %xtraiter, 0
br i1 %lcmp.mod.not, label %power.exit, label %for.body.i.epil
for.body.i.epil: ; preds = %power.exit.loopexit.unr-lcssa, %for.body.i.epil
%a.addr.05.i.epil = phi i32 [ %mul.i.epil, %for.body.i.epil ], [ %a.addr.05.i.unr, %power.exit.loopexit.unr-lcssa ]
%epil.iter = phi i32 [ %epil.iter.next, %for.body.i.epil ], [ 0, %power.exit.loopexit.unr-lcssa ]
%mul.i.epil = shl nsw i32 %a.addr.05.i.epil, 1
%epil.iter.next = add i32 %epil.iter, 1
%epil.iter.cmp.not = icmp eq i32 %epil.iter.next, %xtraiter
br i1 %epil.iter.cmp.not, label %power.exit, label %for.body.i.epil, !llvm.loop !15
power.exit: ; preds = %power.exit.loopexit.unr-lcssa, %for.body.i.epil, %entry
%a.addr.0.lcssa.i = phi i32 [ 2, %entry ], [ %mul.i.lcssa.ph, %power.exit.loopexit.unr-lcssa ], [ %mul.i.epil, %for.body.i.epil ]
%a.b.i = call i32 @llvm.smax.i32(i32 %1, i32 %2)
%a.b.i9 = call i32 @llvm.smax.i32(i32 %0, i32 %a.b.i)
%mul = mul nsw i32 %a.addr.0.lcssa.i, %a.b.i9
%add = add nsw i32 %1, %0
%add5 = add nsw i32 %add, %2
%sub = sub i32 %add5, %a.b.i9
%add6 = add nsw i32 %sub, %mul
%call7 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %add6)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %k) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %c) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #6
ret i32 0
}
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #5
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.mul.v4i32(<4 x i32>) #5
attributes #0 = { nofree norecurse nosync nounwind memory(none) uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nofree nosync nounwind willreturn memory(none) uwtable "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 #3 = { nofree nounwind uwtable "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 #4 = { nofree nounwind "no-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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = distinct !{!5, !6, !7, !8}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!"llvm.loop.isvectorized", i32 1}
!8 = !{!"llvm.loop.unroll.runtime.disable"}
!9 = distinct !{!9, !6, !8, !7}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C/C++ TBAA"}
!14 = distinct !{!14, !6}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
|
#include <stdio.h>
int main(){
int n,m,in,out,result,i;
scanf("%d %d",&n,&m);
result=m;
for(i = 0; i < n; i++){
scanf("%d %d",&in,&out);
m=m+in-out;
if(result < m) result=m;
if(m < 0){
printf("0\n");
return 0;
}
}
printf("%d\n",result);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111358/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111358/source.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"%d %d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@str = private unnamed_addr constant [2 x i8] c"0\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%n = alloca i32, align 4
%m = alloca i32, align 4
%in = alloca i32, align 4
%out = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %n) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %m) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %in) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %out) #5
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %n, ptr noundef nonnull %m)
%0 = load i32, ptr %m, align 4, !tbaa !5
%1 = load i32, ptr %n, align 4, !tbaa !5
%cmp16 = icmp sgt i32 %1, 0
br i1 %cmp16, label %for.body, label %for.end
for.body: ; preds = %entry, %for.inc
%i.018 = phi i32 [ %inc, %for.inc ], [ 0, %entry ]
%result.017 = phi i32 [ %spec.select, %for.inc ], [ %0, %entry ]
%call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %in, ptr noundef nonnull %out)
%2 = load i32, ptr %m, align 4, !tbaa !5
%3 = load i32, ptr %in, align 4, !tbaa !5
%add = add nsw i32 %3, %2
%4 = load i32, ptr %out, align 4, !tbaa !5
%sub = sub i32 %add, %4
store i32 %sub, ptr %m, align 4, !tbaa !5
%cmp3 = icmp slt i32 %sub, 0
br i1 %cmp3, label %if.then4, label %for.inc
if.then4: ; preds = %for.body
%puts = call i32 @puts(ptr nonnull dereferenceable(1) @str)
br label %cleanup
for.inc: ; preds = %for.body
%spec.select = call i32 @llvm.smax.i32(i32 %result.017, i32 %sub)
%inc = add nuw nsw i32 %i.018, 1
%5 = load i32, ptr %n, align 4, !tbaa !5
%cmp = icmp slt i32 %inc, %5
br i1 %cmp, label %for.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.inc, %entry
%result.0.lcssa = phi i32 [ %0, %entry ], [ %spec.select, %for.inc ]
%call7 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %result.0.lcssa)
br label %cleanup
cleanup: ; preds = %for.end, %if.then4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %out) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %in) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %m) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %n) #5
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 = { nofree nounwind }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
|
#include <stdio.h>
int main(void) {
int h,w;
scanf("%d %d", &h, &w);
int c[10][10];
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
scanf("%d", &c[i][j]);
}
}
int a[h][w];
for (int i = 0; i < h; i++) {
for (int j = 0; j < w; j++) {
scanf("%d", &a[i][j]);
}
}
int flag;
while (1) {
flag = 0;
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
for (int k = 0; k < 10; k++) {
if (c[i][k]+c[k][j] < c[i][j]) {
c[i][j] = c[i][k]+c[k][j];
flag = 1;
}
}
}
}
if (flag == 0) {
break;
}
}
long magic = 0;
for (int i = 0; i < h; i++) {
for (int j = 0; j < w; j++) {
if (a[i][j] != -1 && a[i][j] != 1) {
magic += c[a[i][j]][1];
}
}
}
printf("%ld\n", magic);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111400/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111400/source.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"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%ld\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%h = alloca i32, align 4
%w = alloca i32, align 4
%c = alloca [10 x [10 x i32]], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %h) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %w) #4
%call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %h, ptr noundef nonnull %w)
call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %c) #4
br label %for.cond1.preheader
for.cond1.preheader: ; preds = %entry, %for.cond1.preheader
%indvars.iv = phi i64 [ 0, %entry ], [ %indvars.iv.next, %for.cond1.preheader ]
%arrayidx6 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 %indvars.iv, i64 0
%call7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx6)
%arrayidx6.1 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 %indvars.iv, i64 1
%call7.1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx6.1)
%arrayidx6.2 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 %indvars.iv, i64 2
%call7.2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx6.2)
%arrayidx6.3 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 %indvars.iv, i64 3
%call7.3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx6.3)
%arrayidx6.4 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 %indvars.iv, i64 4
%call7.4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx6.4)
%arrayidx6.5 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 %indvars.iv, i64 5
%call7.5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx6.5)
%arrayidx6.6 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 %indvars.iv, i64 6
%call7.6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx6.6)
%arrayidx6.7 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 %indvars.iv, i64 7
%call7.7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx6.7)
%arrayidx6.8 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 %indvars.iv, i64 8
%call7.8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx6.8)
%arrayidx6.9 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 %indvars.iv, i64 9
%call7.9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx6.9)
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%exitcond.not = icmp eq i64 %indvars.iv.next, 10
br i1 %exitcond.not, label %for.cond.cleanup, label %for.cond1.preheader, !llvm.loop !5
for.cond.cleanup: ; preds = %for.cond1.preheader
%0 = load i32, ptr %h, align 4, !tbaa !7
%1 = zext i32 %0 to i64
%2 = load i32, ptr %w, align 4, !tbaa !7
%3 = zext i32 %2 to i64
%4 = call ptr @llvm.stacksave.p0()
%5 = mul nuw i64 %3, %1
%vla = alloca i32, i64 %5, align 16
%6 = load i32, ptr %h, align 4, !tbaa !7
%cmp13157 = icmp sgt i32 %6, 0
%7 = load i32, ptr %w, align 4
%8 = icmp sgt i32 %7, 0
%or.cond = select i1 %cmp13157, i1 %8, i1 false
br i1 %or.cond, label %for.cond17.preheader, label %while.cond.preheader
for.cond17.preheader: ; preds = %for.cond.cleanup, %for.cond.cleanup19
%9 = phi i32 [ %12, %for.cond.cleanup19 ], [ %6, %for.cond.cleanup ]
%10 = phi i32 [ %13, %for.cond.cleanup19 ], [ %7, %for.cond.cleanup ]
%indvars.iv182 = phi i64 [ %indvars.iv.next183, %for.cond.cleanup19 ], [ 0, %for.cond.cleanup ]
%cmp18155 = icmp sgt i32 %10, 0
br i1 %cmp18155, label %for.body20.lr.ph, label %for.cond.cleanup19
for.body20.lr.ph: ; preds = %for.cond17.preheader
%11 = mul nuw nsw i64 %indvars.iv182, %3
%arrayidx22 = getelementptr inbounds i32, ptr %vla, i64 %11
br label %for.body20
while.cond.preheader: ; preds = %for.cond.cleanup19, %for.cond.cleanup
%.lcssa = phi i32 [ %6, %for.cond.cleanup ], [ %12, %for.cond.cleanup19 ]
br label %for.cond38.preheader
for.cond.cleanup19.loopexit: ; preds = %for.body20
%.pre = load i32, ptr %h, align 4, !tbaa !7
br label %for.cond.cleanup19
for.cond.cleanup19: ; preds = %for.cond.cleanup19.loopexit, %for.cond17.preheader
%12 = phi i32 [ %.pre, %for.cond.cleanup19.loopexit ], [ %9, %for.cond17.preheader ]
%13 = phi i32 [ %15, %for.cond.cleanup19.loopexit ], [ %10, %for.cond17.preheader ]
%indvars.iv.next183 = add nuw nsw i64 %indvars.iv182, 1
%14 = sext i32 %12 to i64
%cmp13 = icmp slt i64 %indvars.iv.next183, %14
br i1 %cmp13, label %for.cond17.preheader, label %while.cond.preheader, !llvm.loop !11
for.body20: ; preds = %for.body20.lr.ph, %for.body20
%indvars.iv179 = phi i64 [ 0, %for.body20.lr.ph ], [ %indvars.iv.next180, %for.body20 ]
%arrayidx24 = getelementptr inbounds i32, ptr %arrayidx22, i64 %indvars.iv179
%call25 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %arrayidx24)
%indvars.iv.next180 = add nuw nsw i64 %indvars.iv179, 1
%15 = load i32, ptr %w, align 4, !tbaa !7
%16 = sext i32 %15 to i64
%cmp18 = icmp slt i64 %indvars.iv.next180, %16
br i1 %cmp18, label %for.body20, label %for.cond.cleanup19.loopexit, !llvm.loop !13
for.cond38.preheader: ; preds = %for.cond38.preheader.backedge, %while.cond.preheader
%indvars.iv193 = phi i64 [ 0, %while.cond.preheader ], [ %indvars.iv193.be, %for.cond38.preheader.backedge ]
%flag.0163 = phi i32 [ 0, %while.cond.preheader ], [ %flag.0163.be, %for.cond38.preheader.backedge ]
%arrayidx49 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 %indvars.iv193, i64 0
%arrayidx49.1 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 %indvars.iv193, i64 1
%arrayidx49.2 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 %indvars.iv193, i64 2
%arrayidx49.3 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 %indvars.iv193, i64 3
%arrayidx49.4 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 %indvars.iv193, i64 4
%arrayidx49.5 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 %indvars.iv193, i64 5
%arrayidx49.6 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 %indvars.iv193, i64 6
%arrayidx49.7 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 %indvars.iv193, i64 7
%arrayidx49.8 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 %indvars.iv193, i64 8
%arrayidx49.9 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 %indvars.iv193, i64 9
br label %for.cond42.preheader
for.cond.cleanup35: ; preds = %for.cond.cleanup40
%cmp81 = icmp eq i32 %flag.3.9, 0
br i1 %cmp81, label %for.cond85.preheader, label %for.cond38.preheader.backedge
for.cond85.preheader: ; preds = %for.cond.cleanup35
%cmp86169 = icmp sgt i32 %.lcssa, 0
br i1 %cmp86169, label %for.cond90.preheader.lr.ph, label %for.cond.cleanup87
for.cond90.preheader.lr.ph: ; preds = %for.cond85.preheader
%17 = load i32, ptr %w, align 4, !tbaa !7
%cmp91165 = icmp sgt i32 %17, 0
br i1 %cmp91165, label %for.cond90.preheader.us.preheader, label %for.cond.cleanup87
for.cond90.preheader.us.preheader: ; preds = %for.cond90.preheader.lr.ph
%wide.trip.count204 = zext i32 %.lcssa to i64
%wide.trip.count = zext i32 %17 to i64
%xtraiter = and i64 %wide.trip.count, 1
%18 = icmp eq i32 %17, 1
%unroll_iter = and i64 %wide.trip.count, 4294967294
%lcmp.mod.not = icmp eq i64 %xtraiter, 0
br label %for.cond90.preheader.us
for.cond90.preheader.us: ; preds = %for.cond90.preheader.us.preheader, %for.cond90.for.cond.cleanup92_crit_edge.us
%indvars.iv201 = phi i64 [ 0, %for.cond90.preheader.us.preheader ], [ %indvars.iv.next202, %for.cond90.for.cond.cleanup92_crit_edge.us ]
%magic.0170.us = phi i64 [ 0, %for.cond90.preheader.us.preheader ], [ %magic.2.us.lcssa, %for.cond90.for.cond.cleanup92_crit_edge.us ]
%19 = mul nuw nsw i64 %indvars.iv201, %3
%arrayidx95.us = getelementptr inbounds i32, ptr %vla, i64 %19
br i1 %18, label %for.cond90.for.cond.cleanup92_crit_edge.us.unr-lcssa, label %for.body93.us
for.body93.us: ; preds = %for.cond90.preheader.us, %for.inc114.us.1
%indvars.iv197 = phi i64 [ %indvars.iv.next198.1, %for.inc114.us.1 ], [ 0, %for.cond90.preheader.us ]
%magic.1166.us = phi i64 [ %magic.2.us.1, %for.inc114.us.1 ], [ %magic.0170.us, %for.cond90.preheader.us ]
%niter = phi i64 [ %niter.next.1, %for.inc114.us.1 ], [ 0, %for.cond90.preheader.us ]
%arrayidx97.us = getelementptr inbounds i32, ptr %arrayidx95.us, i64 %indvars.iv197
%20 = load i32, ptr %arrayidx97.us, align 4, !tbaa !7
switch i32 %20, label %if.then104.us [
i32 -1, label %for.inc114.us
i32 1, label %for.inc114.us
]
if.then104.us: ; preds = %for.body93.us
%idxprom109.us = sext i32 %20 to i64
%arrayidx111.us = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 %idxprom109.us, i64 1
%21 = load i32, ptr %arrayidx111.us, align 4, !tbaa !7
%conv.us = sext i32 %21 to i64
%add112.us = add nsw i64 %magic.1166.us, %conv.us
br label %for.inc114.us
for.inc114.us: ; preds = %if.then104.us, %for.body93.us, %for.body93.us
%magic.2.us = phi i64 [ %add112.us, %if.then104.us ], [ %magic.1166.us, %for.body93.us ], [ %magic.1166.us, %for.body93.us ]
%indvars.iv.next198 = or i64 %indvars.iv197, 1
%arrayidx97.us.1 = getelementptr inbounds i32, ptr %arrayidx95.us, i64 %indvars.iv.next198
%22 = load i32, ptr %arrayidx97.us.1, align 4, !tbaa !7
switch i32 %22, label %if.then104.us.1 [
i32 -1, label %for.inc114.us.1
i32 1, label %for.inc114.us.1
]
if.then104.us.1: ; preds = %for.inc114.us
%idxprom109.us.1 = sext i32 %22 to i64
%arrayidx111.us.1 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 %idxprom109.us.1, i64 1
%23 = load i32, ptr %arrayidx111.us.1, align 4, !tbaa !7
%conv.us.1 = sext i32 %23 to i64
%add112.us.1 = add nsw i64 %magic.2.us, %conv.us.1
br label %for.inc114.us.1
for.inc114.us.1: ; preds = %if.then104.us.1, %for.inc114.us, %for.inc114.us
%magic.2.us.1 = phi i64 [ %add112.us.1, %if.then104.us.1 ], [ %magic.2.us, %for.inc114.us ], [ %magic.2.us, %for.inc114.us ]
%indvars.iv.next198.1 = add nuw nsw i64 %indvars.iv197, 2
%niter.next.1 = add i64 %niter, 2
%niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
br i1 %niter.ncmp.1, label %for.cond90.for.cond.cleanup92_crit_edge.us.unr-lcssa, label %for.body93.us, !llvm.loop !14
for.cond90.for.cond.cleanup92_crit_edge.us.unr-lcssa: ; preds = %for.inc114.us.1, %for.cond90.preheader.us
%magic.2.us.lcssa.ph = phi i64 [ undef, %for.cond90.preheader.us ], [ %magic.2.us.1, %for.inc114.us.1 ]
%indvars.iv197.unr = phi i64 [ 0, %for.cond90.preheader.us ], [ %indvars.iv.next198.1, %for.inc114.us.1 ]
%magic.1166.us.unr = phi i64 [ %magic.0170.us, %for.cond90.preheader.us ], [ %magic.2.us.1, %for.inc114.us.1 ]
br i1 %lcmp.mod.not, label %for.cond90.for.cond.cleanup92_crit_edge.us, label %for.body93.us.epil
for.body93.us.epil: ; preds = %for.cond90.for.cond.cleanup92_crit_edge.us.unr-lcssa
%arrayidx97.us.epil = getelementptr inbounds i32, ptr %arrayidx95.us, i64 %indvars.iv197.unr
%24 = load i32, ptr %arrayidx97.us.epil, align 4, !tbaa !7
switch i32 %24, label %if.then104.us.epil [
i32 -1, label %for.cond90.for.cond.cleanup92_crit_edge.us
i32 1, label %for.cond90.for.cond.cleanup92_crit_edge.us
]
if.then104.us.epil: ; preds = %for.body93.us.epil
%idxprom109.us.epil = sext i32 %24 to i64
%arrayidx111.us.epil = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 %idxprom109.us.epil, i64 1
%25 = load i32, ptr %arrayidx111.us.epil, align 4, !tbaa !7
%conv.us.epil = sext i32 %25 to i64
%add112.us.epil = add nsw i64 %magic.1166.us.unr, %conv.us.epil
br label %for.cond90.for.cond.cleanup92_crit_edge.us
for.cond90.for.cond.cleanup92_crit_edge.us: ; preds = %for.body93.us.epil, %for.body93.us.epil, %if.then104.us.epil, %for.cond90.for.cond.cleanup92_crit_edge.us.unr-lcssa
%magic.2.us.lcssa = phi i64 [ %magic.2.us.lcssa.ph, %for.cond90.for.cond.cleanup92_crit_edge.us.unr-lcssa ], [ %add112.us.epil, %if.then104.us.epil ], [ %magic.1166.us.unr, %for.body93.us.epil ], [ %magic.1166.us.unr, %for.body93.us.epil ]
%indvars.iv.next202 = add nuw nsw i64 %indvars.iv201, 1
%exitcond205.not = icmp eq i64 %indvars.iv.next202, %wide.trip.count204
br i1 %exitcond205.not, label %for.cond.cleanup87, label %for.cond90.preheader.us, !llvm.loop !15
for.cond42.preheader: ; preds = %for.cond38.preheader, %for.inc72.9
%indvars.iv189 = phi i64 [ 0, %for.cond38.preheader ], [ %indvars.iv.next190, %for.inc72.9 ]
%flag.1161 = phi i32 [ %flag.0163, %for.cond38.preheader ], [ %flag.3.9, %for.inc72.9 ]
%arrayidx57 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 %indvars.iv193, i64 %indvars.iv189
%arrayidx57.promoted = load i32, ptr %arrayidx57, align 4, !tbaa !7
%26 = load i32, ptr %arrayidx49, align 8, !tbaa !7
%arrayidx53 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 0, i64 %indvars.iv189
%27 = load i32, ptr %arrayidx53, align 4, !tbaa !7
%add = add nsw i32 %27, %26
%cmp58 = icmp slt i32 %add, %arrayidx57.promoted
br i1 %cmp58, label %if.then, label %for.inc72
for.cond.cleanup40: ; preds = %for.inc72.9
%indvars.iv.next194 = add nuw nsw i64 %indvars.iv193, 1
%exitcond196.not = icmp eq i64 %indvars.iv.next194, 10
br i1 %exitcond196.not, label %for.cond.cleanup35, label %for.cond38.preheader.backedge
for.cond38.preheader.backedge: ; preds = %for.cond.cleanup40, %for.cond.cleanup35
%indvars.iv193.be = phi i64 [ %indvars.iv.next194, %for.cond.cleanup40 ], [ 0, %for.cond.cleanup35 ]
%flag.0163.be = phi i32 [ %flag.3.9, %for.cond.cleanup40 ], [ 0, %for.cond.cleanup35 ]
br label %for.cond38.preheader, !llvm.loop !16
if.then: ; preds = %for.cond42.preheader
store i32 %add, ptr %arrayidx57, align 4, !tbaa !7
br label %for.inc72
for.inc72: ; preds = %for.cond42.preheader, %if.then
%28 = phi i32 [ %add, %if.then ], [ %arrayidx57.promoted, %for.cond42.preheader ]
%flag.3 = phi i32 [ 1, %if.then ], [ %flag.1161, %for.cond42.preheader ]
%29 = load i32, ptr %arrayidx49.1, align 4, !tbaa !7
%arrayidx53.1 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 1, i64 %indvars.iv189
%30 = load i32, ptr %arrayidx53.1, align 4, !tbaa !7
%add.1 = add nsw i32 %30, %29
%cmp58.1 = icmp slt i32 %add.1, %28
br i1 %cmp58.1, label %if.then.1, label %for.inc72.1
if.then.1: ; preds = %for.inc72
store i32 %add.1, ptr %arrayidx57, align 4, !tbaa !7
br label %for.inc72.1
for.inc72.1: ; preds = %if.then.1, %for.inc72
%31 = phi i32 [ %add.1, %if.then.1 ], [ %28, %for.inc72 ]
%flag.3.1 = phi i32 [ 1, %if.then.1 ], [ %flag.3, %for.inc72 ]
%32 = load i32, ptr %arrayidx49.2, align 8, !tbaa !7
%arrayidx53.2 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 2, i64 %indvars.iv189
%33 = load i32, ptr %arrayidx53.2, align 4, !tbaa !7
%add.2 = add nsw i32 %33, %32
%cmp58.2 = icmp slt i32 %add.2, %31
br i1 %cmp58.2, label %if.then.2, label %for.inc72.2
if.then.2: ; preds = %for.inc72.1
store i32 %add.2, ptr %arrayidx57, align 4, !tbaa !7
br label %for.inc72.2
for.inc72.2: ; preds = %if.then.2, %for.inc72.1
%34 = phi i32 [ %add.2, %if.then.2 ], [ %31, %for.inc72.1 ]
%flag.3.2 = phi i32 [ 1, %if.then.2 ], [ %flag.3.1, %for.inc72.1 ]
%35 = load i32, ptr %arrayidx49.3, align 4, !tbaa !7
%arrayidx53.3 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 3, i64 %indvars.iv189
%36 = load i32, ptr %arrayidx53.3, align 4, !tbaa !7
%add.3 = add nsw i32 %36, %35
%cmp58.3 = icmp slt i32 %add.3, %34
br i1 %cmp58.3, label %if.then.3, label %for.inc72.3
if.then.3: ; preds = %for.inc72.2
store i32 %add.3, ptr %arrayidx57, align 4, !tbaa !7
br label %for.inc72.3
for.inc72.3: ; preds = %if.then.3, %for.inc72.2
%37 = phi i32 [ %add.3, %if.then.3 ], [ %34, %for.inc72.2 ]
%flag.3.3 = phi i32 [ 1, %if.then.3 ], [ %flag.3.2, %for.inc72.2 ]
%38 = load i32, ptr %arrayidx49.4, align 8, !tbaa !7
%arrayidx53.4 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 4, i64 %indvars.iv189
%39 = load i32, ptr %arrayidx53.4, align 4, !tbaa !7
%add.4 = add nsw i32 %39, %38
%cmp58.4 = icmp slt i32 %add.4, %37
br i1 %cmp58.4, label %if.then.4, label %for.inc72.4
if.then.4: ; preds = %for.inc72.3
store i32 %add.4, ptr %arrayidx57, align 4, !tbaa !7
br label %for.inc72.4
for.inc72.4: ; preds = %if.then.4, %for.inc72.3
%40 = phi i32 [ %add.4, %if.then.4 ], [ %37, %for.inc72.3 ]
%flag.3.4 = phi i32 [ 1, %if.then.4 ], [ %flag.3.3, %for.inc72.3 ]
%41 = load i32, ptr %arrayidx49.5, align 4, !tbaa !7
%arrayidx53.5 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 5, i64 %indvars.iv189
%42 = load i32, ptr %arrayidx53.5, align 4, !tbaa !7
%add.5 = add nsw i32 %42, %41
%cmp58.5 = icmp slt i32 %add.5, %40
br i1 %cmp58.5, label %if.then.5, label %for.inc72.5
if.then.5: ; preds = %for.inc72.4
store i32 %add.5, ptr %arrayidx57, align 4, !tbaa !7
br label %for.inc72.5
for.inc72.5: ; preds = %if.then.5, %for.inc72.4
%43 = phi i32 [ %add.5, %if.then.5 ], [ %40, %for.inc72.4 ]
%flag.3.5 = phi i32 [ 1, %if.then.5 ], [ %flag.3.4, %for.inc72.4 ]
%44 = load i32, ptr %arrayidx49.6, align 8, !tbaa !7
%arrayidx53.6 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 6, i64 %indvars.iv189
%45 = load i32, ptr %arrayidx53.6, align 4, !tbaa !7
%add.6 = add nsw i32 %45, %44
%cmp58.6 = icmp slt i32 %add.6, %43
br i1 %cmp58.6, label %if.then.6, label %for.inc72.6
if.then.6: ; preds = %for.inc72.5
store i32 %add.6, ptr %arrayidx57, align 4, !tbaa !7
br label %for.inc72.6
for.inc72.6: ; preds = %if.then.6, %for.inc72.5
%46 = phi i32 [ %add.6, %if.then.6 ], [ %43, %for.inc72.5 ]
%flag.3.6 = phi i32 [ 1, %if.then.6 ], [ %flag.3.5, %for.inc72.5 ]
%47 = load i32, ptr %arrayidx49.7, align 4, !tbaa !7
%arrayidx53.7 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 7, i64 %indvars.iv189
%48 = load i32, ptr %arrayidx53.7, align 4, !tbaa !7
%add.7 = add nsw i32 %48, %47
%cmp58.7 = icmp slt i32 %add.7, %46
br i1 %cmp58.7, label %if.then.7, label %for.inc72.7
if.then.7: ; preds = %for.inc72.6
store i32 %add.7, ptr %arrayidx57, align 4, !tbaa !7
br label %for.inc72.7
for.inc72.7: ; preds = %if.then.7, %for.inc72.6
%49 = phi i32 [ %add.7, %if.then.7 ], [ %46, %for.inc72.6 ]
%flag.3.7 = phi i32 [ 1, %if.then.7 ], [ %flag.3.6, %for.inc72.6 ]
%50 = load i32, ptr %arrayidx49.8, align 8, !tbaa !7
%arrayidx53.8 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 8, i64 %indvars.iv189
%51 = load i32, ptr %arrayidx53.8, align 4, !tbaa !7
%add.8 = add nsw i32 %51, %50
%cmp58.8 = icmp slt i32 %add.8, %49
br i1 %cmp58.8, label %if.then.8, label %for.inc72.8
if.then.8: ; preds = %for.inc72.7
store i32 %add.8, ptr %arrayidx57, align 4, !tbaa !7
br label %for.inc72.8
for.inc72.8: ; preds = %if.then.8, %for.inc72.7
%52 = phi i32 [ %add.8, %if.then.8 ], [ %49, %for.inc72.7 ]
%flag.3.8 = phi i32 [ 1, %if.then.8 ], [ %flag.3.7, %for.inc72.7 ]
%53 = load i32, ptr %arrayidx49.9, align 4, !tbaa !7
%arrayidx53.9 = getelementptr inbounds [10 x [10 x i32]], ptr %c, i64 0, i64 9, i64 %indvars.iv189
%54 = load i32, ptr %arrayidx53.9, align 4, !tbaa !7
%add.9 = add nsw i32 %54, %53
%cmp58.9 = icmp slt i32 %add.9, %52
br i1 %cmp58.9, label %if.then.9, label %for.inc72.9
if.then.9: ; preds = %for.inc72.8
store i32 %add.9, ptr %arrayidx57, align 4, !tbaa !7
br label %for.inc72.9
for.inc72.9: ; preds = %if.then.9, %for.inc72.8
%flag.3.9 = phi i32 [ 1, %if.then.9 ], [ %flag.3.8, %for.inc72.8 ]
%indvars.iv.next190 = add nuw nsw i64 %indvars.iv189, 1
%exitcond192.not = icmp eq i64 %indvars.iv.next190, 10
br i1 %exitcond192.not, label %for.cond.cleanup40, label %for.cond42.preheader, !llvm.loop !17
for.cond.cleanup87: ; preds = %for.cond90.for.cond.cleanup92_crit_edge.us, %for.cond90.preheader.lr.ph, %for.cond85.preheader
%magic.0.lcssa = phi i64 [ 0, %for.cond85.preheader ], [ 0, %for.cond90.preheader.lr.ph ], [ %magic.2.us.lcssa, %for.cond90.for.cond.cleanup92_crit_edge.us ]
%call120 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %magic.0.lcssa)
call void @llvm.stackrestore.p0(ptr %4)
call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %c) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %w) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %h) #4
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3
attributes #0 = { nofree nounwind uwtable "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-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 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = distinct !{!11, !6, !12}
!12 = !{!"llvm.loop.unswitch.partial.disable"}
!13 = distinct !{!13, !6}
!14 = distinct !{!14, !6}
!15 = distinct !{!15, !6}
!16 = distinct !{!16, !6}
!17 = distinct !{!17, !6}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.