WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.6% of users enabled 2FA.

test_eq_int.c 2.23 KB
Newer Older
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

// Compile with flag -std=c99
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <dlfcn.h>
#include "muapi.h"
#include "mu-fastimpl.h"
int main(int argc, char** argv) {
    MuVM* mu_10;
    MuCtx* ctx_10;
    MuIRBuilder* bldr_10;
    MuID id_91;
    MuID id_92;
    MuID id_93;
    MuID id_94;
    MuID id_95;
    MuID id_96;
    MuID id_97;
    MuID id_98;
    MuID id_99;
    MuID id_100;
    MuID id_101;
    MuID id_102;
    MuID id_103;
26
    mu_10 = mu_fastimpl_new_with_opts("init_muinit_mu --log-level=none --aot-emit-dir=emit");
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
    ctx_10 = mu_10->new_context(mu_10);
    bldr_10 = ctx_10->new_ir_builder(ctx_10);
    id_91 = bldr_10->gen_sym(bldr_10, "@i1");
    bldr_10->new_type_int(bldr_10, id_91, 1);
    id_92 = bldr_10->gen_sym(bldr_10, "@i64");
    bldr_10->new_type_int(bldr_10, id_92, 64);
    id_93 = bldr_10->gen_sym(bldr_10, "@0x8d9f9c1d58324b55_i64");
    bldr_10->new_const_int(bldr_10, id_93, id_92, 10205046930492509013);
    id_94 = bldr_10->gen_sym(bldr_10, "@0xd5a8f2deb00debb4_i64");
    bldr_10->new_const_int(bldr_10, id_94, id_92, 15395822364416404404);
    id_95 = bldr_10->gen_sym(bldr_10, "@sig__i64");
    bldr_10->new_funcsig(bldr_10, id_95, NULL, 0, (MuTypeNode [1]){id_92}, 1);
    id_96 = bldr_10->gen_sym(bldr_10, "@test_fnc");
    bldr_10->new_func(bldr_10, id_96, id_95);
    id_97 = bldr_10->gen_sym(bldr_10, "@test_fnc_v1");
    id_98 = bldr_10->gen_sym(bldr_10, "@test_fnc_v1.blk0");
    id_99 = bldr_10->gen_sym(bldr_10, "@test_fnc_v1.blk0.cmp_res");
    id_100 = bldr_10->gen_sym(bldr_10, "@test_fnc_v1.blk0.res");
    id_101 = bldr_10->gen_sym(bldr_10, NULL);
    bldr_10->new_cmp(bldr_10, id_101, id_99, MU_CMP_EQ, id_92, id_93, id_94);
    id_102 = bldr_10->gen_sym(bldr_10, NULL);
    bldr_10->new_conv(bldr_10, id_102, id_100, MU_CONV_ZEXT, id_91, id_92, id_99);
    id_103 = bldr_10->gen_sym(bldr_10, NULL);
    bldr_10->new_ret(bldr_10, id_103, (MuVarNode [1]){id_100}, 1);
    bldr_10->new_bb(bldr_10, id_98, NULL, NULL, 0, MU_NO_ID, (MuInstNode [3]){id_101, id_102, id_103}, 3);
    bldr_10->new_func_ver(bldr_10, id_97, id_96, (MuBBNode [1]){id_98}, 1);
    bldr_10->load(bldr_10);
54
    mu_10->compile_to_sharedlib(mu_10, "test_eq_int.dylib", NULL, 0);
55 56 57
    printf("%s\n", "test_eq_int.dylib");
    return 0;
}