---
source: crates/mun_codegen/src/test.rs
expression: "\n pub fn add(a: u128, b: u128) -> u128 { a + b }\n pub fn subtract(a: u128, b: u128) -> u128 { a - b }\n pub fn multiply(a: u128, b: u128) -> u128 { a * b }\n pub fn divide(a: u128, b: u128) -> u128 { a / b }\n pub fn remainder(a: u128, b: u128) -> u128 { a % b }\n "
---
; == FILE IR (mod) =====================================
; ModuleID = 'mod'
source_filename = "mod"
%"mun_codegen::ir::types::TypeInfo" = type <{ [0 x i64], [16 x i8], [0 x i64], i8*, [0 x i64], i32, [0 x i64], i8, [3 x i8], %"mun_codegen::ir::types::TypeInfoData", [0 x i64] }>
%"mun_codegen::ir::types::TypeInfoData" = type <{ [0 x i8], i8, [39 x i8] }>
@global_type_table = external global [1 x %"mun_codegen::ir::types::TypeInfo"*]
define i128 @add(i128 %0, i128 %1) {
body:
%add = add i128 %0, %1
ret i128 %add
}
define i128 @subtract(i128 %0, i128 %1) {
body:
%sub = sub i128 %0, %1
ret i128 %sub
}
define i128 @multiply(i128 %0, i128 %1) {
body:
%mul = mul i128 %0, %1
ret i128 %mul
}
define i128 @divide(i128 %0, i128 %1) {
body:
%div = udiv i128 %0, %1
ret i128 %div
}
define i128 @remainder(i128 %0, i128 %1) {
body:
%rem = urem i128 %0, %1
ret i128 %rem
}
; == GROUP IR (mod) ====================================
; ModuleID = 'group_name'
source_filename = "group_name"
%"mun_codegen::ir::types::TypeInfo" = type <{ [0 x i64], [16 x i8], [0 x i64], i8*, [0 x i64], i32, [0 x i64], i8, [3 x i8], %"mun_codegen::ir::types::TypeInfoData", [0 x i64] }>
%"mun_codegen::ir::types::TypeInfoData" = type <{ [0 x i8], i8, [39 x i8] }>
@"type_info::<core::u128>::name" = private unnamed_addr constant [11 x i8] c"core::u128\00"
@"type_info::<core::u128>" = private unnamed_addr constant <{ [16 x i8], i8*, [48 x i8] }> <{ [16 x i8] c"\E67\1BU\E9k\95\93d\14}\1C\96S\95\F0", i8* getelementptr inbounds ([11 x i8], [11 x i8]* @"type_info::<core::u128>::name", i32 0, i32 0), [48 x i8] c"\80\00\00\00\08\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00" }>
@global_type_table = constant [1 x %"mun_codegen::ir::types::TypeInfo"*] [%"mun_codegen::ir::types::TypeInfo"* @"type_info::<core::u128>"]