Add binarysearch, complex_updates, matrix1 wrappers
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#include "../lib.h"
|
||||
|
||||
extern "C" {
|
||||
void __pragma_loopbound(unsigned, unsigned) {}
|
||||
|
||||
void binarysearch_init(void);
|
||||
void binarysearch_main(void);
|
||||
int binarysearch_return(void);
|
||||
|
||||
EXPORT("wasm_module") int wasm_module(void) {
|
||||
binarysearch_init();
|
||||
|
||||
fail_start_trace();
|
||||
binarysearch_main();
|
||||
fail_stop_trace();
|
||||
|
||||
int ret = binarysearch_return() - (-1);
|
||||
if (ret == 0) {
|
||||
fail_marker_positive();
|
||||
} else {
|
||||
fail_marker_negative();
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
#include "../lib.h"
|
||||
|
||||
extern "C" {
|
||||
void __pragma_loopbound(unsigned, unsigned) {}
|
||||
|
||||
void complex_updates_init(void);
|
||||
void complex_updates_main(void);
|
||||
int complex_updates_return(void);
|
||||
|
||||
EXPORT("wasm_module") int wasm_module(void) {
|
||||
complex_updates_init();
|
||||
|
||||
fail_start_trace();
|
||||
complex_updates_main();
|
||||
fail_stop_trace();
|
||||
|
||||
int ret = complex_updates_return();
|
||||
if (ret == 0) {
|
||||
fail_marker_positive();
|
||||
} else {
|
||||
fail_marker_negative();
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
#include "../lib.h"
|
||||
|
||||
extern "C" {
|
||||
void __pragma_loopbound(unsigned, unsigned) {}
|
||||
|
||||
void matrix1_init(void);
|
||||
void matrix1_main(void);
|
||||
int matrix1_return(void);
|
||||
|
||||
EXPORT("wasm_module") int wasm_module(void) {
|
||||
matrix1_init();
|
||||
|
||||
fail_start_trace();
|
||||
matrix1_main();
|
||||
fail_stop_trace();
|
||||
|
||||
int ret = matrix1_return();
|
||||
if (ret == 0) {
|
||||
fail_marker_positive();
|
||||
} else {
|
||||
fail_marker_negative();
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user