Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include<stdio.h> int main(void) { int a=0; int W,H,x,y,r=0; scanf("%d%d%d%d%d",&W,&H,&x,&y,&r); if(x-r>=0&&x+r<=W){ if(y-r>=0&&y+r<=H){ a=1; } } else{ a = 0; } if(a==1){ printf("Yes\n"); } else if(a==0){ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341200/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341200/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 [11 x i8] c"%d%d%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: %W = alloca i32, align 4 %H = alloca i32, align 4 %x = alloca i32, align 4 %y = alloca i32, align 4 %r = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %W) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %r) #4 store i32 0, ptr %r, align 4, !tbaa !5 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %W, ptr noundef nonnull %H, ptr noundef nonnull %x, ptr noundef nonnull %y, ptr noundef nonnull %r) %0 = load i32, ptr %x, align 4, !tbaa !5 %1 = load i32, ptr %r, align 4, !tbaa !5 %cmp.not = icmp slt i32 %0, %1 br i1 %cmp.not, label %if.then14, label %land.lhs.true land.lhs.true: ; preds = %entry %add = add nsw i32 %1, %0 %2 = load i32, ptr %W, align 4, !tbaa !5 %cmp1.not = icmp sgt i32 %add, %2 br i1 %cmp1.not, label %if.then14, label %if.then if.then: ; preds = %land.lhs.true %3 = load i32, ptr %y, align 4, !tbaa !5 %cmp3.not = icmp slt i32 %3, %1 br i1 %cmp3.not, label %if.then14, label %land.lhs.true4 land.lhs.true4: ; preds = %if.then %add5 = add nsw i32 %3, %1 %4 = load i32, ptr %H, align 4, !tbaa !5 %cmp6.not.not = icmp sgt i32 %add5, %4 br i1 %cmp6.not.not, label %if.then14, label %if.end17 if.then14: ; preds = %land.lhs.true4, %entry, %land.lhs.true, %if.then br label %if.end17 if.end17: ; preds = %land.lhs.true4, %if.then14 %str.sink = phi ptr [ @str, %if.then14 ], [ @str.3, %land.lhs.true4 ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %r) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %W) #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 W,H; int x,y,r; scanf("%d%d%d%d%d",&W,&H,&x,&y,&r); if((0<=x-r)&&(x+r<=W)&&(0<=y-r)&&(y+r<=H)) { printf("Yes\n"); } else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341273/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341273/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 [11 x i8] c"%d%d%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: %W = alloca i32, align 4 %H = alloca i32, align 4 %x = alloca i32, align 4 %y = alloca i32, align 4 %r = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %W) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %r) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %W, ptr noundef nonnull %H, ptr noundef nonnull %x, ptr noundef nonnull %y, ptr noundef nonnull %r) %0 = load i32, ptr %x, align 4, !tbaa !5 %1 = load i32, ptr %r, align 4, !tbaa !5 %cmp.not = icmp slt i32 %0, %1 br i1 %cmp.not, label %if.else, label %land.lhs.true land.lhs.true: ; preds = %entry %add = add nsw i32 %1, %0 %2 = load i32, ptr %W, align 4, !tbaa !5 %cmp1.not = icmp sgt i32 %add, %2 br i1 %cmp1.not, label %if.else, label %land.lhs.true2 land.lhs.true2: ; preds = %land.lhs.true %3 = load i32, ptr %y, align 4, !tbaa !5 %cmp4.not = icmp slt i32 %3, %1 br i1 %cmp4.not, label %if.else, label %land.lhs.true5 land.lhs.true5: ; preds = %land.lhs.true2 %add6 = add nsw i32 %3, %1 %4 = load i32, ptr %H, align 4, !tbaa !5 %cmp7.not = icmp sgt i32 %add6, %4 br i1 %cmp7.not, label %if.else, label %if.end if.else: ; preds = %land.lhs.true5, %land.lhs.true2, %land.lhs.true, %entry br label %if.end if.end: ; preds = %land.lhs.true5, %if.else %str.sink = phi ptr [ @str, %if.else ], [ @str.3, %land.lhs.true5 ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %r) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %W) #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 W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(x-r >= 0 && x+r <= W && y-r >= 0 && y+r <= H){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341323/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341323/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 [15 x i8] c"%d %d %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: %W = alloca i32, align 4 %H = alloca i32, align 4 %x = alloca i32, align 4 %y = alloca i32, align 4 %r = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %W) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %r) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %W, ptr noundef nonnull %H, ptr noundef nonnull %x, ptr noundef nonnull %y, ptr noundef nonnull %r) %0 = load i32, ptr %x, align 4, !tbaa !5 %1 = load i32, ptr %r, align 4, !tbaa !5 %cmp.not = icmp slt i32 %0, %1 br i1 %cmp.not, label %if.else, label %land.lhs.true land.lhs.true: ; preds = %entry %add = add nsw i32 %1, %0 %2 = load i32, ptr %W, align 4, !tbaa !5 %cmp1.not = icmp sgt i32 %add, %2 br i1 %cmp1.not, label %if.else, label %land.lhs.true2 land.lhs.true2: ; preds = %land.lhs.true %3 = load i32, ptr %y, align 4, !tbaa !5 %cmp4.not = icmp slt i32 %3, %1 br i1 %cmp4.not, label %if.else, label %land.lhs.true5 land.lhs.true5: ; preds = %land.lhs.true2 %add6 = add nsw i32 %3, %1 %4 = load i32, ptr %H, align 4, !tbaa !5 %cmp7.not = icmp sgt i32 %add6, %4 br i1 %cmp7.not, label %if.else, label %if.end if.else: ; preds = %land.lhs.true5, %land.lhs.true2, %land.lhs.true, %entry br label %if.end if.end: ; preds = %land.lhs.true5, %if.else %str.sink = phi ptr [ @str, %if.else ], [ @str.3, %land.lhs.true5 ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %r) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %W) #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 x,y,w,h,r; scanf("%d %d %d %d %d",&w,&h,&x,&y,&r); if(x+r>w||x-r<0||y+r>h||y-r<0){ printf("No\n"); }else{ printf("Yes\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341374/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341374/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 [15 x i8] c"%d %d %d %d %d\00", align 1 @str = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @str.3 = 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: %x = alloca i32, align 4 %y = alloca i32, align 4 %w = alloca i32, align 4 %h = alloca i32, align 4 %r = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %w) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %h) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %r) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %w, ptr noundef nonnull %h, ptr noundef nonnull %x, ptr noundef nonnull %y, ptr noundef nonnull %r) %0 = load i32, ptr %x, align 4, !tbaa !5 %1 = load i32, ptr %r, align 4, !tbaa !5 %add = add nsw i32 %1, %0 %2 = load i32, ptr %w, align 4, !tbaa !5 %cmp = icmp sgt i32 %add, %2 %cmp1 = icmp slt i32 %0, %1 %or.cond = or i1 %cmp1, %cmp br i1 %or.cond, label %if.end, label %lor.lhs.false2 lor.lhs.false2: ; preds = %entry %3 = load i32, ptr %y, align 4, !tbaa !5 %add3 = add nsw i32 %3, %1 %4 = load i32, ptr %h, align 4, !tbaa !5 %cmp4 = icmp sgt i32 %add3, %4 %cmp7 = icmp slt i32 %3, %1 %or.cond11 = or i1 %cmp7, %cmp4 %spec.select = select i1 %or.cond11, ptr @str.3, ptr @str br label %if.end if.end: ; preds = %lor.lhs.false2, %entry %str.sink = phi ptr [ @str.3, %entry ], [ %spec.select, %lor.lhs.false2 ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %r) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %h) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %w) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #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 W,H; int x,y,r; scanf("%d %d %d %d %d", &W,&H,&x,&y,&r); if ( x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341424/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341424/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 [15 x i8] c"%d %d %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: %W = alloca i32, align 4 %H = alloca i32, align 4 %x = alloca i32, align 4 %y = alloca i32, align 4 %r = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %W) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %r) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %W, ptr noundef nonnull %H, ptr noundef nonnull %x, ptr noundef nonnull %y, ptr noundef nonnull %r) %0 = load i32, ptr %x, align 4, !tbaa !5 %1 = load i32, ptr %r, align 4, !tbaa !5 %cmp.not = icmp slt i32 %0, %1 br i1 %cmp.not, label %if.else, label %land.lhs.true land.lhs.true: ; preds = %entry %add = add nsw i32 %1, %0 %2 = load i32, ptr %W, align 4, !tbaa !5 %cmp1.not = icmp sgt i32 %add, %2 br i1 %cmp1.not, label %if.else, label %land.lhs.true2 land.lhs.true2: ; preds = %land.lhs.true %3 = load i32, ptr %y, align 4, !tbaa !5 %cmp4.not = icmp slt i32 %3, %1 br i1 %cmp4.not, label %if.else, label %land.lhs.true5 land.lhs.true5: ; preds = %land.lhs.true2 %add6 = add nsw i32 %3, %1 %4 = load i32, ptr %H, align 4, !tbaa !5 %cmp7.not = icmp sgt i32 %add6, %4 br i1 %cmp7.not, label %if.else, label %if.end if.else: ; preds = %land.lhs.true5, %land.lhs.true2, %land.lhs.true, %entry br label %if.end if.end: ; preds = %land.lhs.true5, %if.else %str.sink = phi ptr [ @str, %if.else ], [ @str.3, %land.lhs.true5 ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %r) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %W) #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 W,H,x,y,r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x-r>=0 && x+r<=W && y-r>=0 && y+r<=H) { printf("Yes\n"); } else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341468/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341468/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 [15 x i8] c"%d %d %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: %W = alloca i32, align 4 %H = alloca i32, align 4 %x = alloca i32, align 4 %y = alloca i32, align 4 %r = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %W) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %r) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %W, ptr noundef nonnull %H, ptr noundef nonnull %x, ptr noundef nonnull %y, ptr noundef nonnull %r) %0 = load i32, ptr %x, align 4, !tbaa !5 %1 = load i32, ptr %r, align 4, !tbaa !5 %cmp.not = icmp slt i32 %0, %1 br i1 %cmp.not, label %if.else, label %land.lhs.true land.lhs.true: ; preds = %entry %add = add nsw i32 %1, %0 %2 = load i32, ptr %W, align 4, !tbaa !5 %cmp1.not = icmp sgt i32 %add, %2 br i1 %cmp1.not, label %if.else, label %land.lhs.true2 land.lhs.true2: ; preds = %land.lhs.true %3 = load i32, ptr %y, align 4, !tbaa !5 %cmp4.not = icmp slt i32 %3, %1 br i1 %cmp4.not, label %if.else, label %land.lhs.true5 land.lhs.true5: ; preds = %land.lhs.true2 %add6 = add nsw i32 %3, %1 %4 = load i32, ptr %H, align 4, !tbaa !5 %cmp7.not = icmp sgt i32 %add6, %4 br i1 %cmp7.not, label %if.else, label %if.end if.else: ; preds = %land.lhs.true5, %land.lhs.true2, %land.lhs.true, %entry br label %if.end if.end: ; preds = %land.lhs.true5, %if.else %str.sink = phi ptr [ @str, %if.else ], [ @str.3, %land.lhs.true5 ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %r) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %W) #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 w, h, x, y, r; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if( w>=x+r && h>=y+r && x-r>=0 && y-r>=0 ) puts("Yes"); else puts("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341510/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341510/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 [15 x i8] c"%d %d %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: %w = alloca i32, align 4 %h = alloca i32, align 4 %x = alloca i32, align 4 %y = alloca i32, align 4 %r = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %w) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %h) #3 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 void @llvm.lifetime.start.p0(i64 4, ptr nonnull %r) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %w, ptr noundef nonnull %h, ptr noundef nonnull %x, ptr noundef nonnull %y, ptr noundef nonnull %r) %0 = load i32, ptr %w, align 4, !tbaa !5 %1 = load i32, ptr %x, align 4, !tbaa !5 %2 = load i32, ptr %r, align 4, !tbaa !5 %add = add nsw i32 %2, %1 %cmp.not = icmp slt i32 %0, %add br i1 %cmp.not, label %if.else, label %land.lhs.true land.lhs.true: ; preds = %entry %3 = load i32, ptr %h, align 4, !tbaa !5 %4 = load i32, ptr %y, align 4, !tbaa !5 %add1 = add nsw i32 %4, %2 %cmp2.not = icmp slt i32 %3, %add1 %cmp4.not = icmp slt i32 %1, %2 %or.cond = or i1 %cmp4.not, %cmp2.not %cmp7.not = icmp slt i32 %4, %2 %or.cond10 = or i1 %cmp7.not, %or.cond br i1 %or.cond10, label %if.else, label %if.end if.else: ; preds = %land.lhs.true, %entry br label %if.end if.end: ; preds = %land.lhs.true, %if.else %.str.2.sink = phi ptr [ @.str.2, %if.else ], [ @.str.1, %land.lhs.true ] %call9 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %.str.2.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %r) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %y) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %h) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %w) #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 W,H,x,y,r; scanf("%d",&W); scanf("%d",&H); scanf("%d",&x); scanf("%d",&y); scanf("%d",&r); if(x-r>=0&&x+r<=W&&y-r>=0&&y+r<=H){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341561/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341561/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: %W = alloca i32, align 4 %H = alloca i32, align 4 %x = alloca i32, align 4 %y = alloca i32, align 4 %r = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %W) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %r) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %W) %call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %H) %call2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %x) %call3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %y) %call4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %r) %0 = load i32, ptr %x, align 4, !tbaa !5 %1 = load i32, ptr %r, align 4, !tbaa !5 %cmp.not = icmp slt i32 %0, %1 br i1 %cmp.not, label %if.else, label %land.lhs.true land.lhs.true: ; preds = %entry %add = add nsw i32 %1, %0 %2 = load i32, ptr %W, align 4, !tbaa !5 %cmp5.not = icmp sgt i32 %add, %2 br i1 %cmp5.not, label %if.else, label %land.lhs.true6 land.lhs.true6: ; preds = %land.lhs.true %3 = load i32, ptr %y, align 4, !tbaa !5 %cmp8.not = icmp slt i32 %3, %1 br i1 %cmp8.not, label %if.else, label %land.lhs.true9 land.lhs.true9: ; preds = %land.lhs.true6 %add10 = add nsw i32 %3, %1 %4 = load i32, ptr %H, align 4, !tbaa !5 %cmp11.not = icmp sgt i32 %add10, %4 br i1 %cmp11.not, label %if.else, label %if.end if.else: ; preds = %land.lhs.true9, %land.lhs.true6, %land.lhs.true, %entry br label %if.end if.end: ; preds = %land.lhs.true9, %if.else %str.sink = phi ptr [ @str, %if.else ], [ @str.3, %land.lhs.true9 ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %r) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %W) #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"}
/*(c) nupetan 2017*/ #include<stdio.h> int main(){ struct { short int width, height; }rectangle; struct { short int x_coordinate, y_coordinate,radius; }circle; scanf("%hd %hd", &rectangle.width, &rectangle.height); scanf("%hd %hd %hd", &circle.x_coordinate, &circle.y_coordinate, &circle.radius); if(rectangle.width >= circle.x_coordinate + circle.radius && rectangle.height >= circle.y_coordinate + circle.radius && 0 <= circle.x_coordinate - circle.radius && 0 <= circle.y_coordinate - circle.radius) puts("Yes"); else puts("No"); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341611/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341611/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.anon = type { i16, i16 } %struct.anon.0 = type { i16, i16, i16 } @.str = private unnamed_addr constant [8 x i8] c"%hd %hd\00", align 1 @.str.1 = private unnamed_addr constant [12 x i8] c"%hd %hd %hd\00", align 1 @.str.2 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1 @.str.3 = 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: %rectangle = alloca %struct.anon, align 2 %circle = alloca %struct.anon.0, align 2 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %rectangle) #3 call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %circle) #3 %height = getelementptr inbounds %struct.anon, ptr %rectangle, i64 0, i32 1 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %rectangle, ptr noundef nonnull %height) %y_coordinate = getelementptr inbounds %struct.anon.0, ptr %circle, i64 0, i32 1 %radius = getelementptr inbounds %struct.anon.0, ptr %circle, i64 0, i32 2 %call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %circle, ptr noundef nonnull %y_coordinate, ptr noundef nonnull %radius) %0 = load i16, ptr %rectangle, align 2, !tbaa !5 %conv = sext i16 %0 to i32 %1 = load i16, ptr %circle, align 2, !tbaa !10 %conv4 = sext i16 %1 to i32 %2 = load i16, ptr %radius, align 2, !tbaa !12 %conv6 = sext i16 %2 to i32 %add = add nsw i32 %conv6, %conv4 %cmp.not = icmp sgt i32 %add, %conv br i1 %cmp.not, label %if.else, label %land.lhs.true land.lhs.true: ; preds = %entry %3 = load i16, ptr %height, align 2, !tbaa !13 %conv9 = sext i16 %3 to i32 %4 = load i16, ptr %y_coordinate, align 2, !tbaa !14 %conv11 = sext i16 %4 to i32 %add14 = add nsw i32 %conv11, %conv6 %cmp15.not = icmp sgt i32 %add14, %conv9 %cmp22.not = icmp slt i16 %1, %2 %or.cond = or i1 %cmp22.not, %cmp15.not %cmp30.not = icmp slt i16 %4, %2 %or.cond34 = or i1 %cmp30.not, %or.cond br i1 %or.cond34, label %if.else, label %if.end if.else: ; preds = %land.lhs.true, %entry br label %if.end if.end: ; preds = %land.lhs.true, %if.else %.str.3.sink = phi ptr [ @.str.3, %if.else ], [ @.str.2, %land.lhs.true ] %call33 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %.str.3.sink) call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %circle) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %rectangle) #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, !7, i64 0} !6 = !{!"", !7, i64 0, !7, i64 2} !7 = !{!"short", !8, i64 0} !8 = !{!"omnipotent char", !9, i64 0} !9 = !{!"Simple C/C++ TBAA"} !10 = !{!11, !7, i64 0} !11 = !{!"", !7, i64 0, !7, i64 2, !7, i64 4} !12 = !{!11, !7, i64 4} !13 = !{!6, !7, i64 2} !14 = !{!11, !7, i64 2}
#include <stdio.h> int main(void) { // ??°????????\???????????° int W; int H; int x; int y; int r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if((0 <= x-r) && (0 <= y-r) && (x+r <= W) && (y+r <= H)) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341655/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341655/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 [15 x i8] c"%d %d %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: %W = alloca i32, align 4 %H = alloca i32, align 4 %x = alloca i32, align 4 %y = alloca i32, align 4 %r = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %W) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %r) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %W, ptr noundef nonnull %H, ptr noundef nonnull %x, ptr noundef nonnull %y, ptr noundef nonnull %r) %0 = load i32, ptr %x, align 4, !tbaa !5 %1 = load i32, ptr %r, align 4, !tbaa !5 %cmp.not = icmp slt i32 %0, %1 br i1 %cmp.not, label %if.else, label %land.lhs.true land.lhs.true: ; preds = %entry %2 = load i32, ptr %y, align 4, !tbaa !5 %cmp2.not = icmp slt i32 %2, %1 br i1 %cmp2.not, label %if.else, label %land.lhs.true3 land.lhs.true3: ; preds = %land.lhs.true %add = add nsw i32 %1, %0 %3 = load i32, ptr %W, align 4, !tbaa !5 %cmp4.not = icmp sgt i32 %add, %3 br i1 %cmp4.not, label %if.else, label %land.lhs.true5 land.lhs.true5: ; preds = %land.lhs.true3 %add6 = add nsw i32 %2, %1 %4 = load i32, ptr %H, align 4, !tbaa !5 %cmp7.not = icmp sgt i32 %add6, %4 br i1 %cmp7.not, label %if.else, label %if.end if.else: ; preds = %land.lhs.true5, %land.lhs.true3, %land.lhs.true, %entry br label %if.end if.end: ; preds = %land.lhs.true5, %if.else %str.sink = phi ptr [ @str, %if.else ], [ @str.3, %land.lhs.true5 ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %r) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %W) #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" //長方形の中に円があるか判定 //2018/02/05 int main(void){ int w,h,x,y,r; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if(((x-r) >= 0) && ((y-r) >= 0) && ((x+r) <= w) && ((y+r) <= h)){ puts("Yes"); }else{ puts("No"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341712/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341712/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 [15 x i8] c"%d %d %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: %w = alloca i32, align 4 %h = alloca i32, align 4 %x = alloca i32, align 4 %y = alloca i32, align 4 %r = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %w) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %h) #3 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 void @llvm.lifetime.start.p0(i64 4, ptr nonnull %r) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %w, ptr noundef nonnull %h, ptr noundef nonnull %x, ptr noundef nonnull %y, ptr noundef nonnull %r) %0 = load i32, ptr %x, align 4, !tbaa !5 %1 = load i32, ptr %r, align 4, !tbaa !5 %cmp.not = icmp slt i32 %0, %1 br i1 %cmp.not, label %if.else, label %land.lhs.true land.lhs.true: ; preds = %entry %2 = load i32, ptr %y, align 4, !tbaa !5 %cmp2.not = icmp slt i32 %2, %1 br i1 %cmp2.not, label %if.else, label %land.lhs.true3 land.lhs.true3: ; preds = %land.lhs.true %add = add nsw i32 %1, %0 %3 = load i32, ptr %w, align 4, !tbaa !5 %cmp4.not = icmp sgt i32 %add, %3 br i1 %cmp4.not, label %if.else, label %land.lhs.true5 land.lhs.true5: ; preds = %land.lhs.true3 %add6 = add nsw i32 %2, %1 %4 = load i32, ptr %h, align 4, !tbaa !5 %cmp7.not = icmp sgt i32 %add6, %4 br i1 %cmp7.not, label %if.else, label %if.end if.else: ; preds = %land.lhs.true5, %land.lhs.true3, %land.lhs.true, %entry br label %if.end if.end: ; preds = %land.lhs.true5, %if.else %.str.2.sink = phi ptr [ @.str.2, %if.else ], [ @.str.1, %land.lhs.true5 ] %call9 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %.str.2.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %r) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %y) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %h) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %w) #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> #include <stdlib.h> int main() { int W, H; int x, y, r; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); W -= r, H -= r; if (r <= x && x <= W && r <= y && y <= H) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341756/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341756/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 [11 x i8] c"%d%d%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: %W = alloca i32, align 4 %H = alloca i32, align 4 %x = alloca i32, align 4 %y = alloca i32, align 4 %r = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %W) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %r) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %W, ptr noundef nonnull %H, ptr noundef nonnull %x, ptr noundef nonnull %y, ptr noundef nonnull %r) %0 = load i32, ptr %r, align 4, !tbaa !5 %1 = load i32, ptr %W, align 4, !tbaa !5 %sub = sub nsw i32 %1, %0 store i32 %sub, ptr %W, align 4, !tbaa !5 %2 = load i32, ptr %H, align 4, !tbaa !5 %sub1 = sub nsw i32 %2, %0 store i32 %sub1, ptr %H, align 4, !tbaa !5 %3 = load i32, ptr %x, align 4, !tbaa !5 %cmp.not = icmp sgt i32 %0, %3 %cmp2.not = icmp sgt i32 %3, %sub %or.cond = select i1 %cmp.not, i1 true, i1 %cmp2.not br i1 %or.cond, label %if.else, label %land.lhs.true3 land.lhs.true3: ; preds = %entry %4 = load i32, ptr %y, align 4, !tbaa !5 %cmp4.not = icmp sgt i32 %0, %4 %cmp6.not = icmp sgt i32 %4, %sub1 %or.cond12 = select i1 %cmp4.not, i1 true, i1 %cmp6.not br i1 %or.cond12, label %if.else, label %if.end if.else: ; preds = %land.lhs.true3, %entry br label %if.end if.end: ; preds = %land.lhs.true3, %if.else %str.sink = phi ptr [ @str, %if.else ], [ @str.3, %land.lhs.true3 ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %r) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %W) #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 n; scanf("%d", &n); int i, j; int a[102]; for (i = 0; i < n; i++) scanf("%d", &a[i]); int ans = 0; for (i = 0; i < n - 1; i++) { if (a[i] > a[i + 1]) { a[i] ^= a[i + 1]; a[i + 1] ^= a[i]; a[i] ^= a[i + 1]; if (i > 0) i -= 2; } } for (i = 0; i < n; i++) { if (a[i] > 0) { ans++; for (j = i + 1; j < n; j++) if (a[j] % a[i] == 0) a[j] = -1; } } printf("%d\n", ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3418/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3418/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 [102 x i32], align 16 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) call void @llvm.lifetime.start.p0(i64 408, ptr nonnull %a) #3 %0 = load i32, ptr %n, align 4, !tbaa !5 %cmp87 = icmp sgt i32 %0, 0 br i1 %cmp87, label %for.body, label %for.end61 for.cond2.preheader: ; preds = %for.body %sub = add nsw i32 %1, -1 %cmp389 = icmp sgt i32 %1, 1 br i1 %cmp389, label %for.body4, label %for.cond34.preheader for.body: ; preds = %entry, %for.body %indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ] %arrayidx = getelementptr inbounds [102 x i32], ptr %a, i64 0, i64 %indvars.iv %call1 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %arrayidx) %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 %1 = load i32, ptr %n, align 4, !tbaa !5 %2 = sext i32 %1 to i64 %cmp = icmp slt i64 %indvars.iv.next, %2 br i1 %cmp, label %for.body, label %for.cond2.preheader, !llvm.loop !9 for.cond34.preheader: ; preds = %for.inc31, %for.cond2.preheader %cmp3594 = icmp sgt i32 %1, 0 br i1 %cmp3594, label %for.body36.preheader, label %for.end61 for.body36.preheader: ; preds = %for.cond34.preheader %3 = zext i32 %1 to i64 %wide.trip.count109 = zext i32 %1 to i64 br label %for.body36 for.body4: ; preds = %for.cond2.preheader, %for.inc31 %i.190 = phi i32 [ %inc32.pre-phi, %for.inc31 ], [ 0, %for.cond2.preheader ] %idxprom5 = sext i32 %i.190 to i64 %arrayidx6 = getelementptr inbounds [102 x i32], ptr %a, i64 0, i64 %idxprom5 %4 = load i32, ptr %arrayidx6, align 4, !tbaa !5 %add = add nsw i32 %i.190, 1 %idxprom7 = sext i32 %add to i64 %arrayidx8 = getelementptr inbounds [102 x i32], ptr %a, i64 0, i64 %idxprom7 %5 = load i32, ptr %arrayidx8, align 4, !tbaa !5 %cmp9 = icmp sgt i32 %4, %5 br i1 %cmp9, label %if.then, label %for.inc31 if.then: ; preds = %for.body4 store i32 %4, ptr %arrayidx8, align 4, !tbaa !5 store i32 %5, ptr %arrayidx6, align 4, !tbaa !5 %cmp27 = icmp sgt i32 %i.190, 0 %sub29 = add nsw i32 %i.190, -2 %spec.select = select i1 %cmp27, i32 %sub29, i32 %i.190 %.pre = add nsw i32 %spec.select, 1 br label %for.inc31 for.inc31: ; preds = %if.then, %for.body4 %inc32.pre-phi = phi i32 [ %.pre, %if.then ], [ %add, %for.body4 ] %cmp3 = icmp slt i32 %inc32.pre-phi, %sub br i1 %cmp3, label %for.body4, label %for.cond34.preheader, !llvm.loop !11 for.body36: ; preds = %for.body36.preheader, %for.inc59 %indvars.iv105 = phi i64 [ 0, %for.body36.preheader ], [ %indvars.iv.next106.pre-phi, %for.inc59 ] %indvars.iv100 = phi i64 [ 1, %for.body36.preheader ], [ %indvars.iv.next101, %for.inc59 ] %ans.096 = phi i32 [ 0, %for.body36.preheader ], [ %ans.1, %for.inc59 ] %arrayidx38 = getelementptr inbounds [102 x i32], ptr %a, i64 0, i64 %indvars.iv105 %6 = load i32, ptr %arrayidx38, align 4, !tbaa !5 %cmp39 = icmp sgt i32 %6, 0 br i1 %cmp39, label %if.then40, label %for.body36.for.inc59_crit_edge for.body36.for.inc59_crit_edge: ; preds = %for.body36 %.pre111 = add nuw nsw i64 %indvars.iv105, 1 br label %for.inc59 if.then40: ; preds = %for.body36 %inc41 = add nsw i32 %ans.096, 1 %7 = add nuw nsw i64 %indvars.iv105, 1 %cmp4492 = icmp slt i64 %7, %3 br i1 %cmp4492, label %for.body45, label %for.inc59 for.body45: ; preds = %if.then40, %for.inc55 %indvars.iv102 = phi i64 [ %indvars.iv.next103, %for.inc55 ], [ %indvars.iv100, %if.then40 ] %arrayidx47 = getelementptr inbounds [102 x i32], ptr %a, i64 0, i64 %indvars.iv102 %8 = load i32, ptr %arrayidx47, align 4, !tbaa !5 %9 = load i32, ptr %arrayidx38, align 4, !tbaa !5 %rem = srem i32 %8, %9 %cmp50 = icmp eq i32 %rem, 0 br i1 %cmp50, label %if.then51, label %for.inc55 if.then51: ; preds = %for.body45 store i32 -1, ptr %arrayidx47, align 4, !tbaa !5 br label %for.inc55 for.inc55: ; preds = %for.body45, %if.then51 %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1 %exitcond.not = icmp eq i64 %indvars.iv.next103, %wide.trip.count109 br i1 %exitcond.not, label %for.inc59, label %for.body45, !llvm.loop !12 for.inc59: ; preds = %for.inc55, %for.body36.for.inc59_crit_edge, %if.then40 %indvars.iv.next106.pre-phi = phi i64 [ %.pre111, %for.body36.for.inc59_crit_edge ], [ %7, %if.then40 ], [ %7, %for.inc55 ] %ans.1 = phi i32 [ %ans.096, %for.body36.for.inc59_crit_edge ], [ %inc41, %if.then40 ], [ %inc41, %for.inc55 ] %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1 %exitcond110.not = icmp eq i64 %indvars.iv.next106.pre-phi, %wide.trip.count109 br i1 %exitcond110.not, label %for.end61, label %for.body36, !llvm.loop !13 for.end61: ; preds = %for.inc59, %entry, %for.cond34.preheader %ans.0.lcssa = phi i32 [ 0, %for.cond34.preheader ], [ 0, %entry ], [ %ans.1, %for.inc59 ] %call62 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %ans.0.lcssa) call void @llvm.lifetime.end.p0(i64 408, 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"} !11 = distinct !{!11, !10} !12 = distinct !{!12, !10} !13 = distinct !{!13, !10}
#include <stdio.h> int main(void) { int W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(x+r<=W&&y+r<=H&&x-r>=0&&y-r>=0){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341842/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341842/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 [15 x i8] c"%d %d %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: %W = alloca i32, align 4 %H = alloca i32, align 4 %x = alloca i32, align 4 %y = alloca i32, align 4 %r = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %W) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %r) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %W, ptr noundef nonnull %H, ptr noundef nonnull %x, ptr noundef nonnull %y, ptr noundef nonnull %r) %0 = load i32, ptr %x, align 4, !tbaa !5 %1 = load i32, ptr %r, align 4, !tbaa !5 %add = add nsw i32 %1, %0 %2 = load i32, ptr %W, align 4, !tbaa !5 %cmp.not = icmp sgt i32 %add, %2 br i1 %cmp.not, label %if.else, label %land.lhs.true land.lhs.true: ; preds = %entry %3 = load i32, ptr %y, align 4, !tbaa !5 %add1 = add nsw i32 %3, %1 %4 = load i32, ptr %H, align 4, !tbaa !5 %cmp2.not = icmp sgt i32 %add1, %4 %cmp4.not = icmp slt i32 %0, %1 %or.cond = or i1 %cmp4.not, %cmp2.not %cmp7.not = icmp slt i32 %3, %1 %or.cond11 = or i1 %cmp7.not, %or.cond br i1 %or.cond11, label %if.else, label %if.end if.else: ; preds = %land.lhs.true, %entry br label %if.end if.end: ; preds = %land.lhs.true, %if.else %str.sink = phi ptr [ @str, %if.else ], [ @str.3, %land.lhs.true ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %r) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %W) #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 W,H,x,y,r; scanf("%d %d %d %d %d",&W, &H, &x,&y,&r); if(x-r<0 || x+r>W || y-r<0 || y+r>H)puts("No"); else if(x-r>=0 && x+r<=W && y-r>=0 && y+r<=H)puts("Yes"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341886/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341886/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 [15 x i8] c"%d %d %d %d %d\00", align 1 @.str.1 = private unnamed_addr constant [3 x i8] c"No\00", align 1 @.str.2 = 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: %W = alloca i32, align 4 %H = alloca i32, align 4 %x = alloca i32, align 4 %y = alloca i32, align 4 %r = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %W) #3 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %H) #3 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 void @llvm.lifetime.start.p0(i64 4, ptr nonnull %r) #3 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %W, ptr noundef nonnull %H, ptr noundef nonnull %x, ptr noundef nonnull %y, ptr noundef nonnull %r) %0 = load i32, ptr %x, align 4, !tbaa !5 %1 = load i32, ptr %r, align 4, !tbaa !5 %cmp = icmp slt i32 %0, %1 br i1 %cmp, label %if.end21, label %lor.lhs.false lor.lhs.false: ; preds = %entry %add = add nsw i32 %1, %0 %2 = load i32, ptr %W, align 4, !tbaa !5 %cmp1 = icmp sgt i32 %add, %2 br i1 %cmp1, label %if.end21, label %lor.lhs.false2 lor.lhs.false2: ; preds = %lor.lhs.false %3 = load i32, ptr %y, align 4, !tbaa !5 %cmp4 = icmp slt i32 %3, %1 br i1 %cmp4, label %if.end21, label %lor.lhs.false5 lor.lhs.false5: ; preds = %lor.lhs.false2 %add6 = add nsw i32 %3, %1 %4 = load i32, ptr %H, align 4, !tbaa !5 %cmp7 = icmp sgt i32 %add6, %4 %spec.select = select i1 %cmp7, ptr @.str.1, ptr @.str.2 br label %if.end21 if.end21: ; preds = %lor.lhs.false5, %entry, %lor.lhs.false, %lor.lhs.false2 %.str.2.sink = phi ptr [ @.str.1, %lor.lhs.false2 ], [ @.str.1, %lor.lhs.false ], [ @.str.1, %entry ], [ %spec.select, %lor.lhs.false5 ] %call20 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %.str.2.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %r) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %y) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %H) #3 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %W) #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> #include <stdlib.h> int main() { int W, H; int x, y, r; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); W -= r, H -= r; if (r <= x && x <= W && r <= y && y <= H) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341929/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341929/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 [11 x i8] c"%d%d%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: %W = alloca i32, align 4 %H = alloca i32, align 4 %x = alloca i32, align 4 %y = alloca i32, align 4 %r = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %W) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %r) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %W, ptr noundef nonnull %H, ptr noundef nonnull %x, ptr noundef nonnull %y, ptr noundef nonnull %r) %0 = load i32, ptr %r, align 4, !tbaa !5 %1 = load i32, ptr %W, align 4, !tbaa !5 %sub = sub nsw i32 %1, %0 store i32 %sub, ptr %W, align 4, !tbaa !5 %2 = load i32, ptr %H, align 4, !tbaa !5 %sub1 = sub nsw i32 %2, %0 store i32 %sub1, ptr %H, align 4, !tbaa !5 %3 = load i32, ptr %x, align 4, !tbaa !5 %cmp.not = icmp sgt i32 %0, %3 %cmp2.not = icmp sgt i32 %3, %sub %or.cond = select i1 %cmp.not, i1 true, i1 %cmp2.not br i1 %or.cond, label %if.else, label %land.lhs.true3 land.lhs.true3: ; preds = %entry %4 = load i32, ptr %y, align 4, !tbaa !5 %cmp4.not = icmp sgt i32 %0, %4 %cmp6.not = icmp sgt i32 %4, %sub1 %or.cond12 = select i1 %cmp4.not, i1 true, i1 %cmp6.not br i1 %or.cond12, label %if.else, label %if.end if.else: ; preds = %land.lhs.true3, %entry br label %if.end if.end: ; preds = %land.lhs.true3, %if.else %str.sink = phi ptr [ @str, %if.else ], [ @str.3, %land.lhs.true3 ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %r) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %W) #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 W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x-r>=0 && x+r<=W && y+r<=H && y-r>=0) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341972/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341972/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 [15 x i8] c"%d %d %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: %W = alloca i32, align 4 %H = alloca i32, align 4 %x = alloca i32, align 4 %y = alloca i32, align 4 %r = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %W) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %r) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %W, ptr noundef nonnull %H, ptr noundef nonnull %x, ptr noundef nonnull %y, ptr noundef nonnull %r) %0 = load i32, ptr %x, align 4, !tbaa !5 %1 = load i32, ptr %r, align 4, !tbaa !5 %cmp.not = icmp slt i32 %0, %1 br i1 %cmp.not, label %if.else, label %land.lhs.true land.lhs.true: ; preds = %entry %add = add nsw i32 %1, %0 %2 = load i32, ptr %W, align 4, !tbaa !5 %cmp1.not = icmp sgt i32 %add, %2 br i1 %cmp1.not, label %if.else, label %land.lhs.true2 land.lhs.true2: ; preds = %land.lhs.true %3 = load i32, ptr %y, align 4, !tbaa !5 %add3 = add nsw i32 %3, %1 %4 = load i32, ptr %H, align 4, !tbaa !5 %cmp4.not = icmp sgt i32 %add3, %4 %cmp7.not = icmp slt i32 %3, %1 %or.cond = or i1 %cmp7.not, %cmp4.not br i1 %or.cond, label %if.else, label %if.end if.else: ; preds = %land.lhs.true2, %land.lhs.true, %entry br label %if.end if.end: ; preds = %land.lhs.true2, %if.else %str.sink = phi ptr [ @str, %if.else ], [ @str.3, %land.lhs.true2 ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %r) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %W) #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 W, H, x, y, r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(0<=x-r && x+r<=W && 0<=y-r && y+r<=H) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342014/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342014/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 [15 x i8] c"%d %d %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: %W = alloca i32, align 4 %H = alloca i32, align 4 %x = alloca i32, align 4 %y = alloca i32, align 4 %r = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %W) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %r) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %W, ptr noundef nonnull %H, ptr noundef nonnull %x, ptr noundef nonnull %y, ptr noundef nonnull %r) %0 = load i32, ptr %x, align 4, !tbaa !5 %1 = load i32, ptr %r, align 4, !tbaa !5 %cmp.not = icmp slt i32 %0, %1 br i1 %cmp.not, label %if.else, label %land.lhs.true land.lhs.true: ; preds = %entry %add = add nsw i32 %1, %0 %2 = load i32, ptr %W, align 4, !tbaa !5 %cmp1.not = icmp sgt i32 %add, %2 br i1 %cmp1.not, label %if.else, label %land.lhs.true2 land.lhs.true2: ; preds = %land.lhs.true %3 = load i32, ptr %y, align 4, !tbaa !5 %cmp4.not = icmp slt i32 %3, %1 br i1 %cmp4.not, label %if.else, label %land.lhs.true5 land.lhs.true5: ; preds = %land.lhs.true2 %add6 = add nsw i32 %3, %1 %4 = load i32, ptr %H, align 4, !tbaa !5 %cmp7.not = icmp sgt i32 %add6, %4 br i1 %cmp7.not, label %if.else, label %if.end if.else: ; preds = %land.lhs.true5, %land.lhs.true2, %land.lhs.true, %entry br label %if.end if.end: ; preds = %land.lhs.true5, %if.else %str.sink = phi ptr [ @str, %if.else ], [ @str.3, %land.lhs.true5 ] %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %r) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %W) #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> #include<math.h> #include <stdlib.h> int main(){ int W, H, x, y, r; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if ( r <= x && x <= (W - r)) { if ( r <= y && y <= (H - r) ) printf("Yes\n"); else printf("No\n"); }else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342058/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342058/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 [11 x i8] c"%d%d%d%d%d\00", align 1 @str.3 = private unnamed_addr constant [3 x i8] c"No\00", align 1 @str.4 = 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: %W = alloca i32, align 4 %H = alloca i32, align 4 %x = alloca i32, align 4 %y = alloca i32, align 4 %r = alloca i32, align 4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %W) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %r) #4 %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %W, ptr noundef nonnull %H, ptr noundef nonnull %x, ptr noundef nonnull %y, ptr noundef nonnull %r) %0 = load i32, ptr %r, align 4, !tbaa !5 %1 = load i32, ptr %x, align 4, !tbaa !5 %cmp.not = icmp sgt i32 %0, %1 br i1 %cmp.not, label %if.end11, label %land.lhs.true land.lhs.true: ; preds = %entry %2 = load i32, ptr %W, align 4, !tbaa !5 %sub = sub nsw i32 %2, %0 %cmp1.not = icmp sgt i32 %1, %sub br i1 %cmp1.not, label %if.end11, label %if.then if.then: ; preds = %land.lhs.true %3 = load i32, ptr %y, align 4, !tbaa !5 %cmp2.not = icmp sgt i32 %0, %3 br i1 %cmp2.not, label %if.else, label %land.lhs.true3 land.lhs.true3: ; preds = %if.then %4 = load i32, ptr %H, align 4, !tbaa !5 %sub4 = sub nsw i32 %4, %0 %cmp5.not = icmp sgt i32 %3, %sub4 br i1 %cmp5.not, label %if.else, label %if.end11 if.else: ; preds = %land.lhs.true3, %if.then br label %if.end11 if.end11: ; preds = %entry, %land.lhs.true, %land.lhs.true3, %if.else %str.4.sink = phi ptr [ @str.3, %if.else ], [ @str.4, %land.lhs.true3 ], [ @str.3, %land.lhs.true ], [ @str.3, %entry ] %puts15 = call i32 @puts(ptr nonnull dereferenceable(1) %str.4.sink) call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %r) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %y) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %x) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %H) #4 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %W) #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"}