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.7% of users enabled 2FA.

Commit e7c3a03a authored by John Zhang's avatar John Zhang
Browse files

C source files for testing NEW

parent a3f6e910
// 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_22;
MuCtx* ctx_22;
MuIRBuilder* bldr_22;
MuID id_262;
MuID id_263;
MuID id_264;
MuID id_265;
MuID id_266;
MuID id_267;
MuID id_268;
MuID id_269;
MuID id_270;
MuID id_271;
MuID id_272;
MuID id_273;
MuID id_274;
MuID id_275;
MuID id_276;
mu_22 = mu_fastimpl_new();
ctx_22 = mu_22->new_context(mu_22);
bldr_22 = ctx_22->new_ir_builder(ctx_22);
id_262 = bldr_22->gen_sym(bldr_22, "@i1");
bldr_22->new_type_int(bldr_22, id_262, 1);
id_263 = bldr_22->gen_sym(bldr_22, "@i64");
bldr_22->new_type_int(bldr_22, id_263, 64);
id_264 = bldr_22->gen_sym(bldr_22, "@refi64");
bldr_22->new_type_ref(bldr_22, id_264, id_263);
id_265 = bldr_22->gen_sym(bldr_22, "@NULL_refi64");
bldr_22->new_const_null(bldr_22, id_265, id_264);
id_266 = bldr_22->gen_sym(bldr_22, "@sig__i64");
bldr_22->new_funcsig(bldr_22, id_266, NULL, 0, (MuTypeNode [1]){id_263}, 1);
id_267 = bldr_22->gen_sym(bldr_22, "@test_fnc");
bldr_22->new_func(bldr_22, id_267, id_266);
id_268 = bldr_22->gen_sym(bldr_22, "@test_fnc.v1");
id_269 = bldr_22->gen_sym(bldr_22, "@test_fnc.v1.blk0");
id_270 = bldr_22->gen_sym(bldr_22, "@test_fnc.v1.blk0.r");
id_271 = bldr_22->gen_sym(bldr_22, "@test_fnc.v1.blk0.cmpres");
id_272 = bldr_22->gen_sym(bldr_22, "@test_fnc.v1.blk0.res");
id_273 = bldr_22->gen_sym(bldr_22, NULL);
bldr_22->new_new(bldr_22, id_273, id_270, id_263, MU_NO_ID);
id_274 = bldr_22->gen_sym(bldr_22, NULL);
bldr_22->new_cmp(bldr_22, id_274, id_271, MU_CMP_EQ, id_264, id_270, id_265);
id_275 = bldr_22->gen_sym(bldr_22, NULL);
bldr_22->new_conv(bldr_22, id_275, id_272, MU_CONV_ZEXT, id_262, id_263, id_271);
id_276 = bldr_22->gen_sym(bldr_22, NULL);
bldr_22->new_ret(bldr_22, id_276, (MuVarNode [1]){id_272}, 1);
bldr_22->new_bb(bldr_22, id_269, NULL, NULL, 0, MU_NO_ID, (MuInstNode [4]){id_273, id_274, id_275, id_276}, 4);
bldr_22->new_func_ver(bldr_22, id_268, id_267, (MuBBNode [1]){id_269}, 1);
mu_22->compile_to_sharedlib(mu_22, "test_new.dylib", NULL, 0);
printf("%s\n", "test_new.dylib");
return 0;
// 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_23;
MuCtx* ctx_23;
MuIRBuilder* bldr_23;
MuID id_277;
MuID id_278;
MuID id_279;
MuID id_280;
MuID id_281;
MuID id_282;
MuID id_283;
MuID id_284;
MuID id_285;
MuID id_286;
MuID id_287;
MuID id_288;
MuID id_289;
MuID id_290;
MuID id_291;
MuID id_292;
MuID id_293;
MuID id_294;
MuID id_295;
MuID id_296;
MuID id_297;
MuID id_298;
MuID id_299;
MuID id_300;
MuID id_301;
MuID id_302;
MuID id_303;
MuID id_304;
MuID id_305;
MuID id_306;
MuID id_307;
MuID id_308;
MuID id_309;
MuID id_310;
MuID id_311;
MuID id_312;
mu_23 = mu_fastimpl_new();
ctx_23 = mu_23->new_context(mu_23);
bldr_23 = ctx_23->new_ir_builder(ctx_23);
id_277 = bldr_23->gen_sym(bldr_23, "@i8");
bldr_23->new_type_int(bldr_23, id_277, 8);
id_278 = bldr_23->gen_sym(bldr_23, "@i32");
bldr_23->new_type_int(bldr_23, id_278, 32);
id_279 = bldr_23->gen_sym(bldr_23, "@refi8");
bldr_23->new_type_ref(bldr_23, id_279, id_277);
id_280 = bldr_23->gen_sym(bldr_23, "@irefi8");
bldr_23->new_type_iref(bldr_23, id_280, id_277);
id_281 = bldr_23->gen_sym(bldr_23, "@refi32");
bldr_23->new_type_ref(bldr_23, id_281, id_278);
id_282 = bldr_23->gen_sym(bldr_23, "@iref32");
bldr_23->new_type_iref(bldr_23, id_282, id_278);
id_283 = bldr_23->gen_sym(bldr_23, "@1_i8");
bldr_23->new_const_int(bldr_23, id_283, id_277, 1);
id_284 = bldr_23->gen_sym(bldr_23, "@0x8d_i8");
bldr_23->new_const_int(bldr_23, id_284, id_277, 141);
id_285 = bldr_23->gen_sym(bldr_23, "@0x9f_i8");
bldr_23->new_const_int(bldr_23, id_285, id_277, 159);
id_286 = bldr_23->gen_sym(bldr_23, "@0x9c_i8");
bldr_23->new_const_int(bldr_23, id_286, id_277, 156);
id_287 = bldr_23->gen_sym(bldr_23, "@0x1d_i8");
bldr_23->new_const_int(bldr_23, id_287, id_277, 29);
id_288 = bldr_23->gen_sym(bldr_23, "@sig__i32");
bldr_23->new_funcsig(bldr_23, id_288, NULL, 0, (MuTypeNode [1]){id_278}, 1);
id_289 = bldr_23->gen_sym(bldr_23, "@test_fnc");
bldr_23->new_func(bldr_23, id_289, id_288);
id_290 = bldr_23->gen_sym(bldr_23, "@test_fnc.v1");
id_291 = bldr_23->gen_sym(bldr_23, "@test_fnc.v1.blk0");
id_292 = bldr_23->gen_sym(bldr_23, "@test_fnc.v1.blk0.r32x");
id_293 = bldr_23->gen_sym(bldr_23, "@test_fnc.v1.blk0.r8x");
id_294 = bldr_23->gen_sym(bldr_23, "@test_fnc.v1.blk0.ir8x_0");
id_295 = bldr_23->gen_sym(bldr_23, "@test_fnc.v1.blk0.ir8x_1");
id_296 = bldr_23->gen_sym(bldr_23, "@test_fnc.v1.blk0.ir8x_2");
id_297 = bldr_23->gen_sym(bldr_23, "@test_fnc.v1.blk0.ir8x_3");
id_298 = bldr_23->gen_sym(bldr_23, "@test_fnc.v1.blk0.ir32x");
id_299 = bldr_23->gen_sym(bldr_23, "@test_fnc.v1.blk0.res");
id_300 = bldr_23->gen_sym(bldr_23, NULL);
bldr_23->new_new(bldr_23, id_300, id_292, id_278, MU_NO_ID);
id_301 = bldr_23->gen_sym(bldr_23, NULL);
bldr_23->new_conv(bldr_23, id_301, id_293, MU_CONV_REFCAST, id_281, id_279, id_292);
id_302 = bldr_23->gen_sym(bldr_23, NULL);
bldr_23->new_getiref(bldr_23, id_302, id_294, id_277, id_293);
id_303 = bldr_23->gen_sym(bldr_23, NULL);
bldr_23->new_store(bldr_23, id_303, false, MU_ORD_NOT_ATOMIC, id_277, id_294, id_287, MU_NO_ID);
id_304 = bldr_23->gen_sym(bldr_23, NULL);
bldr_23->new_shiftiref(bldr_23, id_304, id_295, false, id_277, id_277, id_294, id_283);
id_305 = bldr_23->gen_sym(bldr_23, NULL);
bldr_23->new_store(bldr_23, id_305, false, MU_ORD_NOT_ATOMIC, id_277, id_295, id_286, MU_NO_ID);
id_306 = bldr_23->gen_sym(bldr_23, NULL);
bldr_23->new_shiftiref(bldr_23, id_306, id_296, false, id_277, id_277, id_295, id_283);
id_307 = bldr_23->gen_sym(bldr_23, NULL);
bldr_23->new_store(bldr_23, id_307, false, MU_ORD_NOT_ATOMIC, id_277, id_296, id_285, MU_NO_ID);
id_308 = bldr_23->gen_sym(bldr_23, NULL);
bldr_23->new_shiftiref(bldr_23, id_308, id_297, false, id_277, id_277, id_296, id_283);
id_309 = bldr_23->gen_sym(bldr_23, NULL);
bldr_23->new_store(bldr_23, id_309, false, MU_ORD_NOT_ATOMIC, id_277, id_297, id_284, MU_NO_ID);
id_310 = bldr_23->gen_sym(bldr_23, NULL);
bldr_23->new_getiref(bldr_23, id_310, id_298, id_278, id_292);
id_311 = bldr_23->gen_sym(bldr_23, NULL);
bldr_23->new_load(bldr_23, id_311, id_299, false, MU_ORD_NOT_ATOMIC, id_278, id_298, MU_NO_ID);
id_312 = bldr_23->gen_sym(bldr_23, NULL);
bldr_23->new_ret(bldr_23, id_312, (MuVarNode [1]){id_299}, 1);
bldr_23->new_bb(bldr_23, id_291, NULL, NULL, 0, MU_NO_ID, (MuInstNode [13]){id_300, id_301, id_302, id_303, id_304, id_305, id_306, id_307, id_308, id_309, id_310, id_311, id_312}, 13);
bldr_23->new_func_ver(bldr_23, id_290, id_289, (MuBBNode [1]){id_291}, 1);
mu_23->compile_to_sharedlib(mu_23, "test_new_bytestore_load.dylib", NULL, 0);
printf("%s\n", "test_new_bytestore_load.dylib");
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment