; LLVM IR from dhuertas/AES :: main (main)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@__const.main.key = external hidden unnamed_addr constant [32 x i8], align 16
@__const.main.in = external hidden unnamed_addr constant [16 x i8], align 16
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [38 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i8, align 1
  %3 = alloca [32 x i8], align 16
  %4 = alloca [16 x i8], align 16
  %5 = alloca [16 x i8], align 16
  %6 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 1, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.key, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.in, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %7 = call ptr @aes_init(i64 noundef 32)
  store ptr %7, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
  %9 = load ptr, ptr %6, align 8, !tbaa !5
  call void @aes_key_expansion(ptr noundef %8, ptr noundef %9)
  %10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  store i8 0, ptr %2, align 1, !tbaa !9
  br label %11

11:                                               ; preds = %49, %0
  %12 = load i8, ptr %2, align 1, !tbaa !9
  %13 = zext i8 %12 to i32
  %14 = icmp slt i32 %13, 4
  br i1 %14, label %15, label %52

15:                                               ; preds = %11
  %16 = load i8, ptr %2, align 1, !tbaa !9
  %17 = zext i8 %16 to i32
  %18 = mul nsw i32 4, %17
  %19 = add nsw i32 %18, 0
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [16 x i8], ptr %4, i64 0, i64 %20
  %22 = load i8, ptr %21, align 1, !tbaa !9
  %23 = zext i8 %22 to i32
  %24 = load i8, ptr %2, align 1, !tbaa !9
  %25 = zext i8 %24 to i32
  %26 = mul nsw i32 4, %25
  %27 = add nsw i32 %26, 1
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [16 x i8], ptr %4, i64 0, i64 %28
  %30 = load i8, ptr %29, align 1, !tbaa !9
  %31 = zext i8 %30 to i32
  %32 = load i8, ptr %2, align 1, !tbaa !9
  %33 = zext i8 %32 to i32
  %34 = mul nsw i32 4, %33
  %35 = add nsw i32 %34, 2
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [16 x i8], ptr %4, i64 0, i64 %36
  %38 = load i8, ptr %37, align 1, !tbaa !9
  %39 = zext i8 %38 to i32
  %40 = load i8, ptr %2, align 1, !tbaa !9
  %41 = zext i8 %40 to i32
  %42 = mul nsw i32 4, %41
  %43 = add nsw i32 %42, 3
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [16 x i8], ptr %4, i64 0, i64 %44
  %46 = load i8, ptr %45, align 1, !tbaa !9
  %47 = zext i8 %46 to i32
  %48 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %23, i32 noundef %31, i32 noundef %39, i32 noundef %47)
  br label %49

49:                                               ; preds = %15
  %50 = load i8, ptr %2, align 1, !tbaa !9
  %51 = add i8 %50, 1
  store i8 %51, ptr %2, align 1, !tbaa !9
  br label %11, !llvm.loop !10

52:                                               ; preds = %11
  %53 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %54 = getelementptr inbounds [16 x i8], ptr %4, i64 0, i64 0
  %55 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  call void @aes_cipher(ptr noundef %54, ptr noundef %55, ptr noundef %56)
  %57 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  store i8 0, ptr %2, align 1, !tbaa !9
  br label %58

58:                                               ; preds = %96, %52
  %59 = load i8, ptr %2, align 1, !tbaa !9
  %60 = zext i8 %59 to i32
  %61 = icmp slt i32 %60, 4
  br i1 %61, label %62, label %99

62:                                               ; preds = %58
  %63 = load i8, ptr %2, align 1, !tbaa !9
  %64 = zext i8 %63 to i32
  %65 = mul nsw i32 4, %64
  %66 = add nsw i32 %65, 0
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 %67
  %69 = load i8, ptr %68, align 1, !tbaa !9
  %70 = zext i8 %69 to i32
  %71 = load i8, ptr %2, align 1, !tbaa !9
  %72 = zext i8 %71 to i32
  %73 = mul nsw i32 4, %72
  %74 = add nsw i32 %73, 1
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 %75
  %77 = load i8, ptr %76, align 1, !tbaa !9
  %78 = zext i8 %77 to i32
  %79 = load i8, ptr %2, align 1, !tbaa !9
  %80 = zext i8 %79 to i32
  %81 = mul nsw i32 4, %80
  %82 = add nsw i32 %81, 2
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 %83
  %85 = load i8, ptr %84, align 1, !tbaa !9
  %86 = zext i8 %85 to i32
  %87 = load i8, ptr %2, align 1, !tbaa !9
  %88 = zext i8 %87 to i32
  %89 = mul nsw i32 4, %88
  %90 = add nsw i32 %89, 3
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 %91
  %93 = load i8, ptr %92, align 1, !tbaa !9
  %94 = zext i8 %93 to i32
  %95 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %70, i32 noundef %78, i32 noundef %86, i32 noundef %94)
  br label %96

