1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481
|
; ModuleID = 'LFortran'
source_filename = "LFortran"
%string_descriptor = type <{ i8*, i64 }>
@__Wrong_allocation = private unnamed_addr constant [51 x i8] c"Attempting to allocate already allocated variable!\00", align 1
@string_const_data = private constant [8 x i8] c"learned "
@string_const = private global %string_descriptor <{ i8* getelementptr inbounds ([8 x i8], [8 x i8]* @string_const_data, i32 0, i32 0), i64 8 }>
@string_const_data.1 = private constant [5 x i8] c"from "
@string_const.2 = private global %string_descriptor <{ i8* getelementptr inbounds ([5 x i8], [5 x i8]* @string_const_data.1, i32 0, i32 0), i64 5 }>
@string_const_data.3 = private constant [4 x i8] c"the "
@string_const.4 = private global %string_descriptor <{ i8* getelementptr inbounds ([4 x i8], [4 x i8]* @string_const_data.3, i32 0, i32 0), i64 4 }>
@string_const_data.5 = private constant [4 x i8] c"best"
@string_const.6 = private global %string_descriptor <{ i8* getelementptr inbounds ([4 x i8], [4 x i8]* @string_const_data.5, i32 0, i32 0), i64 4 }>
@string_const_data.7 = private constant [5 x i8] c"I've "
@string_const.8 = private global %string_descriptor <{ i8* getelementptr inbounds ([5 x i8], [5 x i8]* @string_const_data.7, i32 0, i32 0), i64 5 }>
@0 = private unnamed_addr constant [25 x i8] c"_lcompilers_stringconcat\00", align 1
@1 = private unnamed_addr constant [41 x i8] c"tests/../integration_tests/string_03.f90\00", align 1
@2 = private unnamed_addr constant [20 x i8] c"This is unallocated\00", align 1
@3 = private unnamed_addr constant [45 x i8] c"Argument %d of subroutine %s is unallocated.\00", align 1
@4 = private unnamed_addr constant [25 x i8] c"_lcompilers_stringconcat\00", align 1
@5 = private unnamed_addr constant [41 x i8] c"tests/../integration_tests/string_03.f90\00", align 1
@6 = private unnamed_addr constant [20 x i8] c"This is unallocated\00", align 1
@7 = private unnamed_addr constant [45 x i8] c"Argument %d of subroutine %s is unallocated.\00", align 1
@8 = private unnamed_addr constant [25 x i8] c"_lcompilers_stringconcat\00", align 1
@9 = private unnamed_addr constant [41 x i8] c"tests/../integration_tests/string_03.f90\00", align 1
@10 = private unnamed_addr constant [20 x i8] c"This is unallocated\00", align 1
@11 = private unnamed_addr constant [45 x i8] c"Argument %d of subroutine %s is unallocated.\00", align 1
@12 = private unnamed_addr constant [25 x i8] c"_lcompilers_stringconcat\00", align 1
@13 = private unnamed_addr constant [41 x i8] c"tests/../integration_tests/string_03.f90\00", align 1
@14 = private unnamed_addr constant [20 x i8] c"This is unallocated\00", align 1
@15 = private unnamed_addr constant [45 x i8] c"Argument %d of subroutine %s is unallocated.\00", align 1
@string_const_data.9 = private constant [1 x i8] c"."
@string_const.10 = private global %string_descriptor <{ i8* getelementptr inbounds ([1 x i8], [1 x i8]* @string_const_data.9, i32 0, i32 0), i64 1 }>
@16 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@17 = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1
define void @_lcompilers_stringconcat(%string_descriptor* %s1, %string_descriptor* %s2, i32* %s1_len, i32* %s2_len, %string_descriptor* %concat_result) {
.entry:
%0 = load i32, i32* %s1_len, align 4
%1 = load i32, i32* %s2_len, align 4
%2 = add i32 %0, %1
%3 = getelementptr %string_descriptor, %string_descriptor* %concat_result, i32 0, i32 0
%4 = load i8*, i8** %3, align 8
%5 = icmp ne i8* %4, null
br i1 %5, label %then, label %else
then: ; preds = %.entry
call void (i8*, ...) @_lcompilers_print_error(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @__Wrong_allocation, i32 0, i32 0))
call void @exit(i32 1)
br label %ifcont
else: ; preds = %.entry
br label %ifcont
ifcont: ; preds = %else, %then
%6 = getelementptr %string_descriptor, %string_descriptor* %concat_result, i32 0, i32 0
%7 = sext i32 %2 to i64
%8 = call i8* @_lfortran_string_malloc(i64 %7)
store i8* %8, i8** %6, align 8
%9 = getelementptr %string_descriptor, %string_descriptor* %concat_result, i32 0, i32 1
%10 = sext i32 %2 to i64
store i64 %10, i64* %9, align 4
%11 = load i32, i32* %s1_len, align 4
%12 = sext i32 %11 to i64
%13 = sub i64 %12, 1
%14 = add i64 %13, 1
%15 = icmp slt i64 %14, 0
%16 = select i1 %15, i64 0, i64 %14
%17 = getelementptr %string_descriptor, %string_descriptor* %concat_result, i32 0, i32 0
%18 = load i8*, i8** %17, align 8
%StrSliceGEP = getelementptr i8, i8* %18, i64 0
%StrSlice_StrView = alloca %string_descriptor, align 8
%19 = getelementptr %string_descriptor, %string_descriptor* %StrSlice_StrView, i32 0, i32 0
store i8* %StrSliceGEP, i8** %19, align 8
%20 = getelementptr %string_descriptor, %string_descriptor* %StrSlice_StrView, i32 0, i32 1
store i64 %16, i64* %20, align 4
%21 = getelementptr %string_descriptor, %string_descriptor* %StrSlice_StrView, i32 0, i32 0
%22 = getelementptr %string_descriptor, %string_descriptor* %StrSlice_StrView, i32 0, i32 1
%23 = getelementptr %string_descriptor, %string_descriptor* %s1, i32 0, i32 0
%24 = load i8*, i8** %23, align 8
%25 = getelementptr %string_descriptor, %string_descriptor* %s1, i32 0, i32 1
%26 = load i64, i64* %25, align 4
call void @_lfortran_strcpy(i8** %21, i64* %22, i8 0, i8 0, i8* %24, i64 %26)
%27 = load i32, i32* %s1_len, align 4
%28 = add i32 %27, 1
%29 = getelementptr %string_descriptor, %string_descriptor* %concat_result, i32 0, i32 1
%30 = load i64, i64* %29, align 4
%31 = trunc i64 %30 to i32
%32 = sext i32 %28 to i64
%33 = sext i32 %31 to i64
%34 = sub i64 %33, %32
%35 = add i64 %34, 1
%36 = icmp slt i64 %35, 0
%37 = select i1 %36, i64 0, i64 %35
%38 = getelementptr %string_descriptor, %string_descriptor* %concat_result, i32 0, i32 0
%39 = load i8*, i8** %38, align 8
%40 = sext i32 %28 to i64
%41 = sub i64 %40, 1
%StrSliceGEP1 = getelementptr i8, i8* %39, i64 %41
%StrSlice_StrView2 = alloca %string_descriptor, align 8
%42 = getelementptr %string_descriptor, %string_descriptor* %StrSlice_StrView2, i32 0, i32 0
store i8* %StrSliceGEP1, i8** %42, align 8
%43 = getelementptr %string_descriptor, %string_descriptor* %StrSlice_StrView2, i32 0, i32 1
store i64 %37, i64* %43, align 4
%44 = getelementptr %string_descriptor, %string_descriptor* %StrSlice_StrView2, i32 0, i32 0
%45 = getelementptr %string_descriptor, %string_descriptor* %StrSlice_StrView2, i32 0, i32 1
%46 = getelementptr %string_descriptor, %string_descriptor* %s2, i32 0, i32 0
%47 = load i8*, i8** %46, align 8
%48 = getelementptr %string_descriptor, %string_descriptor* %s2, i32 0, i32 1
%49 = load i64, i64* %48, align 4
call void @_lfortran_strcpy(i8** %44, i64* %45, i8 0, i8 0, i8* %47, i64 %49)
br label %return
return: ; preds = %ifcont
br label %FINALIZE_SYMTABLE__lcompilers_stringconcat
FINALIZE_SYMTABLE__lcompilers_stringconcat: ; preds = %return
ret void
}
declare void @_lcompilers_print_error(i8*, ...)
declare void @exit(i32)
declare i8* @_lfortran_string_malloc(i64)
declare void @_lfortran_strcpy(i8**, i64*, i8, i8, i8*, i64)
define i32 @main(i32 %0, i8** %1) {
.entry:
%call_arg_value1 = alloca i32, align 4
%call_arg_value = alloca i32, align 4
call void @_lpython_call_initial_functions(i32 %0, i8** %1)
%__libasr__created__var__0_return_slot = alloca %string_descriptor, align 8
store %string_descriptor zeroinitializer, %string_descriptor* %__libasr__created__var__0_return_slot, align 1
%__libasr__created__var__1_return_slot = alloca %string_descriptor, align 8
store %string_descriptor zeroinitializer, %string_descriptor* %__libasr__created__var__1_return_slot, align 1
%__libasr__created__var__2_return_slot = alloca %string_descriptor, align 8
store %string_descriptor zeroinitializer, %string_descriptor* %__libasr__created__var__2_return_slot, align 1
%__libasr__created__var__3_return_slot = alloca %string_descriptor, align 8
store %string_descriptor zeroinitializer, %string_descriptor* %__libasr__created__var__3_return_slot, align 1
%__libasr__created__var__4_return_slot = alloca %string_descriptor, align 8
store %string_descriptor zeroinitializer, %string_descriptor* %__libasr__created__var__4_return_slot, align 1
%combined = alloca %string_descriptor, align 8
store %string_descriptor zeroinitializer, %string_descriptor* %combined, align 1
%2 = getelementptr %string_descriptor, %string_descriptor* %combined, i32 0, i32 1
store i64 29, i64* %2, align 4
%3 = getelementptr %string_descriptor, %string_descriptor* %combined, i32 0, i32 0
%4 = call i8* @_lfortran_malloc(i64 29)
store i8* %4, i8** %3, align 8
%last_name = alloca %string_descriptor, align 8
store %string_descriptor zeroinitializer, %string_descriptor* %last_name, align 1
%5 = getelementptr %string_descriptor, %string_descriptor* %last_name, i32 0, i32 1
store i64 7, i64* %5, align 4
%6 = getelementptr %string_descriptor, %string_descriptor* %last_name, i32 0, i32 0
%7 = call i8* @_lfortran_malloc(i64 7)
store i8* %7, i8** %6, align 8
%posit = alloca %string_descriptor, align 8
store %string_descriptor zeroinitializer, %string_descriptor* %posit, align 1
%8 = getelementptr %string_descriptor, %string_descriptor* %posit, i32 0, i32 1
store i64 5, i64* %8, align 4
%9 = getelementptr %string_descriptor, %string_descriptor* %posit, i32 0, i32 0
%10 = call i8* @_lfortran_malloc(i64 5)
store i8* %10, i8** %9, align 8
%title = alloca %string_descriptor, align 8
store %string_descriptor zeroinitializer, %string_descriptor* %title, align 1
%11 = getelementptr %string_descriptor, %string_descriptor* %title, i32 0, i32 1
store i64 4, i64* %11, align 4
%12 = getelementptr %string_descriptor, %string_descriptor* %title, i32 0, i32 0
%13 = call i8* @_lfortran_malloc(i64 4)
store i8* %13, i8** %12, align 8
%verb = alloca %string_descriptor, align 8
store %string_descriptor zeroinitializer, %string_descriptor* %verb, align 1
%14 = getelementptr %string_descriptor, %string_descriptor* %verb, i32 0, i32 1
store i64 8, i64* %14, align 4
%15 = getelementptr %string_descriptor, %string_descriptor* %verb, i32 0, i32 0
%16 = call i8* @_lfortran_malloc(i64 8)
store i8* %16, i8** %15, align 8
%17 = getelementptr %string_descriptor, %string_descriptor* %verb, i32 0, i32 0
%18 = getelementptr %string_descriptor, %string_descriptor* %verb, i32 0, i32 1
%19 = load i8*, i8** getelementptr inbounds (%string_descriptor, %string_descriptor* @string_const, i32 0, i32 0), align 8
call void @_lfortran_strcpy(i8** %17, i64* %18, i8 0, i8 0, i8* %19, i64 8)
%20 = getelementptr %string_descriptor, %string_descriptor* %posit, i32 0, i32 0
%21 = getelementptr %string_descriptor, %string_descriptor* %posit, i32 0, i32 1
%22 = load i8*, i8** getelementptr inbounds (%string_descriptor, %string_descriptor* @string_const.2, i32 0, i32 0), align 8
call void @_lfortran_strcpy(i8** %20, i64* %21, i8 0, i8 0, i8* %22, i64 5)
%23 = getelementptr %string_descriptor, %string_descriptor* %title, i32 0, i32 0
%24 = getelementptr %string_descriptor, %string_descriptor* %title, i32 0, i32 1
%25 = load i8*, i8** getelementptr inbounds (%string_descriptor, %string_descriptor* @string_const.4, i32 0, i32 0), align 8
call void @_lfortran_strcpy(i8** %23, i64* %24, i8 0, i8 0, i8* %25, i64 4)
%26 = getelementptr %string_descriptor, %string_descriptor* %last_name, i32 0, i32 0
%27 = getelementptr %string_descriptor, %string_descriptor* %last_name, i32 0, i32 1
%28 = load i8*, i8** getelementptr inbounds (%string_descriptor, %string_descriptor* @string_const.6, i32 0, i32 0), align 8
call void @_lfortran_strcpy(i8** %26, i64* %27, i8 0, i8 0, i8* %28, i64 4)
%29 = getelementptr %string_descriptor, %string_descriptor* %__libasr__created__var__0_return_slot, i32 0, i32 0
%30 = getelementptr %string_descriptor, %string_descriptor* %__libasr__created__var__0_return_slot, i32 0, i32 1
%31 = load i8*, i8** %29, align 8
call void @_lfortran_free(i8* %31)
store i8* null, i8** %29, align 8
store i64 0, i64* %30, align 4
store i32 5, i32* %call_arg_value, align 4
store i32 8, i32* %call_arg_value1, align 4
call void @_lcompilers_stringconcat(%string_descriptor* @string_const.8, %string_descriptor* %verb, i32* %call_arg_value, i32* %call_arg_value1, %string_descriptor* %__libasr__created__var__0_return_slot)
%32 = getelementptr %string_descriptor, %string_descriptor* %__libasr__created__var__1_return_slot, i32 0, i32 0
%33 = getelementptr %string_descriptor, %string_descriptor* %__libasr__created__var__1_return_slot, i32 0, i32 1
%34 = load i8*, i8** %32, align 8
call void @_lfortran_free(i8* %34)
store i8* null, i8** %32, align 8
store i64 0, i64* %33, align 4
%35 = getelementptr %string_descriptor, %string_descriptor* %__libasr__created__var__0_return_slot, i32 0, i32 0
%36 = load i8*, i8** %35, align 8
%37 = ptrtoint i8* %36 to i64
%38 = icmp eq i64 %37, 0
br i1 %38, label %then, label %ifcont
then: ; preds = %.entry
%39 = alloca [1 x { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }], align 8
%40 = alloca [1 x { i8*, i32, i32, i32, i32 }], align 8
%41 = getelementptr inbounds [1 x { i8*, i32, i32, i32, i32 }], [1 x { i8*, i32, i32, i32, i32 }]* %40, i32 0, i32 0
%42 = getelementptr { i8*, i32, i32, i32, i32 }, { i8*, i32, i32, i32, i32 }* %41, i32 0, i32 0
store i8* getelementptr inbounds ([41 x i8], [41 x i8]* @1, i32 0, i32 0), i8** %42, align 8
%43 = getelementptr { i8*, i32, i32, i32, i32 }, { i8*, i32, i32, i32, i32 }* %41, i32 0, i32 1
store i32 21, i32* %43, align 4
%44 = getelementptr { i8*, i32, i32, i32, i32 }, { i8*, i32, i32, i32, i32 }* %41, i32 0, i32 2
store i32 12, i32* %44, align 4
%45 = getelementptr { i8*, i32, i32, i32, i32 }, { i8*, i32, i32, i32, i32 }* %41, i32 0, i32 3
store i32 21, i32* %45, align 4
%46 = getelementptr { i8*, i32, i32, i32, i32 }, { i8*, i32, i32, i32, i32 }* %41, i32 0, i32 4
store i32 22, i32* %46, align 4
%47 = call i8* (i8*, ...) @_lcompilers_snprintf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @2, i32 0, i32 0))
%48 = getelementptr inbounds [1 x { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }], [1 x { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }]* %39, i32 0, i32 0
%49 = getelementptr [1 x { i8*, i32, i32, i32, i32 }], [1 x { i8*, i32, i32, i32, i32 }]* %40, i32 0, i32 0
%50 = getelementptr { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }, { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }* %48, i32 0, i32 2
%51 = getelementptr { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }, { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }* %48, i32 0, i32 0
store i1 true, i1* %51, align 1
%52 = getelementptr { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }, { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }* %48, i32 0, i32 1
store i8* %47, i8** %52, align 8
store { i8*, i32, i32, i32, i32 }* %49, { i8*, i32, i32, i32, i32 }** %50, align 8
%53 = getelementptr { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }, { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }* %48, i32 0, i32 3
store i32 1, i32* %53, align 4
%54 = getelementptr [1 x { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }], [1 x { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }]* %39, i32 0, i32 0
call void ({ i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }*, i32, i8*, ...) @_lcompilers_runtime_error({ i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }* %54, i32 1, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @3, i32 0, i32 0), i32 1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @0, i32 0, i32 0))
call void @exit(i32 1)
unreachable
ifcont: ; preds = %.entry
store i32 13, i32* %call_arg_value, align 4
store i32 5, i32* %call_arg_value1, align 4
call void @_lcompilers_stringconcat(%string_descriptor* %__libasr__created__var__0_return_slot, %string_descriptor* %posit, i32* %call_arg_value, i32* %call_arg_value1, %string_descriptor* %__libasr__created__var__1_return_slot)
%55 = getelementptr %string_descriptor, %string_descriptor* %__libasr__created__var__2_return_slot, i32 0, i32 0
%56 = getelementptr %string_descriptor, %string_descriptor* %__libasr__created__var__2_return_slot, i32 0, i32 1
%57 = load i8*, i8** %55, align 8
call void @_lfortran_free(i8* %57)
store i8* null, i8** %55, align 8
store i64 0, i64* %56, align 4
%58 = getelementptr %string_descriptor, %string_descriptor* %__libasr__created__var__1_return_slot, i32 0, i32 0
%59 = load i8*, i8** %58, align 8
%60 = ptrtoint i8* %59 to i64
%61 = icmp eq i64 %60, 0
br i1 %61, label %then2, label %ifcont3
then2: ; preds = %ifcont
%62 = alloca [1 x { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }], align 8
%63 = alloca [1 x { i8*, i32, i32, i32, i32 }], align 8
%64 = getelementptr inbounds [1 x { i8*, i32, i32, i32, i32 }], [1 x { i8*, i32, i32, i32, i32 }]* %63, i32 0, i32 0
%65 = getelementptr { i8*, i32, i32, i32, i32 }, { i8*, i32, i32, i32, i32 }* %64, i32 0, i32 0
store i8* getelementptr inbounds ([41 x i8], [41 x i8]* @5, i32 0, i32 0), i8** %65, align 8
%66 = getelementptr { i8*, i32, i32, i32, i32 }, { i8*, i32, i32, i32, i32 }* %64, i32 0, i32 1
store i32 21, i32* %66, align 4
%67 = getelementptr { i8*, i32, i32, i32, i32 }, { i8*, i32, i32, i32, i32 }* %64, i32 0, i32 2
store i32 12, i32* %67, align 4
%68 = getelementptr { i8*, i32, i32, i32, i32 }, { i8*, i32, i32, i32, i32 }* %64, i32 0, i32 3
store i32 21, i32* %68, align 4
%69 = getelementptr { i8*, i32, i32, i32, i32 }, { i8*, i32, i32, i32, i32 }* %64, i32 0, i32 4
store i32 29, i32* %69, align 4
%70 = call i8* (i8*, ...) @_lcompilers_snprintf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @6, i32 0, i32 0))
%71 = getelementptr inbounds [1 x { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }], [1 x { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }]* %62, i32 0, i32 0
%72 = getelementptr [1 x { i8*, i32, i32, i32, i32 }], [1 x { i8*, i32, i32, i32, i32 }]* %63, i32 0, i32 0
%73 = getelementptr { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }, { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }* %71, i32 0, i32 2
%74 = getelementptr { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }, { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }* %71, i32 0, i32 0
store i1 true, i1* %74, align 1
%75 = getelementptr { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }, { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }* %71, i32 0, i32 1
store i8* %70, i8** %75, align 8
store { i8*, i32, i32, i32, i32 }* %72, { i8*, i32, i32, i32, i32 }** %73, align 8
%76 = getelementptr { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }, { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }* %71, i32 0, i32 3
store i32 1, i32* %76, align 4
%77 = getelementptr [1 x { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }], [1 x { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }]* %62, i32 0, i32 0
call void ({ i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }*, i32, i8*, ...) @_lcompilers_runtime_error({ i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }* %77, i32 1, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @7, i32 0, i32 0), i32 1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @4, i32 0, i32 0))
call void @exit(i32 1)
unreachable
ifcont3: ; preds = %ifcont
store i32 18, i32* %call_arg_value, align 4
store i32 4, i32* %call_arg_value1, align 4
call void @_lcompilers_stringconcat(%string_descriptor* %__libasr__created__var__1_return_slot, %string_descriptor* %title, i32* %call_arg_value, i32* %call_arg_value1, %string_descriptor* %__libasr__created__var__2_return_slot)
%78 = getelementptr %string_descriptor, %string_descriptor* %__libasr__created__var__3_return_slot, i32 0, i32 0
%79 = getelementptr %string_descriptor, %string_descriptor* %__libasr__created__var__3_return_slot, i32 0, i32 1
%80 = load i8*, i8** %78, align 8
call void @_lfortran_free(i8* %80)
store i8* null, i8** %78, align 8
store i64 0, i64* %79, align 4
%81 = getelementptr %string_descriptor, %string_descriptor* %__libasr__created__var__2_return_slot, i32 0, i32 0
%82 = load i8*, i8** %81, align 8
%83 = ptrtoint i8* %82 to i64
%84 = icmp eq i64 %83, 0
br i1 %84, label %then4, label %ifcont5
then4: ; preds = %ifcont3
%85 = alloca [1 x { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }], align 8
%86 = alloca [1 x { i8*, i32, i32, i32, i32 }], align 8
%87 = getelementptr inbounds [1 x { i8*, i32, i32, i32, i32 }], [1 x { i8*, i32, i32, i32, i32 }]* %86, i32 0, i32 0
%88 = getelementptr { i8*, i32, i32, i32, i32 }, { i8*, i32, i32, i32, i32 }* %87, i32 0, i32 0
store i8* getelementptr inbounds ([41 x i8], [41 x i8]* @9, i32 0, i32 0), i8** %88, align 8
%89 = getelementptr { i8*, i32, i32, i32, i32 }, { i8*, i32, i32, i32, i32 }* %87, i32 0, i32 1
store i32 21, i32* %89, align 4
%90 = getelementptr { i8*, i32, i32, i32, i32 }, { i8*, i32, i32, i32, i32 }* %87, i32 0, i32 2
store i32 12, i32* %90, align 4
%91 = getelementptr { i8*, i32, i32, i32, i32 }, { i8*, i32, i32, i32, i32 }* %87, i32 0, i32 3
store i32 21, i32* %91, align 4
%92 = getelementptr { i8*, i32, i32, i32, i32 }, { i8*, i32, i32, i32, i32 }* %87, i32 0, i32 4
store i32 36, i32* %92, align 4
%93 = call i8* (i8*, ...) @_lcompilers_snprintf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @10, i32 0, i32 0))
%94 = getelementptr inbounds [1 x { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }], [1 x { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }]* %85, i32 0, i32 0
%95 = getelementptr [1 x { i8*, i32, i32, i32, i32 }], [1 x { i8*, i32, i32, i32, i32 }]* %86, i32 0, i32 0
%96 = getelementptr { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }, { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }* %94, i32 0, i32 2
%97 = getelementptr { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }, { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }* %94, i32 0, i32 0
store i1 true, i1* %97, align 1
%98 = getelementptr { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }, { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }* %94, i32 0, i32 1
store i8* %93, i8** %98, align 8
store { i8*, i32, i32, i32, i32 }* %95, { i8*, i32, i32, i32, i32 }** %96, align 8
%99 = getelementptr { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }, { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }* %94, i32 0, i32 3
store i32 1, i32* %99, align 4
%100 = getelementptr [1 x { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }], [1 x { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }]* %85, i32 0, i32 0
call void ({ i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }*, i32, i8*, ...) @_lcompilers_runtime_error({ i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }* %100, i32 1, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @11, i32 0, i32 0), i32 1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @8, i32 0, i32 0))
call void @exit(i32 1)
unreachable
ifcont5: ; preds = %ifcont3
store i32 22, i32* %call_arg_value, align 4
store i32 7, i32* %call_arg_value1, align 4
call void @_lcompilers_stringconcat(%string_descriptor* %__libasr__created__var__2_return_slot, %string_descriptor* %last_name, i32* %call_arg_value, i32* %call_arg_value1, %string_descriptor* %__libasr__created__var__3_return_slot)
%101 = getelementptr %string_descriptor, %string_descriptor* %__libasr__created__var__4_return_slot, i32 0, i32 0
%102 = getelementptr %string_descriptor, %string_descriptor* %__libasr__created__var__4_return_slot, i32 0, i32 1
%103 = load i8*, i8** %101, align 8
call void @_lfortran_free(i8* %103)
store i8* null, i8** %101, align 8
store i64 0, i64* %102, align 4
%104 = getelementptr %string_descriptor, %string_descriptor* %__libasr__created__var__3_return_slot, i32 0, i32 0
%105 = load i8*, i8** %104, align 8
%106 = ptrtoint i8* %105 to i64
%107 = icmp eq i64 %106, 0
br i1 %107, label %then6, label %ifcont7
then6: ; preds = %ifcont5
%108 = alloca [1 x { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }], align 8
%109 = alloca [1 x { i8*, i32, i32, i32, i32 }], align 8
%110 = getelementptr inbounds [1 x { i8*, i32, i32, i32, i32 }], [1 x { i8*, i32, i32, i32, i32 }]* %109, i32 0, i32 0
%111 = getelementptr { i8*, i32, i32, i32, i32 }, { i8*, i32, i32, i32, i32 }* %110, i32 0, i32 0
store i8* getelementptr inbounds ([41 x i8], [41 x i8]* @13, i32 0, i32 0), i8** %111, align 8
%112 = getelementptr { i8*, i32, i32, i32, i32 }, { i8*, i32, i32, i32, i32 }* %110, i32 0, i32 1
store i32 21, i32* %112, align 4
%113 = getelementptr { i8*, i32, i32, i32, i32 }, { i8*, i32, i32, i32, i32 }* %110, i32 0, i32 2
store i32 12, i32* %113, align 4
%114 = getelementptr { i8*, i32, i32, i32, i32 }, { i8*, i32, i32, i32, i32 }* %110, i32 0, i32 3
store i32 21, i32* %114, align 4
%115 = getelementptr { i8*, i32, i32, i32, i32 }, { i8*, i32, i32, i32, i32 }* %110, i32 0, i32 4
store i32 47, i32* %115, align 4
%116 = call i8* (i8*, ...) @_lcompilers_snprintf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @14, i32 0, i32 0))
%117 = getelementptr inbounds [1 x { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }], [1 x { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }]* %108, i32 0, i32 0
%118 = getelementptr [1 x { i8*, i32, i32, i32, i32 }], [1 x { i8*, i32, i32, i32, i32 }]* %109, i32 0, i32 0
%119 = getelementptr { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }, { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }* %117, i32 0, i32 2
%120 = getelementptr { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }, { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }* %117, i32 0, i32 0
store i1 true, i1* %120, align 1
%121 = getelementptr { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }, { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }* %117, i32 0, i32 1
store i8* %116, i8** %121, align 8
store { i8*, i32, i32, i32, i32 }* %118, { i8*, i32, i32, i32, i32 }** %119, align 8
%122 = getelementptr { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }, { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }* %117, i32 0, i32 3
store i32 1, i32* %122, align 4
%123 = getelementptr [1 x { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }], [1 x { i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }]* %108, i32 0, i32 0
call void ({ i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }*, i32, i8*, ...) @_lcompilers_runtime_error({ i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }* %123, i32 1, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @15, i32 0, i32 0), i32 1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @12, i32 0, i32 0))
call void @exit(i32 1)
unreachable
ifcont7: ; preds = %ifcont5
store i32 29, i32* %call_arg_value, align 4
store i32 1, i32* %call_arg_value1, align 4
call void @_lcompilers_stringconcat(%string_descriptor* %__libasr__created__var__3_return_slot, %string_descriptor* @string_const.10, i32* %call_arg_value, i32* %call_arg_value1, %string_descriptor* %__libasr__created__var__4_return_slot)
%124 = getelementptr %string_descriptor, %string_descriptor* %combined, i32 0, i32 0
%125 = getelementptr %string_descriptor, %string_descriptor* %combined, i32 0, i32 1
%126 = getelementptr %string_descriptor, %string_descriptor* %__libasr__created__var__4_return_slot, i32 0, i32 0
%127 = load i8*, i8** %126, align 8
%128 = getelementptr %string_descriptor, %string_descriptor* %__libasr__created__var__4_return_slot, i32 0, i32 1
%129 = load i64, i64* %128, align 4
call void @_lfortran_strcpy(i8** %124, i64* %125, i8 0, i8 0, i8* %127, i64 %129)
%130 = getelementptr %string_descriptor, %string_descriptor* %combined, i32 0, i32 0
%131 = load i8*, i8** %130, align 8
call void @_lfortran_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @17, i32 0, i32 0), i8* %131, i32 29, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @16, i32 0, i32 0), i32 1)
call void @_lpython_free_argv()
br label %return
return: ; preds = %ifcont7
br label %FINALIZE_SYMTABLE_string_03
FINALIZE_SYMTABLE_string_03: ; preds = %return
br label %Finalize_Variable___libasr__created__var__0_return_slot
Finalize_Variable___libasr__created__var__0_return_slot: ; preds = %FINALIZE_SYMTABLE_string_03
%132 = getelementptr %string_descriptor, %string_descriptor* %__libasr__created__var__0_return_slot, i32 0, i32 0
%133 = load i8*, i8** %132, align 8
call void @_lfortran_free(i8* %133)
br label %Finalize_Variable___libasr__created__var__1_return_slot
Finalize_Variable___libasr__created__var__1_return_slot: ; preds = %Finalize_Variable___libasr__created__var__0_return_slot
%134 = getelementptr %string_descriptor, %string_descriptor* %__libasr__created__var__1_return_slot, i32 0, i32 0
%135 = load i8*, i8** %134, align 8
call void @_lfortran_free(i8* %135)
br label %Finalize_Variable___libasr__created__var__2_return_slot
Finalize_Variable___libasr__created__var__2_return_slot: ; preds = %Finalize_Variable___libasr__created__var__1_return_slot
%136 = getelementptr %string_descriptor, %string_descriptor* %__libasr__created__var__2_return_slot, i32 0, i32 0
%137 = load i8*, i8** %136, align 8
call void @_lfortran_free(i8* %137)
br label %Finalize_Variable___libasr__created__var__3_return_slot
Finalize_Variable___libasr__created__var__3_return_slot: ; preds = %Finalize_Variable___libasr__created__var__2_return_slot
%138 = getelementptr %string_descriptor, %string_descriptor* %__libasr__created__var__3_return_slot, i32 0, i32 0
%139 = load i8*, i8** %138, align 8
call void @_lfortran_free(i8* %139)
br label %Finalize_Variable___libasr__created__var__4_return_slot
Finalize_Variable___libasr__created__var__4_return_slot: ; preds = %Finalize_Variable___libasr__created__var__3_return_slot
%140 = getelementptr %string_descriptor, %string_descriptor* %__libasr__created__var__4_return_slot, i32 0, i32 0
%141 = load i8*, i8** %140, align 8
call void @_lfortran_free(i8* %141)
br label %Finalize_Variable_combined
Finalize_Variable_combined: ; preds = %Finalize_Variable___libasr__created__var__4_return_slot
%142 = getelementptr %string_descriptor, %string_descriptor* %combined, i32 0, i32 0
%143 = load i8*, i8** %142, align 8
call void @_lfortran_free(i8* %143)
br label %Finalize_Variable_last_name
Finalize_Variable_last_name: ; preds = %Finalize_Variable_combined
%144 = getelementptr %string_descriptor, %string_descriptor* %last_name, i32 0, i32 0
%145 = load i8*, i8** %144, align 8
call void @_lfortran_free(i8* %145)
br label %Finalize_Variable_posit
Finalize_Variable_posit: ; preds = %Finalize_Variable_last_name
%146 = getelementptr %string_descriptor, %string_descriptor* %posit, i32 0, i32 0
%147 = load i8*, i8** %146, align 8
call void @_lfortran_free(i8* %147)
br label %Finalize_Variable_title
Finalize_Variable_title: ; preds = %Finalize_Variable_posit
%148 = getelementptr %string_descriptor, %string_descriptor* %title, i32 0, i32 0
%149 = load i8*, i8** %148, align 8
call void @_lfortran_free(i8* %149)
br label %Finalize_Variable_verb
Finalize_Variable_verb: ; preds = %Finalize_Variable_title
%150 = getelementptr %string_descriptor, %string_descriptor* %verb, i32 0, i32 0
%151 = load i8*, i8** %150, align 8
call void @_lfortran_free(i8* %151)
ret i32 0
}
declare void @_lpython_call_initial_functions(i32, i8**)
declare i8* @_lfortran_malloc(i64)
declare void @_lfortran_free(i8*)
declare i8* @_lcompilers_snprintf(i8*, ...)
declare void @_lcompilers_runtime_error({ i1, i8*, { i8*, i32, i32, i32, i32 }*, i32 }*, i32, i8*, ...)
declare void @_lfortran_printf(i8*, i8*, i32, i8*, i32)
declare void @_lpython_free_argv()
|