; LLVM IR from krig/LISP :: komplott (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"

@TQUOTE = external dso_local global ptr, align 8
@TLAMBDA = external dso_local global ptr, align 8
@TCOND = external dso_local global ptr, align 8
@TDEFINE = external dso_local global ptr, align 8
@token_peek = external dso_local global i32, align 4
@atom_t = external dso_local global ptr, align 8
@token_text = external dso_local global [256 x i8], align 16
@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1
@stdin = external global ptr, align 8
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [2 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @intern_string(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @new_atom(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @new_cons(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @gc_protect(ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @lisp_read(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @env_set(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @lisp_eval(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @lisp_print(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @builtin_car(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @builtin_cdr(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @builtin_cons(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @builtin_equal(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @builtin_pair(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @builtin_null(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @builtin_sum(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @builtin_sub(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @builtin_mul(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @builtin_display(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @builtin_newline(ptr noundef) #1

declare i32 @puts(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @builtin_read(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @defun(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @gc_init() #1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @gc_init()
  %10 = call ptr @intern_string(ptr noundef @.str.12)
  store ptr %10, ptr @TQUOTE, align 8, !tbaa !9
  %11 = call ptr @intern_string(ptr noundef @.str.13)
  store ptr %11, ptr @TLAMBDA, align 8, !tbaa !9
  %12 = call ptr @intern_string(ptr noundef @.str.14)
  store ptr %12, ptr @TCOND, align 8, !tbaa !9
  %13 = call ptr @intern_string(ptr noundef @.str.15)
  store ptr %13, ptr @TDEFINE, align 8, !tbaa !9
  call void @llvm.memset.p0.i64(ptr align 16 @token_text, i8 0, i64 256, i1 false)
  store i32 32, ptr @token_peek, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store ptr null, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store ptr null, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store ptr null, ptr %8, align 8, !tbaa !9
  call void (ptr, ...) @gc_protect(ptr noundef %6, ptr noundef @atom_t, ptr noundef %7, ptr noundef %8, ptr noundef null)
  %14 = call ptr @new_cons(ptr noundef null, ptr noundef null)
  store ptr %14, ptr %6, align 8, !tbaa !9
  %15 = call ptr @new_atom(ptr noundef @.str.16)
  store ptr %15, ptr @atom_t, align 8, !tbaa !9
  %16 = call ptr @new_atom(ptr noundef @.str.17)
  store ptr %16, ptr %7, align 8, !tbaa !9
  %17 = load ptr, ptr %6, align 8, !tbaa !9
  %18 = load ptr, ptr @atom_t, align 8, !tbaa !9
  %19 = load ptr, ptr @atom_t, align 8, !tbaa !9
  %20 = call ptr @env_set(ptr noundef %17, ptr noundef %18, ptr noundef %19)
  %21 = load ptr, ptr %6, align 8, !tbaa !9
  %22 = load ptr, ptr %7, align 8, !tbaa !9
  %23 = call ptr @env_set(ptr noundef %21, ptr noundef %22, ptr noundef null)
  %24 = load ptr, ptr %6, align 8, !tbaa !9
  call void @defun(ptr noundef %24, ptr noundef @.str.18, ptr noundef @builtin_car)
  %25 = load ptr, ptr %6, align 8, !tbaa !9
  call void @defun(ptr noundef %25, ptr noundef @.str.19, ptr noundef @builtin_cdr)
  %26 = load ptr, ptr %6, align 8, !tbaa !9
  call void @defun(ptr noundef %26, ptr noundef @.str.20, ptr noundef @builtin_cons)
  %27 = load ptr, ptr %6, align 8, !tbaa !9
  call void @defun(ptr noundef %27, ptr noundef @.str.21, ptr noundef @builtin_equal)
  %28 = load ptr, ptr %6, align 8, !tbaa !9
  call void @defun(ptr noundef %28, ptr noundef @.str.22, ptr noundef @builtin_pair)
  %29 = load ptr, ptr %6, align 8, !tbaa !9
  call void @defun(ptr noundef %29, ptr noundef @.str.23, ptr noundef @builtin_null)
  %30 = load ptr, ptr %6, align 8, !tbaa !9
  call void @defun(ptr noundef %30, ptr noundef @.str.24, ptr noundef @builtin_sum)
  %31 = load ptr, ptr %6, align 8, !tbaa !9
  call void @defun(ptr noundef %31, ptr noundef @.str.25, ptr noundef @builtin_sub)
  %32 = load ptr, ptr %6, align 8, !tbaa !9
  call void @defun(ptr noundef %32, ptr noundef @.str.26, ptr noundef @builtin_mul)
  %33 = load ptr, ptr %6, align 8, !tbaa !9
  call void @defun(ptr noundef %33, ptr noundef @.str.27, ptr noundef @builtin_display)
  %34 = load ptr, ptr %6, align 8, !tbaa !9
  call void @defun(ptr noundef %34, ptr noundef @.str.28, ptr noundef @builtin_newline)
  %35 = load ptr, ptr %6, align 8, !tbaa !9
  call void @defun(ptr noundef %35, ptr noundef @.str.29, ptr noundef @builtin_read)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = icmp sgt i32 %36, 1
  br i1 %37, label %38, label %43

38:                                               ; preds = %2
  %39 = load ptr, ptr %5, align 8, !tbaa !9
  %40 = getelementptr inbounds ptr, ptr %39, i64 1
  %41 = load ptr, ptr %40, align 8, !tbaa !9
  %42 = call noalias ptr @fopen(ptr noundef %41, ptr noundef @.str.30)
  br label %45

43:                                               ; preds = %2
  %44 = load ptr, ptr @stdin, align 8, !tbaa !9
  br label %45

45:                                               ; preds = %43, %38
  %46 = phi ptr [ %42, %38 ], [ %44, %43 ]
  store ptr %46, ptr %9, align 8, !tbaa !9
  br label %47

47:                                               ; preds = %59, %45
  %48 = load ptr, ptr %9, align 8, !tbaa !9
  %49 = call ptr @lisp_read(ptr noundef %48)
  store ptr %49, ptr %8, align 8, !tbaa !9
  %50 = load ptr, ptr %8, align 8, !tbaa !9
  %51 = load ptr, ptr %6, align 8, !tbaa !9
  %52 = call ptr @lisp_eval(ptr noundef %50, ptr noundef %51)
  store ptr %52, ptr %8, align 8, !tbaa !9
  %53 = load ptr, ptr %9, align 8, !tbaa !9
  %54 = load ptr, ptr @stdin, align 8, !tbaa !9
  %55 = icmp eq ptr %53, %54
  br i1 %55, label %56, label %59

56:                                               ; preds = %47
  %57 = load ptr, ptr %8, align 8, !tbaa !9
  call void @lisp_print(ptr noundef %57)
  %58 = call i32 @puts(ptr noundef @.str.2)
  br label %59

59:                                               ; preds = %56, %47
  br label %47
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}


; 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"

@TQUOTE = external dso_local local_unnamed_addr global ptr, align 8
@TLAMBDA = external dso_local local_unnamed_addr global ptr, align 8
@TCOND = external dso_local local_unnamed_addr global ptr, align 8
@TDEFINE = external dso_local local_unnamed_addr global ptr, align 8
@token_peek = external dso_local local_unnamed_addr global i32, align 4
@atom_t = external dso_local global ptr, align 8
@token_text = external dso_local local_unnamed_addr global [256 x i8], align 16
@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [2 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @intern_string(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @new_atom(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @new_cons(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @gc_protect(ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @lisp_read(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @env_set(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @lisp_eval(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @lisp_print(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @builtin_car(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @builtin_cdr(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @builtin_cons(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @builtin_equal(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @builtin_pair(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @builtin_null(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @builtin_sum(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @builtin_sub(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @builtin_mul(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @builtin_display(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @builtin_newline(ptr noundef) #1

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @builtin_read(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @defun(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @gc_init() local_unnamed_addr #1

; Function Attrs: noreturn nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  tail call void @gc_init()
  %6 = tail call ptr @intern_string(ptr noundef nonnull @.str.12)
  store ptr %6, ptr @TQUOTE, align 8, !tbaa !5
  %7 = tail call ptr @intern_string(ptr noundef nonnull @.str.13)
  store ptr %7, ptr @TLAMBDA, align 8, !tbaa !5
  %8 = tail call ptr @intern_string(ptr noundef nonnull @.str.14)
  store ptr %8, ptr @TCOND, align 8, !tbaa !5
  %9 = tail call ptr @intern_string(ptr noundef nonnull @.str.15)
  store ptr %9, ptr @TDEFINE, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(256) @token_text, i8 0, i64 256, i1 false)
  store i32 32, ptr @token_peek, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  store ptr null, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  store ptr null, ptr %5, align 8, !tbaa !5
  call void (ptr, ...) @gc_protect(ptr noundef nonnull %3, ptr noundef nonnull @atom_t, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef null)
  %10 = call ptr @new_cons(ptr noundef null, ptr noundef null)
  store ptr %10, ptr %3, align 8, !tbaa !5
  %11 = call ptr @new_atom(ptr noundef nonnull @.str.16)
  store ptr %11, ptr @atom_t, align 8, !tbaa !5
  %12 = call ptr @new_atom(ptr noundef nonnull @.str.17)
  store ptr %12, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = load ptr, ptr @atom_t, align 8, !tbaa !5
  %15 = call ptr @env_set(ptr noundef %13, ptr noundef %14, ptr noundef %14)
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = call ptr @env_set(ptr noundef %16, ptr noundef %17, ptr noundef null)
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  call void @defun(ptr noundef %19, ptr noundef nonnull @.str.18, ptr noundef nonnull @builtin_car)
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  call void @defun(ptr noundef %20, ptr noundef nonnull @.str.19, ptr noundef nonnull @builtin_cdr)
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  call void @defun(ptr noundef %21, ptr noundef nonnull @.str.20, ptr noundef nonnull @builtin_cons)
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  call void @defun(ptr noundef %22, ptr noundef nonnull @.str.21, ptr noundef nonnull @builtin_equal)
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  call void @defun(ptr noundef %23, ptr noundef nonnull @.str.22, ptr noundef nonnull @builtin_pair)
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  call void @defun(ptr noundef %24, ptr noundef nonnull @.str.23, ptr noundef nonnull @builtin_null)
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  call void @defun(ptr noundef %25, ptr noundef nonnull @.str.24, ptr noundef nonnull @builtin_sum)
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  call void @defun(ptr noundef %26, ptr noundef nonnull @.str.25, ptr noundef nonnull @builtin_sub)
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  call void @defun(ptr noundef %27, ptr noundef nonnull @.str.26, ptr noundef nonnull @builtin_mul)
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  call void @defun(ptr noundef %28, ptr noundef nonnull @.str.27, ptr noundef nonnull @builtin_display)
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  call void @defun(ptr noundef %29, ptr noundef nonnull @.str.28, ptr noundef nonnull @builtin_newline)
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  call void @defun(ptr noundef %30, ptr noundef nonnull @.str.29, ptr noundef nonnull @builtin_read)
  %31 = icmp sgt i32 %0, 1
  br i1 %31, label %32, label %36

32:                                               ; preds = %2
  %33 = getelementptr inbounds i8, ptr %1, i64 8
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %35 = call noalias ptr @fopen(ptr noundef %34, ptr noundef nonnull @.str.30)
  br label %38

36:                                               ; preds = %2
  %37 = load ptr, ptr @stdin, align 8, !tbaa !5
  br label %38

38:                                               ; preds = %36, %32
  %39 = phi ptr [ %35, %32 ], [ %37, %36 ]
  br label %40

40:                                               ; preds = %.backedge, %38
  %41 = call ptr @lisp_read(ptr noundef %39)
  store ptr %41, ptr %5, align 8, !tbaa !5
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = call ptr @lisp_eval(ptr noundef %41, ptr noundef %42)
  store ptr %43, ptr %5, align 8, !tbaa !5
  %44 = load ptr, ptr @stdin, align 8, !tbaa !5
  %45 = icmp eq ptr %39, %44
  br i1 %45, label %46, label %.backedge

46:                                               ; preds = %40
  call void @lisp_print(ptr noundef %43)
  %47 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %.backedge

.backedge:                                        ; preds = %46, %40
  br label %40
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { noreturn nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass