#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int call_mul_int_string(int, int *, char const **, char const **);
int main(int argc, char **argv) {
  int scalars[3] = {453, 79, 11};
  const char *input[3] = {
      "848420140399492297106356716875151822642872438767105649714481489956523636"
      "302090141899467854328695620784124526552974761438647138281062400000000000"
      "000000000000",
      "754151235910659819650094859444579397904775501126316133079539102183576565"
      "601857903910638092736618329585888468047088676834353011805388800000000000"
      "00000000000",
      "678736112319593837685085373500121458114297951013684519771585191965218909"
      "041672113519574283462956496627299621242379809150917710624849920000000000"
      "000000000000"};
  const char *output[3] = {
      "384334323600970010589179592744443775657221214761498859320660114950305207"
      "244846834280458938010899116215208410528497566931707153641321267200000000"
      "000000000000000",
      "595779476369421257523574938961217724344772645889789745132835890725025486"
      "825467744089404093261928480372851889757200054699138879326257152000000000"
      "0000000000000",
      "746609723551553221453593910850133603925727746115052971748743711161740799"
      "945839324871531711809252146290029583366617790066009481687334912000000000"
      "0000000000000"};
  int status = call_mul_int_string(0, scalars, input, output);
  if (!status)
    status = call_mul_int_string(1, scalars, input, output);
  if (!status)
    status = call_mul_int_string(2, scalars, input, output);
  return (status);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0xed3(%rip),%rax
mov    %rax,-0x1c(%rbp)
mov    0xed1(%rip),%eax
mov    %eax,-0x14(%rbp)
mov    0x2c9f(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0x2c9c(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0x2c99(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0x2c9e(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0x2c9b(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0x2c98(%rip),%rax
mov    %rax,-0x50(%rbp)
lea    -0x1c(%rbp),%rsi
lea    -0x40(%rbp),%rdx
lea    -0x60(%rbp),%rcx
xor    %edi,%edi
call   1030 <call_mul_int_string@plt>
mov    %eax,-0x64(%rbp)
cmpl   $0x0,-0x64(%rbp)
jne    11b5 <main+0xa5>
lea    -0x1c(%rbp),%rsi
lea    -0x40(%rbp),%rdx
lea    -0x60(%rbp),%rcx
mov    $0x1,%edi
call   1030 <call_mul_int_string@plt>
mov    %eax,-0x64(%rbp)
cmpl   $0x0,-0x64(%rbp)
jne    11d8 <main+0xc8>
lea    -0x1c(%rbp),%rsi
lea    -0x40(%rbp),%rdx
lea    -0x60(%rbp),%rcx
mov    $0x2,%edi
call   1030 <call_mul_int_string@plt>
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x48,%rsp
mov    0xeee(%rip),%eax
mov    %eax,0x8(%rsp)
mov    0xedb(%rip),%rax
mov    %rax,(%rsp)
mov    0x2cc0(%rip),%rax
mov    %rax,0x40(%rsp)
movaps 0x2ca4(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
mov    0x2cc8(%rip),%rax
mov    %rax,0x20(%rsp)
movaps 0x2cac(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
mov    %rsp,%rsi
lea    0x30(%rsp),%rdx
lea    0x10(%rsp),%rcx
xor    %edi,%edi
call   1030 <call_mul_int_string@plt>
test   %eax,%eax
je     1176 <main+0x66>
add    $0x48,%rsp
ret
mov    %rsp,%rsi
lea    0x30(%rsp),%rdx
lea    0x10(%rsp),%rcx
mov    $0x1,%edi
call   1030 <call_mul_int_string@plt>
test   %eax,%eax
jne    1171 <main+0x61>
mov    %rsp,%rsi
lea    0x30(%rsp),%rdx
lea    0x10(%rsp),%rcx
mov    $0x2,%edi
call   1030 <call_mul_int_string@plt>
add    $0x48,%rsp
ret

LLVM IR (-O0):
@__const.main.scalars = [3 x i32] [i32 453, i32 79, i32 11]
@.str = [157 x i8] c"848420140399492297106356716875151822642872438767105649714481489956523636302090141899467854328695620784124526552974761438647138281062400000000000000000000000\00"
@.str.1 = [156 x i8] c"75415123591065981965009485944457939790477550112631613307953910218357656560185790391063809273661832958588846804708867683435301180538880000000000000000000000\00"
@.str.2 = [157 x i8] c"678736112319593837685085373500121458114297951013684519771585191965218909041672113519574283462956496627299621242379809150917710624849920000000000000000000000\00"
@__const.main.input = [3 x i8*] [i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([156 x i8], [156 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.2, i32 0, i32 0)]
@.str.3 = [160 x i8] c"384334323600970010589179592744443775657221214761498859320660114950305207244846834280458938010899116215208410528497566931707153641321267200000000000000000000000\00"
@.str.4 = [158 x i8] c"5957794763694212575235749389612177243447726458897897451328358907250254868254677440894040932619284803728518897572000546991388793262571520000000000000000000000\00"
@.str.5 = [158 x i8] c"7466097235515532214535939108501336039257277461150529717487437111617407999458393248715317118092521462900295833666177900660094816873349120000000000000000000000\00"
@__const.main.output = [3 x i8*] [i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str.5, i32 0, i32 0)]
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [3 x i32]
%7 = alloca [3 x i8*]
%8 = alloca [3 x i8*]
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = bitcast [3 x i32]* %6 to i8*
%11 = bitcast [3 x i8*]* %7 to i8*
%12 = bitcast [3 x i8*]* %8 to i8*
%13 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%14 = getelementptr inbounds [3 x i8*], [3 x i8*]* %7, i64 0, i64 0
%15 = getelementptr inbounds [3 x i8*], [3 x i8*]* %8, i64 0, i64 0
%16 = call i32 @call_mul_int_string(i32 0, i32* %13, i8** %14, i8** %15)
store i32 %16, i32* %9
%17 = load i32, i32* %9
%18 = icmp ne i32 %17, 0
br i1 %18, label %24, label %19
19: ; preds = %2
%20 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%21 = getelementptr inbounds [3 x i8*], [3 x i8*]* %7, i64 0, i64 0
%22 = getelementptr inbounds [3 x i8*], [3 x i8*]* %8, i64 0, i64 0
%23 = call i32 @call_mul_int_string(i32 1, i32* %20, i8** %21, i8** %22)
store i32 %23, i32* %9
br label %24
24: ; preds = %19, %2
%25 = load i32, i32* %9
%26 = icmp ne i32 %25, 0
br i1 %26, label %32, label %27
27: ; preds = %24
%28 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%29 = getelementptr inbounds [3 x i8*], [3 x i8*]* %7, i64 0, i64 0
%30 = getelementptr inbounds [3 x i8*], [3 x i8*]* %8, i64 0, i64 0
%31 = call i32 @call_mul_int_string(i32 2, i32* %28, i8** %29, i8** %30)
store i32 %31, i32* %9
br label %32
32: ; preds = %27, %24
%33 = load i32, i32* %9
ret i32 %33
}

LLVM IR (-O2):
@__const.main.scalars = [3 x i32] [i32 453, i32 79, i32 11]
@.str = [157 x i8] c"848420140399492297106356716875151822642872438767105649714481489956523636302090141899467854328695620784124526552974761438647138281062400000000000000000000000\00"
@.str.1 = [156 x i8] c"75415123591065981965009485944457939790477550112631613307953910218357656560185790391063809273661832958588846804708867683435301180538880000000000000000000000\00"
@.str.2 = [157 x i8] c"678736112319593837685085373500121458114297951013684519771585191965218909041672113519574283462956496627299621242379809150917710624849920000000000000000000000\00"
@__const.main.input = [3 x i8*] [i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([156 x i8], [156 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.2, i32 0, i32 0)]
@.str.3 = [160 x i8] c"384334323600970010589179592744443775657221214761498859320660114950305207244846834280458938010899116215208410528497566931707153641321267200000000000000000000000\00"
@.str.4 = [158 x i8] c"5957794763694212575235749389612177243447726458897897451328358907250254868254677440894040932619284803728518897572000546991388793262571520000000000000000000000\00"
@.str.5 = [158 x i8] c"7466097235515532214535939108501336039257277461150529717487437111617407999458393248715317118092521462900295833666177900660094816873349120000000000000000000000\00"
@__const.main.output = [3 x i8*] [i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str.5, i32 0, i32 0)]
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [3 x i32]
%4 = alloca [3 x i8*]
%5 = alloca [3 x i8*]
%6 = bitcast [3 x i32]* %3 to i8*
%7 = bitcast [3 x i8*]* %4 to i8*
%8 = bitcast [3 x i8*]* %5 to i8*
%9 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 0
%10 = getelementptr inbounds [3 x i8*], [3 x i8*]* %4, i64 0, i64 0
%11 = getelementptr inbounds [3 x i8*], [3 x i8*]* %5, i64 0, i64 0
%12 = call i32 @call_mul_int_string(i32 0, i32* %9, i8** %10, i8** %11)
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %19
14: ; preds = %2
%15 = call i32 @call_mul_int_string(i32 1, i32* %9, i8** %10, i8** %11)
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = call i32 @call_mul_int_string(i32 2, i32* %9, i8** %10, i8** %11)
br label %19
19: ; preds = %2, %17, %14
%20 = phi i32 [ %15, %14 ], [ %18, %17 ], [ %12, %2 ]
ret i32 %20
}