96:                                               ; preds = %62
  %97 = load i8, ptr %2, align 1, !tbaa !9
  %98 = add i8 %97, 1
  store i8 %98, ptr %2, align 1, !tbaa !9
  br label %58, !llvm.loop !12

99:                                               ; preds = %58
  %100 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %101 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
  %102 = getelementptr inbounds [16 x i8], ptr %4, i64 0, i64 0
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  call void @aes_inv_cipher(ptr noundef %101, ptr noundef %102, ptr noundef %103)
  %104 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i8 0, ptr %2, align 1, !tbaa !9
  br label %105

105:                                              ; preds = %143, %99
  %106 = load i8, ptr %2, align 1, !tbaa !9
  %107 = zext i8 %106 to i32
  %108 = icmp slt i32 %107, 4
  br i1 %108, label %109, label %146

109:                                              ; preds = %105
  %110 = load i8, ptr %2, align 1, !tbaa !9
  %111 = zext i8 %110 to i32
  %112 = mul nsw i32 4, %111
  %113 = add nsw i32 %112, 0
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [16 x i8], ptr %4, i64 0, i64 %114
  %116 = load i8, ptr %115, align 1, !tbaa !9
  %117 = zext i8 %116 to i32
  %118 = load i8, ptr %2, align 1, !tbaa !9
  %119 = zext i8 %118 to i32
  %120 = mul nsw i32 4, %119
  %121 = add nsw i32 %120, 1
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [16 x i8], ptr %4, i64 0, i64 %122
  %124 = load i8, ptr %123, align 1, !tbaa !9
  %125 = zext i8 %124 to i32
  %126 = load i8, ptr %2, align 1, !tbaa !9
  %127 = zext i8 %126 to i32
  %128 = mul nsw i32 4, %127
  %129 = add nsw i32 %128, 2
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [16 x i8], ptr %4, i64 0, i64 %130
  %132 = load i8, ptr %131, align 1, !tbaa !9
  %133 = zext i8 %132 to i32
  %134 = load i8, ptr %2, align 1, !tbaa !9
  %135 = zext i8 %134 to i32
  %136 = mul nsw i32 4, %135
  %137 = add nsw i32 %136, 3
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [16 x i8], ptr %4, i64 0, i64 %138
  %140 = load i8, ptr %139, align 1, !tbaa !9
  %141 = zext i8 %140 to i32
  %142 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %117, i32 noundef %125, i32 noundef %133, i32 noundef %141)
  br label %143

143:                                              ; preds = %109
  %144 = load i8, ptr %2, align 1, !tbaa !9
  %145 = add i8 %144, 1
  store i8 %145, ptr %2, align 1, !tbaa !9
  br label %105, !llvm.loop !13

146:                                              ; preds = %105
  %147 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %148) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %2) #5
  ret i32 0
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

declare ptr @aes_init(i64 noundef) #3

declare void @aes_key_expansion(ptr noundef, ptr noundef) #3

declare i32 @printf(ptr noundef, ...) #3

declare void @aes_cipher(ptr noundef, ptr noundef, ptr noundef) #3

declare void @aes_inv_cipher(ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-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 "no-trapping-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 = { 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 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !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}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@__const.main.key = external hidden unnamed_addr constant [32 x i8], align 16
@__const.main.in = external hidden unnamed_addr constant [16 x i8], align 16
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [38 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [32 x i8], align 16
  %2 = alloca [16 x i8], align 16
  %3 = alloca [16 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %1, ptr noundef nonnull align 16 dereferenceable(32) @__const.main.key, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %2, ptr noundef nonnull align 16 dereferenceable(16) @__const.main.in, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  %4 = tail call ptr @aes_init(i64 noundef 32) #6
  call void @aes_key_expansion(ptr noundef nonnull %1, ptr noundef %4) #6
  %5 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %6 = load i8, ptr %2, align 16, !tbaa !5
  %7 = zext i8 %6 to i32
  %8 = getelementptr inbounds i8, ptr %2, i64 1
  %9 = load i8, ptr %8, align 1, !tbaa !5
  %10 = zext i8 %9 to i32
  %11 = getelementptr inbounds i8, ptr %2, i64 2
  %12 = load i8, ptr %11, align 2, !tbaa !5
  %13 = zext i8 %12 to i32
  %14 = getelementptr inbounds i8, ptr %2, i64 3
  %15 = load i8, ptr %14, align 1, !tbaa !5
  %16 = zext i8 %15 to i32
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %7, i32 noundef %10, i32 noundef %13, i32 noundef %16)
  %18 = getelementptr inbounds i8, ptr %2, i64 4
  %19 = load i8, ptr %18, align 4, !tbaa !5
  %20 = zext i8 %19 to i32
  %21 = getelementptr inbounds i8, ptr %2, i64 5
  %22 = load i8, ptr %21, align 1, !tbaa !5
  %23 = zext i8 %22 to i32
  %24 = getelementptr inbounds i8, ptr %2, i64 6
  %25 = load i8, ptr %24, align 2, !tbaa !5
  %26 = zext i8 %25 to i32
  %27 = getelementptr inbounds i8, ptr %2, i64 7
  %28 = load i8, ptr %27, align 1, !tbaa !5
  %29 = zext i8 %28 to i32
  %30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %20, i32 noundef %23, i32 noundef %26, i32 noundef %29)
  %31 = getelementptr inbounds i8, ptr %2, i64 8
  %32 = load i8, ptr %31, align 8, !tbaa !5
  %33 = zext i8 %32 to i32
  %34 = getelementptr inbounds i8, ptr %2, i64 9
  %35 = load i8, ptr %34, align 1, !tbaa !5
  %36 = zext i8 %35 to i32
  %37 = getelementptr inbounds i8, ptr %2, i64 10
  %38 = load i8, ptr %37, align 2, !tbaa !5
  %39 = zext i8 %38 to i32
  %40 = getelementptr inbounds i8, ptr %2, i64 11
  %41 = load i8, ptr %40, align 1, !tbaa !5
  %42 = zext i8 %41 to i32
  %43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %33, i32 noundef %36, i32 noundef %39, i32 noundef %42)
  %44 = getelementptr inbounds i8, ptr %2, i64 12
  %45 = load i8, ptr %44, align 4, !tbaa !5
  %46 = zext i8 %45 to i32
  %47 = getelementptr inbounds i8, ptr %2, i64 13
  %48 = load i8, ptr %47, align 1, !tbaa !5
  %49 = zext i8 %48 to i32
  %50 = getelementptr inbounds i8, ptr %2, i64 14
  %51 = load i8, ptr %50, align 2, !tbaa !5
  %52 = zext i8 %51 to i32
  %53 = getelementptr inbounds i8, ptr %2, i64 15
  %54 = load i8, ptr %53, align 1, !tbaa !5
  %55 = zext i8 %54 to i32
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %46, i32 noundef %49, i32 noundef %52, i32 noundef %55)
  %57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  call void @aes_cipher(ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %4) #6
  %58 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %59 = load i8, ptr %3, align 16, !tbaa !5
  %60 = zext i8 %59 to i32
  %61 = getelementptr inbounds i8, ptr %3, i64 1
  %62 = load i8, ptr %61, align 1, !tbaa !5
  %63 = zext i8 %62 to i32
  %64 = getelementptr inbounds i8, ptr %3, i64 2
  %65 = load i8, ptr %64, align 2, !tbaa !5
  %66 = zext i8 %65 to i32
  %67 = getelementptr inbounds i8, ptr %3, i64 3
  %68 = load i8, ptr %67, align 1, !tbaa !5
  %69 = zext i8 %68 to i32
  %70 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %60, i32 noundef %63, i32 noundef %66, i32 noundef %69)
  %71 = getelementptr inbounds i8, ptr %3, i64 4
  %72 = load i8, ptr %71, align 4, !tbaa !5
  %73 = zext i8 %72 to i32
  %74 = getelementptr inbounds i8, ptr %3, i64 5
  %75 = load i8, ptr %74, align 1, !tbaa !5
  %76 = zext i8 %75 to i32
  %77 = getelementptr inbounds i8, ptr %3, i64 6
  %78 = load i8, ptr %77, align 2, !tbaa !5
  %79 = zext i8 %78 to i32
  %80 = getelementptr inbounds i8, ptr %3, i64 7
  %81 = load i8, ptr %80, align 1, !tbaa !5
  %82 = zext i8 %81 to i32
  %83 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %73, i32 noundef %76, i32 noundef %79, i32 noundef %82)
  %84 = getelementptr inbounds i8, ptr %3, i64 8
  %85 = load i8, ptr %84, align 8, !tbaa !5
  %86 = zext i8 %85 to i32
  %87 = getelementptr inbounds i8, ptr %3, i64 9
  %88 = load i8, ptr %87, align 1, !tbaa !5
  %89 = zext i8 %88 to i32
  %90 = getelementptr inbounds i8, ptr %3, i64 10
  %91 = load i8, ptr %90, align 2, !tbaa !5
  %92 = zext i8 %91 to i32
  %93 = getelementptr inbounds i8, ptr %3, i64 11
  %94 = load i8, ptr %93, align 1, !tbaa !5
  %95 = zext i8 %94 to i32
  %96 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %86, i32 noundef %89, i32 noundef %92, i32 noundef %95)
  %97 = getelementptr inbounds i8, ptr %3, i64 12
  %98 = load i8, ptr %97, align 4, !tbaa !5
  %99 = zext i8 %98 to i32
  %100 = getelementptr inbounds i8, ptr %3, i64 13
  %101 = load i8, ptr %100, align 1, !tbaa !5
  %102 = zext i8 %101 to i32
  %103 = getelementptr inbounds i8, ptr %3, i64 14
  %104 = load i8, ptr %103, align 2, !tbaa !5
  %105 = zext i8 %104 to i32
  %106 = getelementptr inbounds i8, ptr %3, i64 15
  %107 = load i8, ptr %106, align 1, !tbaa !5
  %108 = zext i8 %107 to i32
  %109 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %99, i32 noundef %102, i32 noundef %105, i32 noundef %108)
  %110 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  call void @aes_inv_cipher(ptr noundef nonnull %3, ptr noundef nonnull %2, ptr noundef %4) #6
  %111 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %112 = load i8, ptr %2, align 16, !tbaa !5
  %113 = zext i8 %112 to i32
  %114 = load i8, ptr %8, align 1, !tbaa !5
  %115 = zext i8 %114 to i32
  %116 = load i8, ptr %11, align 2, !tbaa !5
  %117 = zext i8 %116 to i32
  %118 = load i8, ptr %14, align 1, !tbaa !5
  %119 = zext i8 %118 to i32
  %120 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %113, i32 noundef %115, i32 noundef %117, i32 noundef %119)
  %121 = load i8, ptr %18, align 4, !tbaa !5
  %122 = zext i8 %121 to i32
  %123 = load i8, ptr %21, align 1, !tbaa !5
  %124 = zext i8 %123 to i32
  %125 = load i8, ptr %24, align 2, !tbaa !5
  %126 = zext i8 %125 to i32
  %127 = load i8, ptr %27, align 1, !tbaa !5
  %128 = zext i8 %127 to i32
  %129 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %122, i32 noundef %124, i32 noundef %126, i32 noundef %128)
  %130 = load i8, ptr %31, align 8, !tbaa !5
  %131 = zext i8 %130 to i32
  %132 = load i8, ptr %34, align 1, !tbaa !5
  %133 = zext i8 %132 to i32
  %134 = load i8, ptr %37, align 2, !tbaa !5
  %135 = zext i8 %134 to i32
  %136 = load i8, ptr %40, align 1, !tbaa !5
  %137 = zext i8 %136 to i32
  %138 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %131, i32 noundef %133, i32 noundef %135, i32 noundef %137)
  %139 = load i8, ptr %44, align 4, !tbaa !5
  %140 = zext i8 %139 to i32
  %141 = load i8, ptr %47, align 1, !tbaa !5
  %142 = zext i8 %141 to i32
  %143 = load i8, ptr %50, align 2, !tbaa !5
  %144 = zext i8 %143 to i32
  %145 = load i8, ptr %53, align 1, !tbaa !5
  %146 = zext i8 %145 to i32
  %147 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %140, i32 noundef %142, i32 noundef %144, i32 noundef %146)
  %148 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  call void @free(ptr noundef %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #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: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

declare ptr @aes_init(i64 noundef) local_unnamed_addr #3

declare void @aes_key_expansion(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

declare void @aes_cipher(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @aes_inv_cipher(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

attributes #0 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, 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 #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 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass