program ABC051C
    implicit none
    integer(8)::i,sx,sy,tx,ty
    read(5,*)sx,sy,tx,ty
    do i=1,tx-sx
        write(*,fmt='(A)',advance='no')"R"
    end do

    do i=1,ty-sy
        write(*,fmt='(A)',advance='no')"U"
    end do

    do i=1,tx-sx
        write(*,fmt='(A)',advance='no')"L"
    end do

    do i=1,ty-sy+1
        write(*,fmt='(A)',advance='no')"D"
    end do

    do i=1,tx-sx+1
        write(*,fmt='(A)',advance='no')"R"
    end do

    do i=1,ty-sy+1
        write(*,fmt='(A)',advance='no')"U"
    end do

    write(*,fmt='(A)',advance='no')"L"
    write(*,fmt='(A)',advance='no')"U"

    do i=1,tx-sx+1
        write(*,fmt='(A)',advance='no')"L"
    end do

    do i=1,ty-sy+1
        write(*,fmt='(A)',advance='no')"D"
    end do

    print'(A)',"R"
end program ABC051C
; ModuleID = 'FIRModule'
source_filename = "FIRModule"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"

@_QQcl.a042148a1daa7eecb4d42ee2c0451a72 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_7609/source.f\00"
@_QQcl.284129 = linkonce constant [3 x i8] c"(A)"
@_QQcl.6E6F = linkonce constant [2 x i8] c"no"
@_QQcl.52 = linkonce constant [1 x i8] c"R"
@_QQcl.55 = linkonce constant [1 x i8] c"U"
@_QQcl.4C = linkonce constant [1 x i8] c"L"
@_QQcl.44 = linkonce constant [1 x i8] c"D"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = tail call ptr @_FortranAioBeginExternalListInput(i32 5, ptr nonnull @_QQcl.a042148a1daa7eecb4d42ee2c0451a72, i32 4)
  %6 = call i1 @_FortranAioInputInteger(ptr %5, ptr nonnull %1, i32 8)
  %7 = call i1 @_FortranAioInputInteger(ptr %5, ptr nonnull %2, i32 8)
  %8 = call i1 @_FortranAioInputInteger(ptr %5, ptr nonnull %3, i32 8)
  %9 = call i1 @_FortranAioInputInteger(ptr %5, ptr nonnull %4, i32 8)
  %10 = call i32 @_FortranAioEndIoStatement(ptr %5)
  %11 = load i64, ptr %3, align 8, !tbaa !3
  %12 = load i64, ptr %1, align 8, !tbaa !3
  %13 = sub i64 %11, %12
  %14 = icmp sgt i64 %13, 0
  br i1 %14, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %0, %.lr.ph
  %15 = phi i64 [ %20, %.lr.ph ], [ %13, %0 ]
  %16 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.a042148a1daa7eecb4d42ee2c0451a72, i32 6)
  %17 = call i1 @_FortranAioSetAdvance(ptr %16, ptr nonnull @_QQcl.6E6F, i64 2)
  %18 = call i1 @_FortranAioOutputAscii(ptr %16, ptr nonnull @_QQcl.52, i64 1)
  %19 = call i32 @_FortranAioEndIoStatement(ptr %16)
  %20 = add nsw i64 %15, -1
  %21 = icmp ugt i64 %15, 1
  br i1 %21, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  %22 = load i64, ptr %4, align 8, !tbaa !3
  %23 = load i64, ptr %2, align 8, !tbaa !3
  %24 = sub i64 %22, %23
  %25 = icmp sgt i64 %24, 0
  br i1 %25, label %.lr.ph20, label %._crit_edge21

.lr.ph20:                                         ; preds = %._crit_edge, %.lr.ph20
  %26 = phi i64 [ %31, %.lr.ph20 ], [ %24, %._crit_edge ]
  %27 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.a042148a1daa7eecb4d42ee2c0451a72, i32 10)
  %28 = call i1 @_FortranAioSetAdvance(ptr %27, ptr nonnull @_QQcl.6E6F, i64 2)
  %29 = call i1 @_FortranAioOutputAscii(ptr %27, ptr nonnull @_QQcl.55, i64 1)
  %30 = call i32 @_FortranAioEndIoStatement(ptr %27)
  %31 = add nsw i64 %26, -1
  %32 = icmp ugt i64 %26, 1
  br i1 %32, label %.lr.ph20, label %._crit_edge21

._crit_edge21:                                    ; preds = %.lr.ph20, %._crit_edge
  %33 = load i64, ptr %3, align 8, !tbaa !3
  %34 = load i64, ptr %1, align 8, !tbaa !3
  %35 = sub i64 %33, %34
  %36 = icmp sgt i64 %35, 0
  br i1 %36, label %.lr.ph23, label %._crit_edge24

.lr.ph23:                                         ; preds = %._crit_edge21, %.lr.ph23
  %37 = phi i64 [ %42, %.lr.ph23 ], [ %35, %._crit_edge21 ]
  %38 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.a042148a1daa7eecb4d42ee2c0451a72, i32 14)
  %39 = call i1 @_FortranAioSetAdvance(ptr %38, ptr nonnull @_QQcl.6E6F, i64 2)
  %40 = call i1 @_FortranAioOutputAscii(ptr %38, ptr nonnull @_QQcl.4C, i64 1)
  %41 = call i32 @_FortranAioEndIoStatement(ptr %38)
  %42 = add nsw i64 %37, -1
  %43 = icmp ugt i64 %37, 1
  br i1 %43, label %.lr.ph23, label %._crit_edge24

._crit_edge24:                                    ; preds = %.lr.ph23, %._crit_edge21
  %44 = load i64, ptr %4, align 8, !tbaa !3
  %45 = load i64, ptr %2, align 8, !tbaa !3
  %46 = add i64 %44, 1
  %47 = sub i64 %46, %45
  %48 = icmp sgt i64 %47, 0
  br i1 %48, label %.lr.ph26, label %._crit_edge27

.lr.ph26:                                         ; preds = %._crit_edge24, %.lr.ph26
  %49 = phi i64 [ %54, %.lr.ph26 ], [ %47, %._crit_edge24 ]
  %50 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.a042148a1daa7eecb4d42ee2c0451a72, i32 18)
  %51 = call i1 @_FortranAioSetAdvance(ptr %50, ptr nonnull @_QQcl.6E6F, i64 2)
  %52 = call i1 @_FortranAioOutputAscii(ptr %50, ptr nonnull @_QQcl.44, i64 1)
  %53 = call i32 @_FortranAioEndIoStatement(ptr %50)
  %54 = add nsw i64 %49, -1
  %55 = icmp ugt i64 %49, 1
  br i1 %55, label %.lr.ph26, label %._crit_edge27

._crit_edge27:                                    ; preds = %.lr.ph26, %._crit_edge24
  %56 = load i64, ptr %3, align 8, !tbaa !3
  %57 = load i64, ptr %1, align 8, !tbaa !3
  %58 = add i64 %56, 1
  %59 = sub i64 %58, %57
  %60 = icmp sgt i64 %59, 0
  br i1 %60, label %.lr.ph29, label %._crit_edge30

.lr.ph29:                                         ; preds = %._crit_edge27, %.lr.ph29
  %61 = phi i64 [ %66, %.lr.ph29 ], [ %59, %._crit_edge27 ]
  %62 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.a042148a1daa7eecb4d42ee2c0451a72, i32 22)
  %63 = call i1 @_FortranAioSetAdvance(ptr %62, ptr nonnull @_QQcl.6E6F, i64 2)
  %64 = call i1 @_FortranAioOutputAscii(ptr %62, ptr nonnull @_QQcl.52, i64 1)
  %65 = call i32 @_FortranAioEndIoStatement(ptr %62)
  %66 = add nsw i64 %61, -1
  %67 = icmp ugt i64 %61, 1
  br i1 %67, label %.lr.ph29, label %._crit_edge30

._crit_edge30:                                    ; preds = %.lr.ph29, %._crit_edge27
  %68 = load i64, ptr %4, align 8, !tbaa !3
  %69 = load i64, ptr %2, align 8, !tbaa !3
  %70 = add i64 %68, 1
  %71 = sub i64 %70, %69
  %72 = icmp sgt i64 %71, 0
  br i1 %72, label %.lr.ph32, label %._crit_edge33

.lr.ph32:                                         ; preds = %._crit_edge30, %.lr.ph32
  %73 = phi i64 [ %78, %.lr.ph32 ], [ %71, %._crit_edge30 ]
  %74 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.a042148a1daa7eecb4d42ee2c0451a72, i32 26)
  %75 = call i1 @_FortranAioSetAdvance(ptr %74, ptr nonnull @_QQcl.6E6F, i64 2)
  %76 = call i1 @_FortranAioOutputAscii(ptr %74, ptr nonnull @_QQcl.55, i64 1)
  %77 = call i32 @_FortranAioEndIoStatement(ptr %74)
  %78 = add nsw i64 %73, -1
  %79 = icmp ugt i64 %73, 1
  br i1 %79, label %.lr.ph32, label %._crit_edge33

._crit_edge33:                                    ; preds = %.lr.ph32, %._crit_edge30
  %80 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.a042148a1daa7eecb4d42ee2c0451a72, i32 29)
  %81 = call i1 @_FortranAioSetAdvance(ptr %80, ptr nonnull @_QQcl.6E6F, i64 2)
  %82 = call i1 @_FortranAioOutputAscii(ptr %80, ptr nonnull @_QQcl.4C, i64 1)
  %83 = call i32 @_FortranAioEndIoStatement(ptr %80)
  %84 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.a042148a1daa7eecb4d42ee2c0451a72, i32 30)
  %85 = call i1 @_FortranAioSetAdvance(ptr %84, ptr nonnull @_QQcl.6E6F, i64 2)
  %86 = call i1 @_FortranAioOutputAscii(ptr %84, ptr nonnull @_QQcl.55, i64 1)
  %87 = call i32 @_FortranAioEndIoStatement(ptr %84)
  %88 = load i64, ptr %3, align 8, !tbaa !3
  %89 = load i64, ptr %1, align 8, !tbaa !3
  %90 = add i64 %88, 1
  %91 = sub i64 %90, %89
  %92 = icmp sgt i64 %91, 0
  br i1 %92, label %.lr.ph35, label %._crit_edge36

.lr.ph35:                                         ; preds = %._crit_edge33, %.lr.ph35
  %93 = phi i64 [ %98, %.lr.ph35 ], [ %91, %._crit_edge33 ]
  %94 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.a042148a1daa7eecb4d42ee2c0451a72, i32 33)
  %95 = call i1 @_FortranAioSetAdvance(ptr %94, ptr nonnull @_QQcl.6E6F, i64 2)
  %96 = call i1 @_FortranAioOutputAscii(ptr %94, ptr nonnull @_QQcl.4C, i64 1)
  %97 = call i32 @_FortranAioEndIoStatement(ptr %94)
  %98 = add nsw i64 %93, -1
  %99 = icmp ugt i64 %93, 1
  br i1 %99, label %.lr.ph35, label %._crit_edge36

._crit_edge36:                                    ; preds = %.lr.ph35, %._crit_edge33
  %100 = load i64, ptr %4, align 8, !tbaa !3
  %101 = load i64, ptr %2, align 8, !tbaa !3
  %102 = add i64 %100, 1
  %103 = sub i64 %102, %101
  %104 = icmp sgt i64 %103, 0
  br i1 %104, label %.lr.ph38, label %._crit_edge39

.lr.ph38:                                         ; preds = %._crit_edge36, %.lr.ph38
  %105 = phi i64 [ %110, %.lr.ph38 ], [ %103, %._crit_edge36 ]
  %106 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.a042148a1daa7eecb4d42ee2c0451a72, i32 37)
  %107 = call i1 @_FortranAioSetAdvance(ptr %106, ptr nonnull @_QQcl.6E6F, i64 2)
  %108 = call i1 @_FortranAioOutputAscii(ptr %106, ptr nonnull @_QQcl.44, i64 1)
  %109 = call i32 @_FortranAioEndIoStatement(ptr %106)
  %110 = add nsw i64 %105, -1
  %111 = icmp ugt i64 %105, 1
  br i1 %111, label %.lr.ph38, label %._crit_edge39

._crit_edge39:                                    ; preds = %.lr.ph38, %._crit_edge36
  %112 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.a042148a1daa7eecb4d42ee2c0451a72, i32 40)
  %113 = call i1 @_FortranAioOutputAscii(ptr %112, ptr nonnull @_QQcl.52, i64 1)
  %114 = call i32 @_FortranAioEndIoStatement(ptr %112)
  ret void
}

declare ptr @_FortranAioBeginExternalListInput(i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioInputInteger(ptr, ptr, i32) local_unnamed_addr

declare i32 @_FortranAioEndIoStatement(ptr) local_unnamed_addr

declare ptr @_FortranAioBeginExternalFormattedOutput(ptr, i64, ptr, i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioSetAdvance(ptr, ptr, i64) local_unnamed_addr

declare i1 @_FortranAioOutputAscii(ptr, ptr, i64) local_unnamed_addr

!llvm.module.flags = !{!0, !1, !2}

!0 = !{i32 2, !"Debug Info Version", i32 3}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{!4, !4, i64 0}
!4 = !{!"any data access", !5, i64 0}
!5 = !{!"any access", !6, i64 0}
!6 = !{!"Flang Type TBAA Root"}
